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.
This commit is contained in:
parent
f8d1f422c8
commit
c661fd79d4
33 changed files with 426 additions and 439 deletions
|
|
@ -54,7 +54,6 @@ int group = NEWGROUP; /* Current group number */
|
|||
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 illegal[] = { "Illegal command '%s'." };
|
|||
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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue