merentha_fluffos_v2/
merentha_fluffos_v2/bin/
merentha_fluffos_v2/fluffos-2.9-ds2.03/
merentha_fluffos_v2/fluffos-2.9-ds2.03/ChangeLog.old/
merentha_fluffos_v2/fluffos-2.9-ds2.03/Win32/
merentha_fluffos_v2/fluffos-2.9-ds2.03/compat/
merentha_fluffos_v2/fluffos-2.9-ds2.03/compat/simuls/
merentha_fluffos_v2/fluffos-2.9-ds2.03/include/
merentha_fluffos_v2/fluffos-2.9-ds2.03/testsuite/
merentha_fluffos_v2/fluffos-2.9-ds2.03/testsuite/clone/
merentha_fluffos_v2/fluffos-2.9-ds2.03/testsuite/command/
merentha_fluffos_v2/fluffos-2.9-ds2.03/testsuite/data/
merentha_fluffos_v2/fluffos-2.9-ds2.03/testsuite/etc/
merentha_fluffos_v2/fluffos-2.9-ds2.03/testsuite/include/
merentha_fluffos_v2/fluffos-2.9-ds2.03/testsuite/inherit/
merentha_fluffos_v2/fluffos-2.9-ds2.03/testsuite/inherit/master/
merentha_fluffos_v2/fluffos-2.9-ds2.03/testsuite/log/
merentha_fluffos_v2/fluffos-2.9-ds2.03/testsuite/single/
merentha_fluffos_v2/fluffos-2.9-ds2.03/testsuite/single/tests/compiler/
merentha_fluffos_v2/fluffos-2.9-ds2.03/testsuite/single/tests/efuns/
merentha_fluffos_v2/fluffos-2.9-ds2.03/testsuite/single/tests/operators/
merentha_fluffos_v2/fluffos-2.9-ds2.03/testsuite/u/
merentha_fluffos_v2/fluffos-2.9-ds2.03/tmp/
merentha_fluffos_v2/fluffos-2.9-ds2.03/windows/
merentha_fluffos_v2/lib/cfg/
merentha_fluffos_v2/lib/cfg/races/
merentha_fluffos_v2/lib/cmds/abilities/
merentha_fluffos_v2/lib/cmds/actions/
merentha_fluffos_v2/lib/cmds/spells/
merentha_fluffos_v2/lib/daemon/include/
merentha_fluffos_v2/lib/daemon/services/
merentha_fluffos_v2/lib/doc/
merentha_fluffos_v2/lib/doc/building/
merentha_fluffos_v2/lib/doc/help/classes/
merentha_fluffos_v2/lib/doc/help/general/
merentha_fluffos_v2/lib/doc/help/races/
merentha_fluffos_v2/lib/doc/help/skills/
merentha_fluffos_v2/lib/doc/help/stats/
merentha_fluffos_v2/lib/doc/man/efuns/
merentha_fluffos_v2/lib/doc/man/lfuns/
merentha_fluffos_v2/lib/doc/news/
merentha_fluffos_v2/lib/doc/old/
merentha_fluffos_v2/lib/doc/old/concepts/
merentha_fluffos_v2/lib/doc/old/lpc/constructs/
merentha_fluffos_v2/lib/doc/old/lpc/types/
merentha_fluffos_v2/lib/domains/ROOMS/
merentha_fluffos_v2/lib/domains/obj/armour/
merentha_fluffos_v2/lib/domains/obj/monsters/
merentha_fluffos_v2/lib/domains/obj/other/
merentha_fluffos_v2/lib/domains/obj/weapons/
merentha_fluffos_v2/lib/realms/petrarch/
merentha_fluffos_v2/lib/save/daemons/
merentha_fluffos_v2/lib/save/rid/
merentha_fluffos_v2/lib/save/users/a/
merentha_fluffos_v2/lib/save/users/p/
merentha_fluffos_v2/lib/save/users/t/
merentha_fluffos_v2/lib/std/login/
merentha_fluffos_v2/lib/std/obj/
merentha_fluffos_v2/win32/
#ifndef MALLOC_INCL_H
#define MALLOC_INCL_H

typedef struct {
    int real_size;
    char *buffer;
} outbuffer_t;

void outbuf_zero (outbuffer_t *);
void outbuf_add (outbuffer_t *, const char *);
void outbuf_addchar (outbuffer_t *, char);
void CDECL outbuf_addv (outbuffer_t *, const char *, ...);
void outbuf_fix (outbuffer_t *);
void outbuf_push (outbuffer_t *);
int outbuf_extend (outbuffer_t *, int);

#include "bsdmalloc.h"
#include "smalloc.h"
#include "wrappedmalloc.h"
#include "debugmalloc.h"

#ifdef DEBUGMALLOC
/* tags */
#define TAG_TEMPORARY       (1 << 8)
#define TAG_PERMANENT       (2 << 8)
#define TAG_COMPILER        (3 << 8)
#define TAG_DATA            (4 << 8)
#define TAG_MISC            (5 << 8)
#define TAG_MARKED          (1 << 12)

#define TAG_PROGRAM         (TAG_PERMANENT + 11)
#define TAG_CALL_OUT        (TAG_PERMANENT + 12)
#define TAG_INTERACTIVE     (TAG_PERMANENT + 13)
#define TAG_ED              (TAG_PERMANENT + 14)

#define TAG_INC_LIST        (TAG_PERMANENT + 16)
#define TAG_PERM_IDENT      (TAG_PERMANENT + 17)
#define TAG_IDENT_TABLE     (TAG_PERMANENT + 18)
#define TAG_RESERVED        (TAG_PERMANENT + 19)
#define TAG_MUDLIB_STATS    (TAG_PERMANENT + 20)
#define TAG_OBJECT          (TAG_PERMANENT + 21)
#define TAG_OBJ_TBL         (TAG_PERMANENT + 22)
#define TAG_CONFIG          (TAG_PERMANENT + 23)
#define TAG_SIMULS          (TAG_PERMANENT + 24)
#define TAG_SENTENCE        (TAG_PERMANENT + 25)
#define TAG_STR_TBL         (TAG_PERMANENT + 26)
#define TAG_SWAP            (TAG_PERMANENT + 27)
#define TAG_UID             (TAG_PERMANENT + 28)
#define TAG_OBJ_NAME        (TAG_PERMANENT + 29)
#define TAG_PREDEFINES      (TAG_PERMANENT + 30)
#define TAG_LINENUMBERS     (TAG_PERMANENT + 31)
#define TAG_LOCALS          (TAG_PERMANENT + 32)
#define TAG_LPC_OBJECT      (TAG_PERMANENT + 33)
#define TAG_USERS           (TAG_PERMANENT + 34)
#define TAG_DEBUGMALLOC     (TAG_PERMANENT + 35)
#define TAG_HEART_BEAT      (TAG_PERMANENT + 36)
#ifdef PACKAGE_PARSER
#define TAG_PARSER          (TAG_PERMANENT + 37)
#endif
#define TAG_INPUT_TO        (TAG_PERMANENT + 38)
#define TAG_SOCKETS         (TAG_PERMANENT + 39)
#ifdef PACKAGE_DB
#define TAG_DB              (TAG_PERMANENT + 40)
#endif
#define TAG_INTERPRETER     (TAG_PERMANENT + 41)

#define TAG_STRING          (TAG_DATA + 40)
#define TAG_MALLOC_STRING   (TAG_DATA + 41)
#define TAG_SHARED_STRING   (TAG_DATA + 42)
#define TAG_FUNP            (TAG_DATA + 43)
#define TAG_ARRAY           (TAG_DATA + 44)
#define TAG_MAPPING         (TAG_DATA + 45)
#define TAG_MAP_NODE_BLOCK  (TAG_DATA + 46)
#define TAG_MAP_TBL         (TAG_DATA + 47)
#define TAG_BUFFER          (TAG_DATA + 48)
#define TAG_CLASS           (TAG_DATA + 49)
#endif

#endif