diff options
| author | scarab <scarab@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-08-15 19:57:10 +0000 |
|---|---|---|
| committer | scarab <scarab@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-08-15 19:57:10 +0000 |
| commit | 7bbd60007620cf3cc3ee7a913f7010588808ebb2 (patch) | |
| tree | 34e72f66dfd1076e23c43074786f935aca70cba1 /src/base/main.h | |
| parent | 50ba3d5e1e9f9eeda049a348efa4645af07610bc (diff) | |
"- initial commit for GETTEXT support and K&R compilance"
git-svn-id: http://opensvn.csie.org/tuxanci_ng@196 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e
Diffstat (limited to 'src/base/main.h')
| -rw-r--r-- | src/base/main.h | 42 |
1 files changed, 23 insertions, 19 deletions
diff --git a/src/base/main.h b/src/base/main.h index 5fbd81a..cfa4ee0 100644 --- a/src/base/main.h +++ b/src/base/main.h @@ -1,24 +1,28 @@ #ifndef MAIN_H + #define MAIN_H + #define WINDOW_SIZE_X 800 + #define WINDOW_SIZE_Y 600 +#ifdef NLS + #define _(text) gettext(text) +#else + #define _(text) (text) +#endif -#define MAIN_H - -#include "../../config.h" - -#include "bool.h" -#include "string_length.h" -#include "path.h" - -// screen resolution -#define WINDOW_SIZE_X 800 -#define WINDOW_SIZE_Y 600 - -extern char* getParam(char *s); -extern char* getParamElse(char *s1, char *s2); -extern bool_t isParamFlag(char *s); -extern char *getString(int n); -extern int* newInt(int x); -extern void accessExistFile(const char *s); -extern int tryExistFile (const char *s); +#ifdef NLS + #include <libintl.h> + #include <locale.h> +#endif + #include "../../config.h" + #include "bool.h" + #include "string_length.h" + #include "path.h" + extern char* getParam(char *s); + extern char* getParamElse(char *s1, char *s2); + extern bool_t isParamFlag(char *s); + extern char *getString(int n); + extern int* newInt(int x); + extern void accessExistFile(const char *s); + extern int tryExistFile (const char *s); #endif |