Super-Rogue: convert to ANSI-style function declarations.

This fixes most of the build warnings.
This commit is contained in:
John "Elwin" Edwards 2016-01-31 13:45:07 -05:00
parent 0f87d5b4d8
commit 59f448e92e
33 changed files with 783 additions and 518 deletions

View file

@ -23,8 +23,8 @@ int between = 0;
* doctor:
* A healing daemon that restores hit points after rest
*/
doctor(fromfuse)
int fromfuse;
void
doctor(int fromfuse)
{
reg int *thp, lv, ohp, ccon;
@ -63,8 +63,8 @@ int fromfuse;
* Swander:
* Called when it is time to start rolling for wandering monsters
*/
swander(fromfuse)
int fromfuse;
void
swander(int fromfuse)
{
start_daemon(rollwand, TRUE, AFTER);
}
@ -74,8 +74,8 @@ int fromfuse;
* rollwand:
* Called to roll to see if a wandering monster starts up
*/
rollwand(fromfuse)
int fromfuse;
void
rollwand(int fromfuse)
{
if (++between >= 4) {
@ -94,8 +94,8 @@ int fromfuse;
* unconfuse:
* Release the poor player from his confusion
*/
unconfuse(fromfuse)
int fromfuse;
void
unconfuse(int fromfuse)
{
if (pl_on(ISHUH))
msg("You feel less confused now.");
@ -106,8 +106,8 @@ int fromfuse;
* unsee:
* He lost his see invisible power
*/
unsee(fromfuse)
int fromfuse;
void
unsee(int fromfuse)
{
player.t_flags &= ~CANSEE;
}
@ -116,8 +116,8 @@ int fromfuse;
* sight:
* He gets his sight back
*/
sight(fromfuse)
int fromfuse;
void
sight(int fromfuse)
{
if (pl_on(ISBLIND))
msg("The veil of darkness lifts.");
@ -129,8 +129,8 @@ int fromfuse;
* nohaste:
* End the hasting
*/
nohaste(fromfuse)
int fromfuse;
void
nohaste(int fromfuse)
{
if (pl_on(ISHASTE))
msg("You feel yourself slowing down.");
@ -142,8 +142,8 @@ int fromfuse;
* stomach:
* Digest the hero's food
*/
stomach(fromfuse)
int fromfuse;
void
stomach(int fromfuse)
{
reg int oldfood, old_hunger;
@ -188,8 +188,8 @@ int fromfuse;
* noteth:
* Hero is no longer etherereal
*/
noteth(fromfuse)
int fromfuse;
void
noteth(int fromfuse)
{
int ch;
@ -209,8 +209,8 @@ int fromfuse;
* sapem:
* Sap the hero's life away
*/
sapem(fromfuse)
int fromfuse;
void
sapem(int fromfuse)
{
chg_abil(rnd(4) + 1, -1, TRUE);
fuse(sapem, TRUE, 150);
@ -221,8 +221,8 @@ int fromfuse;
* notslow:
* Restore the hero's normal speed
*/
notslow(fromfuse)
int fromfuse;
void
notslow(int fromfuse)
{
if (pl_on(ISSLOW))
msg("You no longer feel hindered.");
@ -233,8 +233,8 @@ int fromfuse;
* notregen:
* Hero is no longer regenerative
*/
notregen(fromfuse)
int fromfuse;
void
notregen(int fromfuse)
{
if (pl_on(ISREGEN))
msg("You no longer feel bolstered.");
@ -245,8 +245,8 @@ int fromfuse;
* notinvinc:
* Hero not invincible any more
*/
notinvinc(fromfuse)
int fromfuse;
void
notinvinc(int fromfuse)
{
if (pl_on(ISINVINC))
msg("You no longer feel invincible.");