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
|
|
@ -92,7 +92,7 @@ void draw_room(struct room *rp);
|
|||
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 @@ struct coord *rndmove(struct thing *who);
|
|||
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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue