Advanced Rogue 7: convert to ANSI-style function declarations.
Almost 1500 lines of compiler warnings remain, and the GCC developers are already working on a new version with even more warnings turned on by default.
This commit is contained in:
parent
f38b2223c8
commit
e8e6e604c3
39 changed files with 1181 additions and 889 deletions
|
|
@ -19,20 +19,21 @@
|
|||
|
||||
#include "curses.h"
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <ctype.h>
|
||||
#include "rogue.h"
|
||||
#ifdef PC7300
|
||||
#include "menu.h"
|
||||
#endif
|
||||
|
||||
int getbless(void);
|
||||
|
||||
/*
|
||||
* create_obj:
|
||||
* Create any object for wizard, scroll, magician, or cleric
|
||||
*/
|
||||
create_obj(prompt, which_item, which_type)
|
||||
bool prompt;
|
||||
int which_item, which_type;
|
||||
void
|
||||
create_obj(bool prompt, int which_item, int which_type)
|
||||
{
|
||||
reg struct linked_list *item;
|
||||
reg struct object *obj;
|
||||
|
|
@ -329,7 +330,8 @@ int which_item, which_type;
|
|||
* getbless:
|
||||
* Get a blessing for a wizards object
|
||||
*/
|
||||
getbless()
|
||||
int
|
||||
getbless(void)
|
||||
{
|
||||
reg char bless;
|
||||
|
||||
|
|
@ -346,7 +348,8 @@ getbless()
|
|||
/*
|
||||
* get a non-monster death type
|
||||
*/
|
||||
getdeath()
|
||||
int
|
||||
getdeath(void)
|
||||
{
|
||||
register int i;
|
||||
int which_death;
|
||||
|
|
@ -381,10 +384,10 @@ static char Displines[NUMMONST+1][LINELEN+1]; /* The lines themselves */
|
|||
|
||||
/*
|
||||
* make a monster for the wizard
|
||||
* showall -> show uniques and genocided creatures
|
||||
*/
|
||||
makemonster(showall, label, action)
|
||||
bool showall; /* showall -> show uniques and genocided creatures */
|
||||
char *label, *action;
|
||||
short
|
||||
makemonster(bool showall, char *label, char *action)
|
||||
{
|
||||
#ifdef PC7300
|
||||
register int nextmonst;
|
||||
|
|
@ -439,7 +442,7 @@ char *label, *action;
|
|||
|
||||
/* Print out the monsters */
|
||||
while (num_monst > 0) {
|
||||
register left_limit;
|
||||
int left_limit;
|
||||
|
||||
if (num_monst < num_lines) left_limit = (num_monst+1)/2;
|
||||
else left_limit = num_lines/2;
|
||||
|
|
@ -508,7 +511,8 @@ get_monst:
|
|||
* see if user knows password
|
||||
*/
|
||||
|
||||
passwd()
|
||||
bool
|
||||
passwd(void)
|
||||
{
|
||||
register char *sp, c;
|
||||
char buf[LINELEN], *crypt();
|
||||
|
|
@ -535,7 +539,8 @@ passwd()
|
|||
* Bamf the hero someplace else
|
||||
*/
|
||||
|
||||
teleport()
|
||||
int
|
||||
teleport(void)
|
||||
{
|
||||
register struct room *new_rp = NULL, *old_rp = roomin(&hero);
|
||||
register int rm, which;
|
||||
|
|
@ -636,8 +641,8 @@ teleport()
|
|||
* What a certin object is
|
||||
*/
|
||||
|
||||
whatis(what)
|
||||
struct linked_list *what;
|
||||
void
|
||||
whatis(struct linked_list *what)
|
||||
{
|
||||
register struct object *obj;
|
||||
register struct linked_list *item;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue