home · contact · privacy
Built error checking into file reading/writing routines and calls of them.
[plomrogue] / src / map_objects.h
index 9eb055c156ebd3d94090460d1ad8d228216ecdee..7fcf1c7df63087df887c2076cffb3cbe7a99c223 100644 (file)
@@ -81,15 +81,16 @@ extern void init_map_object_defs(struct World * world, char * filename);
  * "def_id".
  */
 extern void * build_map_objects(struct World * world, void * start, char def_id,
-                                 unsigned char n);
+                                unsigned char n);
 
 
 
 /* Write to/read from file chain of map objects starting/to start in memory at
  * "start".
  */
-extern void write_map_objects(struct World * world, void * start, FILE * file);
-extern void read_map_objects(struct World * world, void * start, FILE * file);
+extern uint8_t write_map_objects(struct World * world, void * start,
+                                 FILE * file);
+extern uint8_t read_map_objects(struct World * world, void * start, FILE * file);