switch source tree from k&r to c99
This commit is contained in:
+6
-17
@@ -54,9 +54,7 @@ extern int total_tiles_used; /* tile.c */
|
||||
*
|
||||
*/
|
||||
int
|
||||
ReadTileFileHeader(tibhdr, filestyle)
|
||||
struct tibhdr_struct *tibhdr;
|
||||
boolean filestyle;
|
||||
ReadTileFileHeader(struct tibhdr_struct *tibhdr, boolean filestyle)
|
||||
{
|
||||
FILE *x;
|
||||
x = filestyle ? tilefile_O : tilefile;
|
||||
@@ -85,9 +83,7 @@ boolean filestyle;
|
||||
*
|
||||
*/
|
||||
int
|
||||
OpenTileFile(tilefilename, filestyle)
|
||||
char *tilefilename;
|
||||
boolean filestyle;
|
||||
OpenTileFile(char *tilefilename, boolean filestyle)
|
||||
{
|
||||
#ifdef TILES_IN_RAM
|
||||
int k;
|
||||
@@ -150,8 +146,7 @@ boolean filestyle;
|
||||
}
|
||||
|
||||
void
|
||||
CloseTileFile(filestyle)
|
||||
boolean filestyle;
|
||||
CloseTileFile(boolean filestyle)
|
||||
{
|
||||
fclose(filestyle ? tilefile_O : tilefile);
|
||||
#ifdef TILES_IN_RAM
|
||||
@@ -191,9 +186,7 @@ struct overview_planar_cell_struct oplancell;
|
||||
*/
|
||||
#ifdef PLANAR_FILE
|
||||
int
|
||||
ReadPlanarTileFile(tilenum, gp)
|
||||
int tilenum;
|
||||
struct planar_cell_struct **gp;
|
||||
ReadPlanarTileFile(int tilenum, struct planar_cell_struct **gp)
|
||||
{
|
||||
long fpos;
|
||||
|
||||
@@ -214,9 +207,7 @@ struct planar_cell_struct **gp;
|
||||
return 0;
|
||||
}
|
||||
int
|
||||
ReadPlanarTileFile_O(tilenum, gp)
|
||||
int tilenum;
|
||||
struct overview_planar_cell_struct **gp;
|
||||
ReadPlanarTileFile_O(int tilenum, struct overview_planar_cell_struct **gp)
|
||||
{
|
||||
long fpos;
|
||||
|
||||
@@ -242,9 +233,7 @@ struct overview_planar_cell_struct **gp;
|
||||
|
||||
#ifdef PACKED_FILE
|
||||
int
|
||||
ReadPackedTileFile(tilenum, pta)
|
||||
int tilenum;
|
||||
char (*pta)[TILE_X];
|
||||
ReadPackedTileFile(int tilenum, char (*pta)[TILE_X])
|
||||
{
|
||||
long fpos;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user