Advanced Rogue 5: convert to ANSI function declarations.
This still leaves over a thousand lines of warning messages, mostly related to the return types of daemons and fuses.
This commit is contained in:
parent
59f448e92e
commit
f38b2223c8
37 changed files with 977 additions and 733 deletions
|
|
@ -17,14 +17,16 @@
|
|||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
void res_intelligence(void);
|
||||
void res_wisdom(void);
|
||||
|
||||
|
||||
/*
|
||||
* Increase player's constitution
|
||||
*/
|
||||
|
||||
add_const(cursed)
|
||||
bool cursed;
|
||||
void
|
||||
add_const(bool cursed)
|
||||
{
|
||||
/* Do the potion */
|
||||
if (cursed) {
|
||||
|
|
@ -47,8 +49,8 @@ bool cursed;
|
|||
* Increase player's dexterity
|
||||
*/
|
||||
|
||||
add_dexterity(cursed)
|
||||
bool cursed;
|
||||
void
|
||||
add_dexterity(bool cursed)
|
||||
{
|
||||
int ring_str; /* Value of ring strengths */
|
||||
|
||||
|
|
@ -80,8 +82,8 @@ bool cursed;
|
|||
* add a haste to the player
|
||||
*/
|
||||
|
||||
add_haste(blessed)
|
||||
bool blessed;
|
||||
void
|
||||
add_haste(bool blessed)
|
||||
{
|
||||
int hasttime;
|
||||
|
||||
|
|
@ -110,8 +112,8 @@ bool blessed;
|
|||
/*
|
||||
* Increase player's intelligence
|
||||
*/
|
||||
add_intelligence(cursed)
|
||||
bool cursed;
|
||||
void
|
||||
add_intelligence(bool cursed)
|
||||
{
|
||||
int ring_str; /* Value of ring strengths */
|
||||
|
||||
|
|
@ -141,7 +143,8 @@ bool cursed;
|
|||
/*
|
||||
* this routine makes the hero move slower
|
||||
*/
|
||||
add_slow()
|
||||
void
|
||||
add_slow(void)
|
||||
{
|
||||
if (on(player, ISHASTE)) { /* Already sped up */
|
||||
extinguish(nohaste);
|
||||
|
|
@ -164,8 +167,8 @@ add_slow()
|
|||
* Increase player's strength
|
||||
*/
|
||||
|
||||
add_strength(cursed)
|
||||
bool cursed;
|
||||
void
|
||||
add_strength(bool cursed)
|
||||
{
|
||||
|
||||
if (cursed) {
|
||||
|
|
@ -182,8 +185,8 @@ bool cursed;
|
|||
* Increase player's wisdom
|
||||
*/
|
||||
|
||||
add_wisdom(cursed)
|
||||
bool cursed;
|
||||
void
|
||||
add_wisdom(bool cursed)
|
||||
{
|
||||
int ring_str; /* Value of ring strengths */
|
||||
|
||||
|
|
@ -215,8 +218,8 @@ bool cursed;
|
|||
* Lower a level of experience
|
||||
*/
|
||||
|
||||
lower_level(who)
|
||||
short who;
|
||||
void
|
||||
lower_level(short who)
|
||||
{
|
||||
int fewer, nsides = 0;
|
||||
|
||||
|
|
@ -239,10 +242,8 @@ short who;
|
|||
death(who);
|
||||
}
|
||||
|
||||
quaff(which, flag, is_potion)
|
||||
int which;
|
||||
int flag;
|
||||
bool is_potion;
|
||||
void
|
||||
quaff(int which, int flag, bool is_potion)
|
||||
{
|
||||
register struct object *obj = NULL;
|
||||
register struct linked_list *item, *titem;
|
||||
|
|
@ -625,8 +626,8 @@ bool is_potion;
|
|||
* if called with zero the restore fully
|
||||
*/
|
||||
|
||||
res_dexterity(howmuch)
|
||||
int howmuch;
|
||||
void
|
||||
res_dexterity(int howmuch)
|
||||
{
|
||||
short save_max;
|
||||
int ring_str;
|
||||
|
|
@ -656,7 +657,8 @@ int howmuch;
|
|||
* Restore player's intelligence
|
||||
*/
|
||||
|
||||
res_intelligence()
|
||||
void
|
||||
res_intelligence(void)
|
||||
{
|
||||
short save_max;
|
||||
int ring_str;
|
||||
|
|
@ -680,7 +682,8 @@ res_intelligence()
|
|||
* Restore player's wisdom
|
||||
*/
|
||||
|
||||
res_wisdom()
|
||||
void
|
||||
res_wisdom(void)
|
||||
{
|
||||
short save_max;
|
||||
int ring_str;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue