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

@ -29,8 +29,8 @@
* how much food does this ring use up?
*/
ring_eat(hand)
register int hand;
int
ring_eat(int hand)
{
if (cur_ring[hand] == NULL)
return 0;
@ -54,8 +54,8 @@ register int hand;
return 0;
}
ring_on(item)
register struct linked_list *item;
void
ring_on(struct linked_list *item)
{
register struct object *obj;
register int save_max;
@ -122,8 +122,7 @@ register struct linked_list *item;
*/
char *
ring_num(obj)
register struct object *obj;
ring_num(struct object *obj)
{
static char buf[5];
@ -158,7 +157,8 @@ register struct object *obj;
* Return the effect of the specified ring
*/
ring_value(type)
int
ring_value(int type)
{
int result = 0;