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,7 +17,8 @@
|
|||
* cleric affecting undead
|
||||
*/
|
||||
|
||||
affect()
|
||||
void
|
||||
affect(void)
|
||||
{
|
||||
register struct linked_list *item;
|
||||
register struct thing *tp;
|
||||
|
|
@ -121,7 +122,8 @@ annoy:
|
|||
/*
|
||||
* the magic user is going to try and cast a spell
|
||||
*/
|
||||
cast()
|
||||
void
|
||||
cast(void)
|
||||
{
|
||||
register int i, num_spells, spell_ability;
|
||||
int which_spell;
|
||||
|
|
@ -271,7 +273,8 @@ cast()
|
|||
|
||||
/* Constitution bonus */
|
||||
|
||||
const_bonus() /* Hit point adjustment for changing levels */
|
||||
int
|
||||
const_bonus(void) /* Hit point adjustment for changing levels */
|
||||
{
|
||||
if (pstats.s_const > 6 && pstats.s_const <= 14)
|
||||
return(0);
|
||||
|
|
@ -290,7 +293,8 @@ const_bonus() /* Hit point adjustment for changing levels */
|
|||
* Sense gold
|
||||
*/
|
||||
|
||||
gsense()
|
||||
void
|
||||
gsense(void)
|
||||
{
|
||||
/* Only thieves can do this */
|
||||
if (player.t_ctype != C_THIEF) {
|
||||
|
|
@ -324,7 +328,8 @@ gsense()
|
|||
/*
|
||||
* the cleric asks his deity for a spell
|
||||
*/
|
||||
pray()
|
||||
void
|
||||
pray(void)
|
||||
{
|
||||
register int i, num_prayers, prayer_ability;
|
||||
int which_prayer;
|
||||
|
|
@ -488,7 +493,8 @@ pray()
|
|||
* Steal in direction given in delta
|
||||
*/
|
||||
|
||||
steal()
|
||||
void
|
||||
steal(void)
|
||||
{
|
||||
register struct linked_list *item;
|
||||
register struct thing *tp;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue