dragonmtn-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dragonmtn-commits] Changes to snowwhite/memoserv.h


From: Mark Loeser
Subject: [Dragonmtn-commits] Changes to snowwhite/memoserv.h
Date: Sat, 16 Apr 2005 20:32:05 -0400

Index: snowwhite/memoserv.h
diff -u snowwhite/memoserv.h:1.1.1.1 snowwhite/memoserv.h:1.2
--- snowwhite/memoserv.h:1.1.1.1        Tue Apr  5 20:48:52 2005
+++ snowwhite/memoserv.h        Sun Apr 17 00:32:00 2005
@@ -6,7 +6,7 @@
  *  \wd \taz \greg
  *  \date 1996-1997
  *
- * $Id: memoserv.h,v 1.1.1.1 2005/04/05 20:48:52 Halcy0n Exp $
+ * $Id: memoserv.h,v 1.2 2005/04/17 00:32:00 Halcy0n Exp $
  */
 
 /*
@@ -63,6 +63,17 @@
 #define MEMO_REPLY             0x0010  ///< Memo is a reply message
 
 /*
+ * macros
+ */
+// Create a memo box for a user
+#define ADD_MEMO_BOX(who) do {            \
+               (who)->memos = (MemoBox *)oalloc(sizeof(MemoBox));    \
+               (who)->memos->max = MS_DEF_RCV_MAX;       \
+               LIST_INIT(&(who)->memos->mb_memos);       \
+       } while(0)
+
+
+/*
  * functions 
  */
 void initMemoBox(MemoBox *);           ///< Initialize a memo box




reply via email to

[Prev in Thread] Current Thread [Next in Thread]