From 7bbd60007620cf3cc3ee7a913f7010588808ebb2 Mon Sep 17 00:00:00 2001 From: scarab Date: Fri, 15 Aug 2008 19:57:10 +0000 Subject: "- initial commit for GETTEXT support and K&R compilance" git-svn-id: http://opensvn.csie.org/tuxanci_ng@196 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e --- src/base/main.h | 42 +++++++++++++++++++++++------------------- 1 file changed, 23 insertions(+), 19 deletions(-) (limited to 'src/base/main.h') 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 + #include +#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 -- cgit v1.2.3