-#define DEFINE_GLOBALS_FROM_INCLUDES
#include <getopt.h>
#include <stdlib.h>
#include <stdio.h>
struct game_t game;
-long LNLENG, LNPOSN;
-char rawbuf[LINESIZE], INLINE[LINESIZE + 1];
-
FILE *logfp = NULL, *rfp = NULL;
bool oldstyle = false;
bool editline = true;
" -v version number of save format.\n");
fprintf(stderr,
" -o file name of save game to write.\n");
- exit(-1);
+ exit(EXIT_FAILURE);
break;
}
}
usage, argv[0]);
fprintf(stderr,
"ERROR: filename required\n");
- exit(-1);
+ exit(EXIT_FAILURE);
}
FILE *fp = NULL;
if (fp == NULL) {
fprintf(stderr,
"Can't open file %s. Exiting.\n", savefilename);
- exit(-1);
+ exit(EXIT_FAILURE);
}
savefile(fp, version);