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