mware/msg.h

Go to the documentation of this file.
00001 
00041 /*#*
00042  *#* $Log$
00043  *#* Revision 1.2  2006/02/10 11:30:37  bernie
00044  *#* C++ fixes.
00045  *#*
00046  *#* Revision 1.1  2005/03/01 23:31:02  bernie
00047  *#* String table and localization stuff.
00048  *#*
00049  *#*/
00050 #ifndef MWARE_MSG_H
00051 #define MWARE_MSG_H
00052 
00053 enum
00054 {
00055     MSG_NULL,
00056 
00057     // TODO: add your labels here.
00058 
00059     MSG_COUNT
00060 };
00061 
00062 
00063 #define MSG_BUFSIZE 6144 /* FIXME: how much? */
00064 
00065 /* String tables */
00066 extern const char *msg_strings const [MSG_COUNT];
00067 /* extern char msg_buf[MSG_BUFSIZE]; */
00068 
00069 
00070 /* Macros to access translated messages */
00071 #define MSG(x)  msg_strings[x]
00072 #define PTRMSG(x)  ((x) < (const_iptr_t)256 ? msg_strings[(unsigned int)(x)] : (const char *)(x))
00073 
00074 
00075 #endif /* MWARE_MSG_H */