forked from totalspectrum/spin2cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cmdline.h
49 lines (40 loc) · 1.09 KB
/
cmdline.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#ifndef CMDLINE_H
#define CMDLINE_H
extern int spinyydebug;
extern const char *gl_progname;
extern const char *gl_cc;
extern const char *gl_intstring;
extern const char *gl_outname;
typedef struct CmdLineOptions {
int outputMain;
int outputDat;
int outputFiles;
int outputDependencies;
int outputBin;
int outputAsm;
int outputBytecode;
int compile;
int useEeprom;
int eepromSize;
int quiet;
int bstcMode;
int printSizes;
const char *outname;
#define MAX_FILES_ON_CMD_LINE 1024
int file_argc;
const char *file_argv[MAX_FILES_ON_CMD_LINE];
} CmdLineOptions;
void InitializeSystem(CmdLineOptions *opts, const char **argv);
int ProcessCommandLine(CmdLineOptions *opts);
int ParseWFlags(const char *flags);
int ParseCharset(int *charset_var, const char *charset_name);
void check_special_define(const char *name, const char *val);
typedef struct SourceFile {
const char *shortName;
const char *fullName;
unsigned isSysFile:1;
} SourceFile;
extern SourceFile *sourceData;
extern int numSourceFiles;
void PrintSourceFiles(void);
#endif