1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-01 01:41:01 -08:00
emacs/mps/code/dbgpool.h
Richard Brooksby 3d5e2ca85f Adding hopenames back into the master sources, so that they can be included in the union sources along with the id keywords.
This was achieved by partially undoing changelist 24817, including an accidental corruption of eventgen.pl.

Copied from Perforce
 Change: 24877
 ServerID: perforce.ravenbrook.com
2001-12-06 18:14:02 +00:00

58 lines
1.2 KiB
C

/* impl.h.dbgpool: POOL DEBUG MIXIN
*
* $Id$
* $HopeName: MMsrc!dbgpool.h(trunk.4) $
* Copyright (c) 2001 Ravenbrook Limited.
*/
#ifndef dbgpool_h
#define dbgpool_h
#include "splay.h"
#include "mpmtypes.h"
#include <stdarg.h>
/* tag init methods: copying the user-supplied data into the tag */
typedef void (*TagInitMethod)(void* tag, va_list args);
/* PoolDebugOptions -- option structure for debug pool init
*
* This must be kept in sync with impl.h.mps.mps_pool_debug_option_s.
*/
typedef struct PoolDebugOptionsStruct {
void* fenceTemplate;
Size fenceSize;
/* TagInitMethod tagInit; */
/* Size tagSize; */
} PoolDebugOptionsStruct;
typedef PoolDebugOptionsStruct *PoolDebugOptions;
/* PoolDebugMixinStruct -- internal structure for debug mixins */
#define PoolDebugMixinSig ((Sig)0x519B0DB9) /* SIGnature POol DeBuG */
typedef struct PoolDebugMixinStruct {
Sig sig;
Addr fenceTemplate;
Size fenceSize;
TagInitMethod tagInit;
Size tagSize;
Pool tagPool;
Count missingTags;
SplayTreeStruct index;
} PoolDebugMixinStruct;
extern Bool PoolDebugMixinCheck(PoolDebugMixin dbg);
extern void PoolClassMixInDebug(PoolClass class);
#endif /* dbgpool_h */