#ifndef MAIN_H #define MAIN_H #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 #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 /* DEBUG */ #define UNUSED(var) if (0 && var) {} #define FATAL(msg,arg...) \ do{ \ fprintf(stderr, msg, ##arg); \ abort(0); \ }while(0) 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 int isFillPath(const char *path); extern void accessExistFile(const char *s); extern int tryExistFile(const char *s); #endif /* MAIN_H */