From b992c007c186fddf31f67a7ed0bd5789cfb9b85e Mon Sep 17 00:00:00 2001 From: xHire Date: Sun, 24 May 2009 20:13:33 +0200 Subject: Rectified the coding style in base .h files --- src/base/main.h | 52 +++++++++++++++++++++++++--------------------------- 1 file changed, 25 insertions(+), 27 deletions(-) (limited to 'src/base/main.h') diff --git a/src/base/main.h b/src/base/main.h index 8ea3afa..fb23218 100644 --- a/src/base/main.h +++ b/src/base/main.h @@ -1,34 +1,31 @@ - #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 - -# ifdef NLS -# include -# include -# endif -# include "bool.h" -# include "string_length.h" -# include "path.h" - - -//#define SUPPORT_OPENGL +#define MAIN_H -#ifdef DEBUG -#define DEBUG_MSG(msg,arg...) printf(msg, ##arg) -#endif +#ifdef NLS +#include +#include +#endif /* NLS */ + +#include "bool.h" +#include "string_length.h" +#include "path.h" + +#define WINDOW_SIZE_X 800 +#define WINDOW_SIZE_Y 600 -#ifndef DEBUG +#ifdef NLS +#define _(text) gettext(text) +#else /* NLS */ +#define _(text) (text) +#endif /* NLS */ + +#ifdef DEBUG +#define DEBUG_MSG(msg,arg...) printf(msg, ##arg) +#else /* DEBUG */ #define DEBUG_MSG(msg,arg...) -#endif +#endif /* DEBUG */ -#define UNUSED(var) if( 0 && var ){} +#define UNUSED(var) if (0 && var) {} extern char *getParam(char *s); @@ -39,4 +36,5 @@ extern int *newInt(int x); extern int isFillPath(const char *path); extern void accessExistFile(const char *s); extern int tryExistFile(const char *s); -#endif + +#endif /* MAIN_H */ -- cgit v1.2.3