diff options
author | H. Peter Anvin <hpa@zytor.com> | 2008-06-20 15:20:16 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2008-06-20 15:20:16 -0700 |
commit | cfb7176ca211d2bdc8c790c1b49e6f29db42f777 (patch) | |
tree | 5c8749b99df0ac2a1b508d2e2e52248e3a170dc0 /preproc.h | |
parent | 76cbaa4b2e433ed78031dc75ae1b3183867c55ab (diff) | |
download | nasm-cfb7176ca211d2bdc8c790c1b49e6f29db42f777.tar.gz nasm-cfb7176ca211d2bdc8c790c1b49e6f29db42f777.tar.bz2 nasm-cfb7176ca211d2bdc8c790c1b49e6f29db42f777.zip |
Move the output format macros into the macros.pl mechanism
Move the handling of "extra" macros (i.e. output format macros) into
the macros.pl mechanism. This allows us to change the format of the
internal macro store in the future - e.g. to a single byte store
without redundant pointers.
Also, stop using indicies into a long array when there is no good
reason to not just use different arrays.
Diffstat (limited to 'preproc.h')
-rw-r--r-- | preproc.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -14,12 +14,15 @@ extern const char * const pp_directives[]; extern const int pp_directives_len[]; +/* Pointer to a macro chain */ +typedef const char * const macros_t; + enum preproc_token pp_token_hash(const char *token); void pp_include_path(char *); void pp_pre_include(char *); void pp_pre_define(char *); void pp_pre_undefine(char *); void pp_runtime(char *); -void pp_extra_stdmac(const char **); +void pp_extra_stdmac(const macros_t *); #endif |