comparison xrogue/wear.c @ 225:4f6e056438eb

Merge the GCC5 and build fix branches.
author John "Elwin" Edwards
date Wed, 02 Mar 2016 21:28:34 -0500
parents f54901b9c39b
children 7c1cb43f346e
comparison
equal deleted inserted replaced
224:4d0f53998e8a 225:4f6e056438eb
18 18
19 #include <stdlib.h> 19 #include <stdlib.h>
20 #include <curses.h> 20 #include <curses.h>
21 #include "rogue.h" 21 #include "rogue.h"
22 22
23 int dress_units(struct linked_list *item);
24
23 /* 25 /*
24 * take_off: 26 * take_off:
25 * Get the armor off of the players back 27 * Get the armor off of the players back
26 */ 28 */
27 29
28 take_off() 30 void
31 take_off(void)
29 { 32 {
30 register struct object *obj; 33 register struct object *obj;
31 register struct linked_list *item; 34 register struct linked_list *item;
32 35
33 /* It takes time to take things off */ 36 /* It takes time to take things off */
72 /* 75 /*
73 * wear: 76 * wear:
74 * The player wants to wear something, so let him/her put it on. 77 * The player wants to wear something, so let him/her put it on.
75 */ 78 */
76 79
77 wear() 80 void
81 wear(void)
78 { 82 {
79 register struct linked_list *item; 83 register struct linked_list *item;
80 register struct object *obj; 84 register struct object *obj;
81 register int i; 85 register int i;
82 86
393 * dress_units: 397 * dress_units:
394 * How many movements periods does it take to put on or remove the 398 * How many movements periods does it take to put on or remove the
395 * given item of "clothing"? 399 * given item of "clothing"?
396 */ 400 */
397 401
398 dress_units(item) 402 int
399 struct linked_list *item; 403 dress_units(struct linked_list *item)
400 { 404 {
401 register struct object *obj; 405 register struct object *obj;
402 406
403 obj = OBJPTR(item); 407 obj = OBJPTR(item);
404 408