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
|
|
@ -18,7 +18,8 @@
|
|||
* displevl:
|
||||
* Display detailed level for wizard and scroll
|
||||
*/
|
||||
displevl()
|
||||
void
|
||||
displevl(void)
|
||||
{
|
||||
reg char ch, mch;
|
||||
reg int i,j;
|
||||
|
|
@ -73,7 +74,8 @@ displevl()
|
|||
* dispmons:
|
||||
* Show monsters for wizard and potion
|
||||
*/
|
||||
dispmons()
|
||||
void
|
||||
dispmons(void)
|
||||
{
|
||||
reg int ch, y, x;
|
||||
reg struct thing *it;
|
||||
|
|
@ -95,8 +97,8 @@ dispmons()
|
|||
* winat:
|
||||
* Get whatever character is at a location on the screen
|
||||
*/
|
||||
winat(y, x)
|
||||
int x, y;
|
||||
char
|
||||
winat(int y, int x)
|
||||
{
|
||||
reg char ch;
|
||||
|
||||
|
|
@ -111,8 +113,8 @@ int x, y;
|
|||
* cordok:
|
||||
* Returns TRUE if coordinate is on usable screen
|
||||
*/
|
||||
cordok(y, x)
|
||||
int y, x;
|
||||
bool
|
||||
cordok(int y, int x)
|
||||
{
|
||||
if (x < 0 || y < 0 || x >= COLS || y >= LINES - 1)
|
||||
return FALSE;
|
||||
|
|
@ -123,8 +125,8 @@ int y, x;
|
|||
* pl_on:
|
||||
* Returns TRUE if the player's flag is set
|
||||
*/
|
||||
pl_on(what)
|
||||
long what;
|
||||
bool
|
||||
pl_on(long what)
|
||||
{
|
||||
return (player.t_flags & what);
|
||||
}
|
||||
|
|
@ -134,8 +136,8 @@ long what;
|
|||
* pl_off:
|
||||
* Returns TRUE when player's flag is reset
|
||||
*/
|
||||
pl_off(what)
|
||||
long what;
|
||||
bool
|
||||
pl_off(long what)
|
||||
{
|
||||
return (!(player.t_flags & what));
|
||||
}
|
||||
|
|
@ -145,9 +147,8 @@ long what;
|
|||
* o_on:
|
||||
* Returns TRUE in the objects flag is set
|
||||
*/
|
||||
o_on(what,bit)
|
||||
struct object *what;
|
||||
long bit;
|
||||
bool
|
||||
o_on(struct object *what, long bit)
|
||||
{
|
||||
reg int flag;
|
||||
|
||||
|
|
@ -162,9 +163,8 @@ long bit;
|
|||
* o_off:
|
||||
* Returns TRUE is the objects flag is reset
|
||||
*/
|
||||
o_off(what,bit)
|
||||
struct object *what;
|
||||
long bit;
|
||||
bool
|
||||
o_off(struct object *what, long bit)
|
||||
{
|
||||
reg int flag;
|
||||
|
||||
|
|
@ -179,9 +179,8 @@ long bit;
|
|||
* setoflg:
|
||||
* Set the specified flag for the object
|
||||
*/
|
||||
setoflg(what,bit)
|
||||
struct object *what;
|
||||
long bit;
|
||||
void
|
||||
setoflg(struct object *what, long bit)
|
||||
{
|
||||
what->o_flags |= bit;
|
||||
}
|
||||
|
|
@ -191,9 +190,8 @@ long bit;
|
|||
* resoflg:
|
||||
* Reset the specified flag for the object
|
||||
*/
|
||||
resoflg(what,bit)
|
||||
struct object *what;
|
||||
long bit;
|
||||
void
|
||||
resoflg(struct object *what, long bit)
|
||||
{
|
||||
what->o_flags &= ~bit;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue