Mercurial > hg > early-roguelike
comparison arogue5/scrolls.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 | 0298a68cc179 |
| children |
comparison
equal
deleted
inserted
replaced
| 217:94a0d9dd5ce1 | 218:56e748983fa8 |
|---|---|
| 21 | 21 |
| 22 | 22 |
| 23 /* | 23 /* |
| 24 * let the hero get rid of some type of monster (but not a UNIQUE!) | 24 * let the hero get rid of some type of monster (but not a UNIQUE!) |
| 25 */ | 25 */ |
| 26 genocide() | 26 void |
| 27 genocide(void) | |
| 27 { | 28 { |
| 28 register struct linked_list *ip; | 29 register struct linked_list *ip; |
| 29 register struct thing *mp; | 30 register struct thing *mp; |
| 30 register int i; | 31 register int i; |
| 31 register struct linked_list *nip; | 32 register struct linked_list *nip; |
| 35 register int which_monst; | 36 register int which_monst; |
| 36 char monst_name[40]; | 37 char monst_name[40]; |
| 37 | 38 |
| 38 /* Print out the monsters */ | 39 /* Print out the monsters */ |
| 39 while (num_monst > 0) { | 40 while (num_monst > 0) { |
| 40 register left_limit; | 41 int left_limit; |
| 41 | 42 |
| 42 if (num_monst < num_lines) left_limit = (num_monst+1)/2; | 43 if (num_monst < num_lines) left_limit = (num_monst+1)/2; |
| 43 else left_limit = num_lines/2; | 44 else left_limit = num_lines/2; |
| 44 | 45 |
| 45 wclear(hw); | 46 wclear(hw); |
| 110 monsters[which_monst].m_wander = FALSE; | 111 monsters[which_monst].m_wander = FALSE; |
| 111 mpos = 0; | 112 mpos = 0; |
| 112 msg("You have wiped out the %s.", monsters[which_monst].m_name); | 113 msg("You have wiped out the %s.", monsters[which_monst].m_name); |
| 113 } | 114 } |
| 114 | 115 |
| 115 read_scroll(which, flag, is_scroll) | 116 void |
| 116 register int which; | 117 read_scroll(int which, int flag, bool is_scroll) |
| 117 int flag; | |
| 118 bool is_scroll; | |
| 119 { | 118 { |
| 120 register struct object *obj = NULL, *nobj; | 119 register struct object *obj = NULL, *nobj; |
| 121 register struct linked_list *item, *nitem; | 120 register struct linked_list *item, *nitem; |
| 122 register int i,j; | 121 register int i,j; |
| 123 register char ch, nch; | 122 register char ch, nch; |
