From 18f48793a9506133aedce5fdbd5667e16f372840 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Sat, 27 Jun 2009 15:56:27 -0700 Subject: [PATCH] preproc: use %if 0 instead of %ifdef BOGUS When processing an unparsable TASM argument, convert it to %if 0 which is guaranteed to not happen, rather than %ifdef BOGUS. Signed-off-by: H. Peter Anvin --- preproc.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/preproc.c b/preproc.c index 8c0863db..80e70c8f 100644 --- a/preproc.c +++ b/preproc.c @@ -453,12 +453,13 @@ static char *check_tasm_directive(char *line) line = nasm_malloc(len + 2); line[0] = '%'; if (k == TM_IFDIFI) { - /* NASM does not recognise IFDIFI, so we convert it to - * %ifdef BOGUS. This is not used in NASM comaptible - * code, but does need to parse for the TASM macro - * package. + /* + * NASM does not recognise IFDIFI, so we convert + * it to %if 0. This is not used in NASM + * compatible code, but does need to parse for the + * TASM macro package. */ - strcpy(line + 1, "ifdef BOGUS"); + strcpy(line + 1, "if 0"); } else { memcpy(line + 1, p, len + 1); } -- 2.11.4.GIT