diff arogue7/state.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 aa8e1fc62926
children b67b99f6c92b
line wrap: on
line diff
--- a/arogue7/state.c	Sun Feb 07 14:39:21 2016 -0500
+++ b/arogue7/state.c	Fri Feb 19 21:02:28 2016 -0500
@@ -73,6 +73,12 @@
 static int endian = 0x01020304;
 #define  big_endian ( *((char *)&endian) == 0x01 )
 
+int list_size(struct linked_list *l);
+int rs_write_int(FILE *savef, int c);
+int rs_read_int(int inf, int *i);
+int rs_write_object_list(FILE *savef, struct linked_list *l);
+int rs_read_object_list(int inf, struct linked_list **list);
+
 int
 rs_write(FILE *savef, void *ptr, size_t size)
 {
@@ -2346,7 +2352,7 @@
     return(READSTAT);
 }
 
-int
+void
 rs_fix_thing(struct thing *t)
 {
     struct thing *tp;