XRogue: convert to ANSI-style function declarations.

This commit is contained in:
John "Elwin" Edwards 2016-03-02 21:13:26 -05:00
parent e8e6e604c3
commit 2853120387
41 changed files with 1281 additions and 908 deletions

View file

@ -21,10 +21,8 @@
#include <string.h>
#include "rogue.h"
boomerang(ydelta, xdelta, item, tp)
int ydelta, xdelta;
register struct linked_list *item;
register struct thing *tp;
void
boomerang(int ydelta, int xdelta, struct linked_list *item, struct thing *tp)
{
register struct object *obj;
struct thing midpoint;
@ -56,10 +54,8 @@ register struct thing *tp;
* tp other than t_pos unless we change boomerang().
*/
do_motion(obj, ydelta, xdelta, tp)
register struct object *obj;
register int ydelta, xdelta;
register struct thing *tp;
void
do_motion(struct object *obj, int ydelta, int xdelta, struct thing *tp)
{
/*
@ -117,9 +113,8 @@ register struct thing *tp;
* Drop an item someplace around here.
*/
fall(item, pr)
register struct linked_list *item;
bool pr;
void
fall(struct linked_list *item, bool pr)
{
register struct object *obj;
register struct room *rp;
@ -171,10 +166,8 @@ bool pr;
* Does the missile hit the monster
*/
hit_monster(y, x, obj, tp)
register int y, x;
struct object *obj;
register struct thing *tp;
bool
hit_monster(int y, int x, struct object *obj, struct thing *tp)
{
static coord mp;
@ -204,9 +197,8 @@ register struct thing *tp;
* Set up the initial goodies for a weapon
*/
init_weapon(weap, type)
register struct object *weap;
char type;
void
init_weapon(struct object *weap, char type)
{
register struct init_weps *iwp;
@ -229,10 +221,8 @@ char type;
* Fire a missile in a given direction
*/
missile(ydelta, xdelta, item, tp)
int ydelta, xdelta;
register struct linked_list *item;
register struct thing *tp;
void
missile(int ydelta, int xdelta, struct linked_list *item, struct thing *tp)
{
register struct object *obj;
register struct linked_list *nitem;
@ -308,8 +298,7 @@ register struct thing *tp;
*/
char *
num(n1, n2)
register int n1, n2;
num(int n1, int n2)
{
static char numbuf[LINELEN/2];
@ -329,7 +318,8 @@ register int n1, n2;
* Pull out a certain weapon
*/
wield()
void
wield(void)
{
register struct linked_list *item;
register struct object *obj, *oweapon;