XRogue: convert to ANSI-style function declarations.
This commit is contained in:
parent
e8e6e604c3
commit
2853120387
41 changed files with 1281 additions and 908 deletions
|
|
@ -17,6 +17,7 @@
|
|||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <curses.h>
|
||||
#include <ctype.h>
|
||||
#include "rogue.h"
|
||||
|
|
@ -25,7 +26,8 @@
|
|||
* let the hero get rid of some type of monster
|
||||
*/
|
||||
|
||||
genocide()
|
||||
void
|
||||
genocide(void)
|
||||
{
|
||||
register struct linked_list *ip;
|
||||
register struct thing *mp;
|
||||
|
|
@ -56,10 +58,8 @@ genocide()
|
|||
msg("You have wiped out the %s.", monsters[which_monst].m_name);
|
||||
}
|
||||
|
||||
read_scroll(which, flag, is_scroll)
|
||||
register int which;
|
||||
int flag;
|
||||
bool is_scroll;
|
||||
void
|
||||
read_scroll(int which, int flag, bool is_scroll)
|
||||
{
|
||||
register struct object *obj = NULL, *nobj;
|
||||
register struct linked_list *item, *nitem;
|
||||
|
|
@ -499,7 +499,7 @@ bool is_scroll;
|
|||
nobj->o_flags &= ~ISCURSED;
|
||||
}
|
||||
msg("Your pack glistens brightly!");
|
||||
do_panic(NULL); /* this startles them */
|
||||
do_panic(0); /* this startles them */
|
||||
/* return; leaks item, go through end of function */
|
||||
}
|
||||
else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue