diff arogue5/state.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 1cf517d5d2a8
children b49d8b963df3
line wrap: on
line diff
--- a/arogue5/state.c	Sun Jan 31 13:45:07 2016 -0500
+++ b/arogue5/state.c	Sun Feb 07 14:39:21 2016 -0500
@@ -64,6 +64,12 @@
 #include <string.h>
 #include "rogue.h"
 
+int rs_read_int(int inf, int *i);
+int rs_write_int(FILE *savef, int c);
+int list_size(struct linked_list *l);
+int rs_write_object_list(FILE *savef, struct linked_list *l);
+int rs_read_object_list(int inf, struct linked_list **list);
+
 #define READSTAT (format_error || read_error )
 #define WRITESTAT (write_error)
 
@@ -1712,6 +1718,7 @@
     return(READSTAT);
 }
 
+int
 rs_write_room_reference(FILE *savef, struct room *rp)
 {
     int i, room = -1;
@@ -2224,7 +2231,7 @@
     return(READSTAT);
 }
 
-int
+void
 rs_fix_thing(struct thing *t)
 {
     struct thing *tp;
@@ -2434,6 +2441,7 @@
     return(WRITESTAT);
 }
 
+int
 rs_restore_file(int inf)
 {
     int i;