X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fmisc.h;h=182e5ff3f7039029f375fc6522e3550a185ad4eb;hb=a4bf969413cdda68ab8bb54a2a1181bdc09cf63a;hp=2e979a09480c326f622fa31e6afaf1794b5079f2;hpb=d7d97176a88ee47f893055480c76b9c05a253d05;p=rocksndiamonds.git diff --git a/src/misc.h b/src/misc.h index 2e979a09..182e5ff3 100644 --- a/src/misc.h +++ b/src/misc.h @@ -22,9 +22,12 @@ #define NEW_RANDOMIZE -1 #define ERR_RETURN 0 -#define ERR_EXIT 1 -#define ERR_EXIT_HELP 2 -#define ERR_EXIT_SOUNDSERVER 3 +#define ERR_WARN (1 << 0) +#define ERR_EXIT (1 << 1) +#define ERR_HELP (1 << 2) +#define ERR_SOUNDSERVER (1 << 3) +#define ERR_EXIT_HELP (ERR_EXIT | ERR_HELP) +#define ERR_EXIT_SOUNDSERVER (ERR_EXIT | ERR_SOUNDSERVER) void InitCounter(void); unsigned long Counter(void); @@ -36,15 +39,21 @@ char *int2str(int, int); unsigned int SimpleRND(unsigned int); unsigned int RND(unsigned int); unsigned int InitRND(long); -char *GetLoginName(void); +char *getLoginName(void); +char *getHomeDir(void); +char *getPath2(char *, char *); +char *getStringCopy(char *); +char *getStringToLower(char *); void MarkTileDirty(int, int); void GetOptions(char **); void Error(int, char *, ...); void *checked_malloc(unsigned long); +void *checked_calloc(unsigned long); char *getKeyNameFromKeySym(KeySym); char *getX11KeyNameFromKeySym(KeySym); KeySym getKeySymFromX11KeyName(char *); char *getJoyNameFromJoySymbol(int); int getJoySymbolFromJoyName(char *); +void debug_print_timestamp(int, char *); -#endif +#endif /* MISC_H */