X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fmisc.h;h=2e979a09480c326f622fa31e6afaf1794b5079f2;hb=d7d97176a88ee47f893055480c76b9c05a253d05;hp=b3f530e78d7da5783358069b54fc39f48d8c7159;hpb=29014045f4de045f8452fdf7ab32622c94b37eef;p=rocksndiamonds.git diff --git a/src/misc.h b/src/misc.h index b3f530e7..2e979a09 100644 --- a/src/misc.h +++ b/src/misc.h @@ -23,12 +23,14 @@ #define ERR_RETURN 0 #define ERR_EXIT 1 +#define ERR_EXIT_HELP 2 +#define ERR_EXIT_SOUNDSERVER 3 void InitCounter(void); unsigned long Counter(void); void Delay(unsigned long); -BOOL FrameReached(unsigned long *, unsigned long); -BOOL DelayReached(unsigned long *, unsigned long); +boolean FrameReached(unsigned long *, unsigned long); +boolean DelayReached(unsigned long *, unsigned long); void WaitUntilDelayReached(unsigned long *, unsigned long); char *int2str(int, int); unsigned int SimpleRND(unsigned int); @@ -36,6 +38,13 @@ unsigned int RND(unsigned int); unsigned int InitRND(long); char *GetLoginName(void); void MarkTileDirty(int, int); -void Error(BOOL, char *, ...); +void GetOptions(char **); +void Error(int, char *, ...); +void *checked_malloc(unsigned long); +char *getKeyNameFromKeySym(KeySym); +char *getX11KeyNameFromKeySym(KeySym); +KeySym getKeySymFromX11KeyName(char *); +char *getJoyNameFromJoySymbol(int); +int getJoySymbolFromJoyName(char *); #endif