diff options
author | Cyrill Gorcunov <gorcunov@gmail.com> | 2012-05-07 01:57:55 +0400 |
---|---|---|
committer | Cyrill Gorcunov <gorcunov@gmail.com> | 2012-05-07 01:57:55 +0400 |
commit | 0b78bff510e7365ab3334ae7e3daa4650db8ff0f (patch) | |
tree | c383777a19bd9b50d6cf52bdcf60493825073367 /preproc.c | |
parent | 60941660441b2f3ade014be800f1df23bea8d280 (diff) | |
download | nasm-0b78bff510e7365ab3334ae7e3daa4650db8ff0f.tar.gz nasm-0b78bff510e7365ab3334ae7e3daa4650db8ff0f.tar.bz2 nasm-0b78bff510e7365ab3334ae7e3daa4650db8ff0f.zip |
preproc: Split get rid of global preproc methods
This will allow to hook on updated preprocessor
without breaking existing one.
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Diffstat (limited to 'preproc.c')
-rw-r--r-- | preproc.c | 17 |
1 files changed, 11 insertions, 6 deletions
@@ -5068,7 +5068,7 @@ static void pp_cleanup(int pass) } } -void pp_include_path(char *path) +static void pp_include_path(char *path) { IncPath *i; @@ -5086,7 +5086,7 @@ void pp_include_path(char *path) } } -void pp_pre_include(char *fname) +static void pp_pre_include(char *fname) { Token *inc, *space, *name; Line *l; @@ -5102,7 +5102,7 @@ void pp_pre_include(char *fname) predef = l; } -void pp_pre_define(char *definition) +static void pp_pre_define(char *definition) { Token *def, *space; Line *l; @@ -5124,7 +5124,7 @@ void pp_pre_define(char *definition) predef = l; } -void pp_pre_undefine(char *definition) +static void pp_pre_undefine(char *definition) { Token *def, *space; Line *l; @@ -5140,7 +5140,7 @@ void pp_pre_undefine(char *definition) predef = l; } -void pp_extra_stdmac(macros_t *macros) +static void pp_extra_stdmac(macros_t *macros) { extrastdmac = macros; } @@ -5156,5 +5156,10 @@ static void make_tok_num(Token * tok, int64_t val) struct preproc_ops nasmpp = { pp_reset, pp_getline, - pp_cleanup + pp_cleanup, + pp_extra_stdmac, + pp_pre_define, + pp_pre_undefine, + pp_pre_include, + pp_include_path }; |