diff rogue4/extern.h @ 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 3d4252fa2ed3
children 70aa5808c782
line wrap: on
line diff
--- a/rogue4/extern.h	Sun Sep 10 17:30:13 2017 -0400
+++ b/rogue4/extern.h	Fri Sep 15 19:57:54 2017 -0400
@@ -40,12 +40,14 @@
 		*ws_guess[], *ws_type[];
 
 extern int	a_chances[], a_class[], count, dnum, food_left,
-		fung_hit, fd, group, hungry_state, inpack, lastscore,
-		level, lfd, max_level, mpos, no_command, no_food, no_move,
+		fung_hit, group, hungry_state, inpack, lastscore,
+		level, max_level, mpos, no_command, no_food, no_move,
 		ntraps, purse, quiet, total;
 
 extern long	seed;
 
+extern FILE	*score_file, *log_file;
+
 extern WINDOW	*hw;
 
 /*
@@ -92,5 +94,5 @@
 extern int   md_shellescape(void);
 extern void  md_sleep(int s);
 extern int   md_unlink(char *file);
-extern int   md_unlink_open_file(char *file, int inf);
+extern int   md_unlink_open_file(char *file, FILE *inf);
 extern unsigned int md_random_seed(void);