view src/wads.h @ 33:a68786b9c74b

Oops, used indent with tabs enabled. Remove tabs.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 24 Sep 2011 15:59:33 +0300
parents 8eaf72e2041b
children f05330267c66
line wrap: on
line source

/*
 *        wads.h
 *        AYM 1998-11-25
 */


#ifndef YH_WADS                        /* DO NOT INSERT ANYTHING BEFORE THIS LINE */
#define YH_WADS


int file_read_i16(FILE *, i16 * buf, long count = 1);
int file_read_i32(FILE *, i32 * buf, long count = 1);
long file_read_vbytes(FILE *, void *buf, long count);
int file_read_bytes(FILE *, void *buf, long count);
void file_write_i16(FILE *, i16 buf);
void file_write_i32(FILE *, i32 buf, long count = 1);
void file_write_name(FILE *, const char *name);
void WriteBytes(FILE *, const void *, long);
int copy_bytes(FILE * dest, FILE * source, long size);

#if 0
void wad_seek(WadPtr, long offset);
void wad_read_bytes(WadPtr, void *buf, long count);
long wad_read_vbytes(WadPtr, void *buf, long count);
i16 wad_read_i16(WadPtr);
void wad_read_i16(WadPtr, i16 * buf);
void wad_read_i32(WadPtr, i32 * buf, long count = 1);
#endif


#if 0
/*
 *        flat_name_cmp
 *        Compare two flat names like strcmp() compares two strings.
 */
inline int flat_name_cmp(const char *name1, const char *name2)
{
}


/*
 *        tex_name_cmp
 *        Compare two texture names like strcmp() compares two strings.
 *        T
 */
inline int tex_name_cmp(const char *name1, const char *name2)
{
}


/*
 *        sprite_name_cmp
 *        Compare two sprite names like strcmp() compares two strings.
 */
inline int sprite_name_cmp(const char *name1, const char *name2)
{
}
#endif


#endif /* DO NOT ADD ANYTHING AFTER THIS LINE */