diff arogue5/state.c @ 225:4f6e056438eb

Merge the GCC5 and build fix branches.
author John "Elwin" Edwards
date Wed, 02 Mar 2016 21:28:34 -0500
parents 56e748983fa8
children b49d8b963df3
line wrap: on
line diff
--- a/arogue5/state.c	Fri Feb 26 17:30:30 2016 -0500
+++ b/arogue5/state.c	Wed Mar 02 21:28:34 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;