Replace fDATIME with ANSI/POSIX clock_gettime(). Rip out DOS/AMIGA shims.

The thinking here is that we simplify life by going pure ANSI/POSIX.
This is a text game.  If it ever runs on anything but Unix again it's
almost certain to be on something like WSL that supplies a
POSIX-conformant text console.
This commit is contained in:
Eric S. Raymond 2017-05-18 17:18:16 -04:00
parent bd0487acc5
commit 23f2dbe814
6 changed files with 5 additions and 69 deletions

4
init.c
View file

@ -641,14 +641,10 @@ static void quick_item(long*);
static void quick_array(long*, long);
static bool quick_init(void) {
#ifdef AMIGA
f = fopen("ram:adventure.data", READ_MODE);
#else
extern char *getenv();
char *adv = getenv("ADVENTURE");
f = NULL;
if(adv)f = fopen(adv,READ_MODE);
#endif
if(f == NULL)f = fopen("adventure.data",READ_MODE);
if(f == NULL)return(FALSE);
init_reading = TRUE;