diff srogue/global.c @ 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 78fa1d0e5d25
children 0250220d8cdd
line wrap: on
line diff
--- a/srogue/global.c	Sun Sep 10 17:30:13 2017 -0400
+++ b/srogue/global.c	Fri Sep 15 19:57:54 2017 -0400
@@ -54,7 +54,6 @@
 int hungry_state = F_OKAY;	/* How hungry is he */
 int foodlev = 1;			/* how fast he eats food */
 int ringfood = 0;			/* rings affect on food consumption */
-int scorefd = -1;			/* Scoreboard file descriptor */
 char take;					/* Thing the rogue is taking */
 char runch;					/* Direction player is running */
 char curpurch[15];			/* name of item ready to buy */
@@ -102,6 +101,7 @@
 char callit[] =		{ "Call it: " };
 char starlist[] =	{ " (* for a list)" };
 
+FILE *scoreboard = NULL;	/* Scoreboard file */
 FILE *logfile = NULL;
 
 struct coord oldpos;		/* Pos before last look() call */