diff srogue/rogue.ext @ 279:d3968e9cb98d

Use C stdio functions for score files and save files. Switching from Unix file descriptor operations to C standard FILE* functions will reduce portability problems.
author John "Elwin" Edwards
date Fri, 15 Sep 2017 19:57:54 -0400
parents b67b99f6c92b
children 057c5114e244
line wrap: on
line diff
--- a/srogue/rogue.ext	Sun Sep 10 17:30:13 2017 -0400
+++ b/srogue/rogue.ext	Fri Sep 15 19:57:54 2017 -0400
@@ -92,7 +92,7 @@
 int     drop(struct linked_list *item);
 bool    dropcheck(struct object *op);
 void    eat(void);
-int     encread(void *starta, unsigned int size, int inf);
+int     encread(void *starta, unsigned int size, FILE *inf);
 void    encwrite(void *starta, unsigned int size, FILE *outf);
 void    endit(int a);
 void    endmsg(void);
@@ -200,7 +200,7 @@
 int     roll(int number, int sides);
 void    rollwand(int fromfuse);
 struct room *roomin(struct coord *cp);
-int     rs_restore_file(int inf);
+int     rs_restore_file(FILE *inf);
 int     rs_save_file(FILE *savef);
 void    runners(void);
 void    runto(struct coord *runner, struct coord *spot);