/* Uncomment this if you want to track memory leaks.
* This incurs some overhead, so don't use it unless you're debugging the code!
*/
-/* #define DEBUG_MEMORY_LEAKS */
+#define DEBUG_MEMORY_LEAKS
/*
S_HOUSEKEEPING,
S_DATABASE,
S_NETDB,
+ S_SUPPMSGMAIN,
MAX_SEMAPHORES
};
#define EVT_NEWROOM 3 /* Changing rooms */
#define EVT_LOGOUT 4 /* A user is logging out */
#define EVT_SETPASS 5 /* Setting or changing password */
+#define EVT_CMD 6 /* Called after each server command */
/*
#define UA_ZAPPED 16
+/* Supplementary data for a message on disk
+ * (These are kept separately from the message itself because they are
+ * fields whose values may change at some point after the message is saved.)
+ */
+struct SuppMsgInfo {
+ long smi_msgnum; /* Redundant, but useful for self-check */
+ int smi_refcount; /* Number of rooms which point to this msg */
+ /* more stuff will be added to this record in the future */
+};
+
+
/* Built-in debuggable stuff for checking for memory leaks */
#ifdef DEBUG_MEMORY_LEAKS