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
|
|
@ -696,17 +696,6 @@ md_flushinp(void)
|
|||
#endif
|
||||
}
|
||||
|
||||
extern int scorefd;
|
||||
extern char score_file[];
|
||||
|
||||
void
|
||||
md_reopen_score(void)
|
||||
{
|
||||
if (scorefd > 0)
|
||||
close(scorefd);
|
||||
scorefd = open(score_file, O_RDWR | O_CREAT, 0666);
|
||||
}
|
||||
|
||||
/*
|
||||
Cursor/Keypad Support
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue