Super-Rogue: convert to ANSI-style function declarations.
This fixes most of the build warnings.
This commit is contained in:
parent
0f87d5b4d8
commit
59f448e92e
33 changed files with 783 additions and 518 deletions
|
|
@ -16,6 +16,7 @@
|
|||
|
||||
#include <stdlib.h>
|
||||
#include <ctype.h>
|
||||
#include <string.h>
|
||||
#include "rogue.h"
|
||||
#include "rogue.ext"
|
||||
|
||||
|
|
@ -23,8 +24,8 @@
|
|||
* whatis:
|
||||
* What a certain object is
|
||||
*/
|
||||
whatis(what)
|
||||
struct linked_list *what;
|
||||
void
|
||||
whatis(struct linked_list *what)
|
||||
{
|
||||
reg struct object *obj;
|
||||
reg struct linked_list *item;
|
||||
|
|
@ -74,8 +75,8 @@ struct linked_list *what;
|
|||
* create_obj:
|
||||
* Create any object for wizard or scroll (almost)
|
||||
*/
|
||||
create_obj(fscr)
|
||||
bool fscr;
|
||||
void
|
||||
create_obj(bool fscr)
|
||||
{
|
||||
reg struct linked_list *item;
|
||||
reg struct object *obj;
|
||||
|
|
@ -245,7 +246,8 @@ bool fscr;
|
|||
* getbless:
|
||||
* Get a blessing for a wizards object
|
||||
*/
|
||||
getbless()
|
||||
int
|
||||
getbless(void)
|
||||
{
|
||||
int bless;
|
||||
|
||||
|
|
@ -263,8 +265,8 @@ getbless()
|
|||
* makemons:
|
||||
* Make a monster
|
||||
*/
|
||||
makemons(what)
|
||||
int what;
|
||||
bool
|
||||
makemons(int what)
|
||||
{
|
||||
reg int x, y, oktomake = FALSE, appear = 1;
|
||||
struct coord mp;
|
||||
|
|
@ -293,9 +295,8 @@ int what;
|
|||
* telport:
|
||||
* Bamf the thing someplace else
|
||||
*/
|
||||
teleport(spot, th)
|
||||
struct coord spot;
|
||||
struct thing *th;
|
||||
int
|
||||
teleport(struct coord spot, struct thing *th)
|
||||
{
|
||||
reg int rm, y, x;
|
||||
struct coord oldspot;
|
||||
|
|
@ -345,7 +346,8 @@ struct thing *th;
|
|||
* passwd:
|
||||
* See if user knows password
|
||||
*/
|
||||
passwd()
|
||||
bool
|
||||
passwd(void)
|
||||
{
|
||||
reg char *sp, c;
|
||||
bool passok;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue