Super-Rogue: convert to ANSI-style function declarations.

This fixes most of the build warnings.
This commit is contained in:
John "Elwin" Edwards 2016-01-31 13:45:07 -05:00
parent 0f87d5b4d8
commit 59f448e92e
33 changed files with 783 additions and 518 deletions

View file

@ -16,15 +16,18 @@
*/
#include <ctype.h>
#include <string.h>
#include "rogue.h"
#include "rogue.ext"
void drain(int ymin, int ymax, int xmin, int xmax);
/*
* fix_stick:
* Init a stick for the hero
*/
fix_stick(cur)
struct object *cur;
void
fix_stick(struct object *cur)
{
struct rod *rd;
@ -62,8 +65,8 @@ struct object *cur;
* do_zap:
* Zap a stick at something
*/
do_zap(gotdir)
bool gotdir;
void
do_zap(bool gotdir)
{
reg struct linked_list *item;
reg struct object *obj;
@ -537,8 +540,8 @@ bool gotdir;
* drain:
* Do drain hit points from player stick
*/
drain(ymin, ymax, xmin, xmax)
int ymin, ymax, xmin, xmax;
void
drain(int ymin, int ymax, int xmin, int xmax)
{
reg int i, j, cnt;
reg struct thing *ick;
@ -580,8 +583,7 @@ int ymin, ymax, xmin, xmax;
* Return number of charges left in a stick
*/
char *
charge_str(obj)
struct object *obj;
charge_str(struct object *obj)
{
static char buf[20];