Advanced Rogue 5: convert to ANSI function declarations.
This still leaves over a thousand lines of warning messages, mostly related to the return types of daemons and fuses.
This commit is contained in:
parent
59f448e92e
commit
f38b2223c8
37 changed files with 977 additions and 733 deletions
|
|
@ -71,15 +71,17 @@ static char *rip[] = {
|
|||
0
|
||||
};
|
||||
|
||||
char *killname();
|
||||
|
||||
|
||||
|
||||
char *killname(short monst);
|
||||
void scorein(struct sc_ent scores[], int fd);
|
||||
void scoreout(struct sc_ent scores[], FILE *outf);
|
||||
void showpack(char *howso);
|
||||
int update(struct sc_ent top_ten[], unsigned long amount, short quest,
|
||||
char *whoami, short flags, short level, short monst, short ctype,
|
||||
char *system, char *login);
|
||||
|
||||
|
||||
void
|
||||
byebye(sig)
|
||||
int sig;
|
||||
byebye(int sig)
|
||||
{
|
||||
NOOP(sig);
|
||||
if (!isendwin()) {
|
||||
|
|
@ -96,8 +98,8 @@ int sig;
|
|||
* Do something really fun when he dies
|
||||
*/
|
||||
|
||||
death(monst)
|
||||
register short monst;
|
||||
void
|
||||
death(short monst)
|
||||
{
|
||||
register char **dp = rip, *killer;
|
||||
register struct tm *lt;
|
||||
|
|
@ -125,8 +127,7 @@ register short monst;
|
|||
}
|
||||
|
||||
char *
|
||||
killname(monst)
|
||||
register short monst;
|
||||
killname(short monst)
|
||||
{
|
||||
static char mons_name[LINELEN];
|
||||
int i;
|
||||
|
|
@ -162,9 +163,8 @@ register short monst;
|
|||
*/
|
||||
|
||||
/* VARARGS2 */
|
||||
score(amount, flags, monst)
|
||||
unsigned long amount;
|
||||
short monst;
|
||||
void
|
||||
score(unsigned long amount, int flags, short monst)
|
||||
{
|
||||
static struct sc_ent top_ten[NUMSCORE];
|
||||
register struct sc_ent *scp;
|
||||
|
|
@ -626,9 +626,8 @@ void writelog(unsigned long amount, int flags, short monst) {
|
|||
* Convert a character string that has been translated from a
|
||||
* score file by scoreout() back to a score file structure.
|
||||
*/
|
||||
scorein(scores, fd)
|
||||
struct sc_ent scores[];
|
||||
int fd;
|
||||
void
|
||||
scorein(struct sc_ent scores[], int fd)
|
||||
{
|
||||
int i;
|
||||
char scoreline[100];
|
||||
|
|
@ -652,9 +651,8 @@ int fd;
|
|||
* this for compatibility sake since some machines write out fields in
|
||||
* different orders.
|
||||
*/
|
||||
scoreout(scores, outf)
|
||||
struct sc_ent scores[];
|
||||
FILE *outf;
|
||||
void
|
||||
scoreout(struct sc_ent scores[], FILE *outf)
|
||||
{
|
||||
int i;
|
||||
char scoreline[100];
|
||||
|
|
@ -676,8 +674,8 @@ FILE *outf;
|
|||
* showpack:
|
||||
* Display the contents of the hero's pack
|
||||
*/
|
||||
showpack(howso)
|
||||
char *howso;
|
||||
void
|
||||
showpack(char *howso)
|
||||
{
|
||||
reg char *iname;
|
||||
reg int cnt, packnum;
|
||||
|
|
@ -706,7 +704,8 @@ char *howso;
|
|||
refresh();
|
||||
}
|
||||
|
||||
total_winner()
|
||||
void
|
||||
total_winner(void)
|
||||
{
|
||||
register struct linked_list *item;
|
||||
register struct object *obj;
|
||||
|
|
@ -760,11 +759,10 @@ total_winner()
|
|||
exit(0);
|
||||
}
|
||||
|
||||
update(top_ten, amount, quest, whoami, flags, level, monst, ctype, system, login)
|
||||
struct sc_ent top_ten[];
|
||||
unsigned long amount;
|
||||
short quest, flags, level, monst, ctype;
|
||||
char *whoami, *system, *login;
|
||||
int
|
||||
update(struct sc_ent top_ten[], unsigned long amount, short quest,
|
||||
char *whoami, short flags, short level, short monst, short ctype,
|
||||
char *system, char *login)
|
||||
{
|
||||
register struct sc_ent *scp, *sc2;
|
||||
int retval=0; /* 1 if a change, 0 otherwise */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue