messages.h
Go to the documentation of this file.00001 00041 #ifndef MWARE_MESSAGES_H 00042 #define MWARE_MESSAGES_H 00043 00044 enum 00045 { 00046 MSG_NULL, 00047 00048 // TODO: add your labels here. 00049 00050 MSG_COUNT 00051 }; 00052 00053 #warning FIXME:Revise me! 00054 00055 #define MSG_BUFSIZE 6144 /* FIXME: how much? */ 00056 00057 /* String tables */ 00058 /* extern const char *msg_strings const [MSG_COUNT]; */ 00059 /* extern char msg_buf[MSG_BUFSIZE]; */ 00060 00061 00062 /* Macros to access translated messages */ 00063 #define MSG(x) msg_strings[x] 00064 #define PTRMSG(x) ((x) < (const_iptr_t)256 ? msg_strings[(unsigned int)(x)] : (const char *)(x)) 00065 00066 00067 #endif /* MWARE_MESSAGES_H */ 00068
