comparison arogue7/wear.c @ 219:f9ef86cf22b2

Advanced Rogue 7: convert to ANSI-style function declarations. Almost 1500 lines of compiler warnings remain, and the GCC developers are already working on a new version with even more warnings turned on by default.
author John "Elwin" Edwards
date Fri, 19 Feb 2016 21:02:28 -0500
parents cadff8f047a1
children e1cd27c5464f
comparison
equal deleted inserted replaced
218:56e748983fa8 219:f9ef86cf22b2
24 /* 24 /*
25 * take_off: 25 * take_off:
26 * Get the armor off of the players back 26 * Get the armor off of the players back
27 */ 27 */
28 28
29 take_off() 29 void
30 take_off(void)
30 { 31 {
31 register struct object *obj; 32 register struct object *obj;
32 register struct linked_list *item; 33 register struct linked_list *item;
33 34
34 /* It takes time to take things off */ 35 /* It takes time to take things off */
73 /* 74 /*
74 * wear: 75 * wear:
75 * The player wants to wear something, so let him/her put it on. 76 * The player wants to wear something, so let him/her put it on.
76 */ 77 */
77 78
78 wear() 79 void
80 wear(void)
79 { 81 {
80 register struct linked_list *item; 82 register struct linked_list *item;
81 register struct object *obj; 83 register struct object *obj;
82 register int i; 84 register int i;
83 85
387 /* 389 /*
388 * dress_units: 390 * dress_units:
389 * How many movements periods does it take to put on or remove the 391 * How many movements periods does it take to put on or remove the
390 * given item of "clothing"? 392 * given item of "clothing"?
391 */ 393 */
392 dress_units(item) 394 int
393 struct linked_list *item; 395 dress_units(struct linked_list *item)
394 { 396 {
395 register struct object *obj; 397 register struct object *obj;
396 398
397 obj = OBJPTR(item); 399 obj = OBJPTR(item);
398 400