1 /* 2 * wads.h 3 * AYM 1998-11-25 4 */ 5 6 7 #ifndef YH_WADS /* DO NOT INSERT ANYTHING BEFORE THIS LINE */ 8 #define YH_WADS 9 10 11 int file_read_i16 (FILE *, i16 *buf, long count = 1); 12 int file_read_i32 (FILE *, i32 *buf, long count = 1); 13 long file_read_vbytes (FILE *, void *buf, long count); 14 int file_read_bytes (FILE *, void *buf, long count); 15 void file_write_i16 (FILE *, i16 buf); 16 void file_write_i32 (FILE *, i32 buf, long count = 1); 17 void file_write_name (FILE *, const char *name); 18 void WriteBytes (FILE *, const void *, long); 19 int copy_bytes (FILE *dest, FILE *source, long size); 20 21 #if 0 22 void wad_seek (WadPtr, long offset); 23 void wad_read_bytes (WadPtr, void *buf, long count); 24 long wad_read_vbytes (WadPtr, void *buf, long count); 25 i16 wad_read_i16 (WadPtr); 26 void wad_read_i16 (WadPtr, i16 *buf); 27 void wad_read_i32 (WadPtr, i32 *buf, long count = 1); 28 #endif 29 30 31 #if 0 32 /* 33 * flat_name_cmp 34 * Compare two flat names like strcmp() compares two strings. 35 */ 36 inline int flat_name_cmp (const char *name1, const char *name2) 37 { 38 } 39 40 41 /* 42 * tex_name_cmp 43 * Compare two texture names like strcmp() compares two strings. 44 * T 45 */ 46 inline int tex_name_cmp (const char *name1, const char *name2) 47 { 48 } 49 50 51 /* 52 * sprite_name_cmp 53 * Compare two sprite names like strcmp() compares two strings. 54 */ 55 inline int sprite_name_cmp (const char *name1, const char *name2) 56 { 57 } 58 #endif 59 60 61 #endif /* DO NOT ADD ANYTHING AFTER THIS LINE */ 62