diff options
author | Cyrill Gorcunov <gorcunov@gmail.com> | 2010-02-28 11:52:53 +0300 |
---|---|---|
committer | Cyrill Gorcunov <gorcunov@gmail.com> | 2010-02-28 12:24:20 +0300 |
commit | f09116f44582d31321dd2b6d0e203f1714644d05 (patch) | |
tree | 246daa414b3a80ddaaaaeaded577a747b993db22 /preproc.c | |
parent | 3031bb8ee252675e692cc9ee66249e975b47c00f (diff) | |
download | nasm-f09116f44582d31321dd2b6d0e203f1714644d05.tar.gz |
preproc.c: Turn off rmacro,exitmacro support
We've a problem in supporting [i]rmacro, exitmacro
facilities at moment.
In a sake of not holding new NASM release any longer these
directives are just marked as being "forbidden".
This allow us to not squash much changes in current source
code base but remain on a safe side same time.
Reviewed-by: Keith Kanios <keith@kanios.net>
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Diffstat (limited to 'preproc.c')
-rw-r--r-- | preproc.c | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -2081,6 +2081,17 @@ static int do_directive(Token * tline) i = pp_token_hash(tline->text); /* + * FIXME: We zap execution of PP_RMACRO, PP_IRMACRO, PP_EXITMACRO + * since they are known to be buggy at moment, we need to fix them + * in future release (2.09-2.10) + */ + if (i == PP_RMACRO || i == PP_RMACRO || i == PP_EXITMACRO) { + error(ERR_NONFATAL, "unknown preprocessor directive `%s'", + tline->text); + return NO_DIRECTIVE_FOUND; + } + + /* * If we're in a non-emitting branch of a condition construct, * or walking to the end of an already terminated %rep block, * we should ignore all directives except for condition |