Mercurial > hg-old > index.cgi
diff lwasm/lwasm.h @ 325:619fd6ad4ab9
Completed command line parsing
author | lost |
---|---|
date | Sat, 13 Feb 2010 05:20:55 +0000 |
parents | be63116281b0 |
children | c15cca3ae6a2 |
line wrap: on
line diff
--- a/lwasm/lwasm.h Tue Feb 09 05:59:56 2010 +0000 +++ b/lwasm/lwasm.h Sat Feb 13 05:20:55 2010 +0000 @@ -39,13 +39,35 @@ TARGET_6809 // target 6809 CPU (no 6309 ops) }; +enum lwasm_flags_e +{ + FLAG_NONE = 0, + FLAG_LIST = 0x0001, + FLAG_DEPEND = 0x0002 +}; + +enum lwasm_pragmas_e +{ + PRAGMA_NONE = 0, // no pragmas in effect + PRAGMA_DOLLARNOTLOCAL = 0x0001, // dollar sign does not make a symbol local + PRAGMA_NOINDEX0TONONE = 0x0002, // do not change implicit 0,R to ,R + PRAGMA_UNDEFEXTERN = 0x0004, // undefined symbols are considered to be external + PRAGMA_CESCAPES = 0x0008, // allow C style escapes in fcc, fcs, fcn, etc. + PRAGMA_IMPORTUNDEFEXPORT = 0x0010 // imports symbol if undefined upon export +}; + typedef struct { int output_format; // output format int target; // assembly target int debug_level; // level of debugging requested - + int flags; // assembly flags + int pragmas; // pragmas currently in effect + + char *list_file; // name of file to list to + char *output_file; // output file name lw_stringlist_t input_files; // files to assemble + lw_stringlist_t include_list; // include paths } asmstate_t; #endif /* ___lwasm_h_seen___ */