String table and localization stuff.
[bertos.git] / mware / msg.h
1 /**
2  * \file
3  * <!--
4  * Copyright 2003, 2005 Develer S.r.l. (http://www.develer.com/)
5  * This file is part of DevLib - See README.devlib for information.
6  * -->
7  *
8  * \brief Definitions of constant string messages.
9  *
10  * \version $Id$
11  *
12  * \author Bernardo Innocenti <bernie@develer.com>
13  * \author Stefano Fedrigo <aleph@develer.com>
14  */
15
16 /*#*
17  *#* $Log$
18  *#* Revision 1.1  2005/03/01 23:31:02  bernie
19  *#* String table and localization stuff.
20  *#*
21  *#*/
22 #ifndef MWARE_MSG_H
23 #define MWARE_MSG_H
24
25 enum
26 {
27         MSG_NULL,
28
29         // TODO: add your labels here.
30
31         MSG_COUNT
32 };
33
34
35 #define MSG_BUFSIZE 6144 /* FIXME: how much? */
36
37 /* String tables */
38 extern const char *msg_strings[MSG_COUNT];
39 /* extern char msg_buf[MSG_BUFSIZE]; */
40
41
42 /* Macros to access translated messages */
43 #define MSG(x)  msg_strings[x]
44 #define PTRMSG(x)  ((unsigned int)(x) < 256 ? msg_strings[(unsigned int)(x)] : (const char *)(x))
45
46
47 #endif /* MWARE_MSG_H */