diff arogue5/player.c @ 218:56e748983fa8

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.
author John "Elwin" Edwards
date Sun, 07 Feb 2016 14:39:21 -0500
parents beab22b087a1
children e52a8a7ad4c5
line wrap: on
line diff
--- a/arogue5/player.c	Sun Jan 31 13:45:07 2016 -0500
+++ b/arogue5/player.c	Sun Feb 07 14:39:21 2016 -0500
@@ -17,7 +17,8 @@
  *	cleric affecting undead
  */
 
-affect()
+void
+affect(void)
 {
     register struct linked_list *item;
     register struct thing *tp;
@@ -121,7 +122,8 @@
 /*
  * 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 @@
 
 /* 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 @@
  *	Sense gold
  */
 
-gsense()
+void
+gsense(void)
 {
     /* Only thieves can do this */
     if (player.t_ctype != C_THIEF) {
@@ -324,7 +328,8 @@
 /* 
  * 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 @@
  *	Steal in direction given in delta
  */
 
-steal()
+void
+steal(void)
 {
     register struct linked_list *item;
     register struct thing *tp;