Super-Rogue: convert to ANSI-style function declarations.
This fixes most of the build warnings.
This commit is contained in:
parent
0f87d5b4d8
commit
59f448e92e
33 changed files with 783 additions and 518 deletions
|
|
@ -70,6 +70,9 @@
|
|||
#define READSTAT ((format_error == 0) && (read_error == 0))
|
||||
#define WRITESTAT (write_error == 0)
|
||||
|
||||
int rs_read_int(int inf, int *i);
|
||||
int rs_write_int(FILE *savef, int c);
|
||||
|
||||
int read_error = FALSE;
|
||||
int write_error = FALSE;
|
||||
int format_error = FALSE;
|
||||
|
|
@ -82,10 +85,8 @@ char encstr[] = "\354\251\243\332A\201|\301\321p\210\251\327\"\257\365t\341%3\27
|
|||
/*
|
||||
* perform an encrypted write
|
||||
*/
|
||||
encwrite(starta, size, outf)
|
||||
register void *starta;
|
||||
unsigned int size;
|
||||
register FILE *outf;
|
||||
void
|
||||
encwrite(void *starta, unsigned int size, FILE *outf)
|
||||
{
|
||||
register char *ep;
|
||||
register char *start = starta;
|
||||
|
|
@ -103,10 +104,8 @@ register FILE *outf;
|
|||
/*
|
||||
* perform an encrypted read
|
||||
*/
|
||||
encread(starta, size, inf)
|
||||
register void *starta;
|
||||
unsigned int size;
|
||||
register int inf;
|
||||
int
|
||||
encread(void *starta, unsigned int size, int inf)
|
||||
{
|
||||
register char *ep;
|
||||
register int read_size;
|
||||
|
|
@ -1556,6 +1555,7 @@ rs_write_traps(FILE *savef, struct trap *trap,int count)
|
|||
}
|
||||
}
|
||||
|
||||
int
|
||||
rs_read_traps(int inf, struct trap *trap, int count)
|
||||
{
|
||||
int id = 0, value = 0, n = 0;
|
||||
|
|
@ -1885,8 +1885,8 @@ rs_read_thing(int inf, struct thing *t)
|
|||
return(READSTAT);
|
||||
}
|
||||
|
||||
rs_fix_monster_list(list)
|
||||
struct linked_list *list;
|
||||
void
|
||||
rs_fix_monster_list(struct linked_list *list)
|
||||
{
|
||||
struct linked_list *item;
|
||||
|
||||
|
|
@ -1970,6 +1970,7 @@ rs_write_object_reference(FILE *savef, struct linked_list *list,
|
|||
return(WRITESTAT);
|
||||
}
|
||||
|
||||
int
|
||||
rs_read_object_reference(int inf, struct linked_list *list,
|
||||
struct object **item)
|
||||
{
|
||||
|
|
@ -2225,6 +2226,7 @@ rs_save_file(FILE *savef)
|
|||
return(WRITESTAT);
|
||||
}
|
||||
|
||||
int
|
||||
rs_restore_file(int inf)
|
||||
{
|
||||
bool junk;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue