12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- #ifndef __CMDLIB__
- #define __CMDLIB__
- #ifdef __NeXT__
- #define stricmp strcasecmp
- #endif
- typedef unsigned char byte;
- typedef enum {false,true} boolean;
- void Error (char *error, ...);
- int CheckParm (char *check);
- int SafeOpenWrite (char *filename);
- int SafeOpenRead (char *filename);
- void SafeRead (int handle, void *buffer, long count);
- void SafeWrite (int handle, void *buffer, long count);
- void *SafeMalloc (long size);
- void SafeFree (void * ptr);
- long LoadFile (char *filename, void **bufferptr);
- void SaveFile (char *filename, void *buffer, long count);
- void DefaultExtension (char *path, char *extension);
- void DefaultPath (char *path, char *basepath);
- void StripFilename (char *path);
- void ExtractFileBase (char *path, char *dest);
- long ParseNum (char *str);
- short BigShort (short l);
- short LittleShort (short l);
- long BigLong (long l);
- long LittleLong (long l);
- void GetPalette (byte *pal);
- void SetPalette (byte *pal);
- void VGAMode (void);
- void TextMode (void);
- #endif
|