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
28
srogue/rip.c
28
srogue/rip.c
|
|
@ -50,8 +50,8 @@ static char *rip[] = {
|
|||
extern int scorefd;
|
||||
extern FILE *logfile;
|
||||
|
||||
char *killname();
|
||||
void writelog(int amount, int aflag, char monst);
|
||||
char *killname(unsigned char monst);
|
||||
void showpack(bool winner, char *howso);
|
||||
|
||||
/*
|
||||
* death:
|
||||
|
|
@ -59,8 +59,8 @@ void writelog(int amount, int aflag, char monst);
|
|||
*/
|
||||
|
||||
#include <time.h>
|
||||
death(monst)
|
||||
char monst;
|
||||
void
|
||||
death(char monst)
|
||||
{
|
||||
reg char dp, *killer;
|
||||
struct tm *lt;
|
||||
|
|
@ -119,9 +119,8 @@ int oldpurse;
|
|||
* score:
|
||||
* Figure score and post it.
|
||||
*/
|
||||
score(amount, aflag, monst)
|
||||
char monst;
|
||||
int amount, aflag;
|
||||
void
|
||||
score(int amount, int aflag, char monst)
|
||||
{
|
||||
reg struct sc_ent *scp, *sc2;
|
||||
reg int i, fd, prflags = 0;
|
||||
|
|
@ -261,8 +260,8 @@ void writelog(int amount, int aflag, char monst)
|
|||
* showtop:
|
||||
* Display the top ten on the screen
|
||||
*/
|
||||
showtop(showname)
|
||||
int showname;
|
||||
bool
|
||||
showtop(int showname)
|
||||
{
|
||||
reg int fd, i;
|
||||
char *killer;
|
||||
|
|
@ -310,7 +309,8 @@ int showname;
|
|||
* total_winner:
|
||||
* The hero made it back out alive
|
||||
*/
|
||||
total_winner()
|
||||
void
|
||||
total_winner(void)
|
||||
{
|
||||
clear();
|
||||
addstr(" \n");
|
||||
|
|
@ -345,9 +345,8 @@ addstr("a great profit and are admitted to the fighters guild.\n");
|
|||
* showpack:
|
||||
* Display the contents of the hero's pack
|
||||
*/
|
||||
showpack(winner, howso)
|
||||
bool winner;
|
||||
char *howso;
|
||||
void
|
||||
showpack(bool winner, char *howso)
|
||||
{
|
||||
reg char *iname;
|
||||
reg int cnt, worth, ch;
|
||||
|
|
@ -392,8 +391,7 @@ char *howso;
|
|||
* Returns what the hero was killed by.
|
||||
*/
|
||||
char *
|
||||
killname(monst)
|
||||
unsigned char monst;
|
||||
killname(unsigned char monst)
|
||||
{
|
||||
if (monst < MAXMONS + 1)
|
||||
return monsters[monst].m_name;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue