/** * \file * * * \brief Definitions of constant string messages. * * * \author Bernie Innocenti * \author Stefano Fedrigo */ #ifndef MWARE_MESSAGES_H #define MWARE_MESSAGES_H enum { MSG_NULL, // TODO: add your labels here. MSG_COUNT }; #warning FIXME:Revise me! #define MSG_BUFSIZE 6144 /* FIXME: how much? */ /* String tables */ /* extern const char *msg_strings const [MSG_COUNT]; */ /* extern char msg_buf[MSG_BUFSIZE]; */ /* Macros to access translated messages */ #define MSG(x) msg_strings[x] #define PTRMSG(x) ((x) < (const_iptr_t)256 ? msg_strings[(unsigned int)(x)] : (const char *)(x)) #endif /* MWARE_MESSAGES_H */