Sistema l'errore da me commesso in fase di conversione...
[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.2  2006/02/10 11:30:37  bernie
19  *#* C++ fixes.
20  *#*
21  *#* Revision 1.1  2005/03/01 23:31:02  bernie
22  *#* String table and localization stuff.
23  *#*
24  *#*/
25 #ifndef MWARE_MSG_H
26 #define MWARE_MSG_H
27
28 enum
29 {
30         MSG_NULL,
31
32         // TODO: add your labels here.
33
34         MSG_COUNT
35 };
36
37
38 #define MSG_BUFSIZE 6144 /* FIXME: how much? */
39
40 /* String tables */
41 extern const char *msg_strings const [MSG_COUNT];
42 /* extern char msg_buf[MSG_BUFSIZE]; */
43
44
45 /* Macros to access translated messages */
46 #define MSG(x)  msg_strings[x]
47 #define PTRMSG(x)  ((x) < (const_iptr_t)256 ? msg_strings[(unsigned int)(x)] : (const char *)(x))
48
49
50 #endif /* MWARE_MSG_H */