Debian Codegraph @

terps/advsys/glkstart.c

raw symbols SCIP
1 /* glkstart.c: Unix-specific startup code -- sample file.
2 Designed by Andrew Plotkin <[email protected]>
3 http://www.eblong.com/zarf/glk/index.html
4
5 This is Unix startup code for the simplest possible kind of Glk
6 program -- no command-line arguments; no startup files; no nothing.
7
8 Remember, this is a sample file. You should copy it into the Glk
9 program you are compiling, and modify it to your needs. This should
10 *not* be compiled into the Glk library itself.
11 */
12
13 #include "glk.h"
14 #include "glkstart.h"
15
16 char *gas_filename = NULL;
17
18 glkunix_argumentlist_t glkunix_arguments[] = {
19 { "", glkunix_arg_ValueFollows, "filename: The game file to load." },
20 { NULL, glkunix_arg_End, NULL }
21 };
22
23 int glkunix_startup_code(glkunix_startup_t *data)
24 {
25 if (data->argc == 2)
26 gas_filename = data->argv[1];
27 return TRUE;
28 }
29