apply dborca's patch - make the "-U" switch work - finally!
authorFrank Kotler <fbkotler@users.sourceforge.net>
Sat, 14 Jun 2003 12:12:26 +0000 (12:12 +0000)
committerFrank Kotler <fbkotler@users.sourceforge.net>
Sat, 14 Jun 2003 12:12:26 +0000 (12:12 +0000)
nasm.c
preproc.c

diff --git a/nasm.c b/nasm.c
index 63199c7..e26d7b3 100644 (file)
--- a/nasm.c
+++ b/nasm.c
@@ -378,6 +378,8 @@ static int process_arg (char *p, char *q)
          case 'E':
          case 'F':
          case 'X':
+         case 'u':
+         case 'U':
            if ( !(param = get_param (p, q, &advance)) )
                break;
            if (p[1]=='o') {           /* output file */
index 0770812..abe92d0 100644 (file)
--- a/preproc.c
+++ b/preproc.c
@@ -4429,6 +4429,7 @@ pp_pre_undefine(char *definition)
 
     space = new_Token(NULL, TOK_WHITESPACE, NULL, 0);
     def = new_Token(space, TOK_PREPROC_ID, "%undef", 0);
+    space->next = tokenise(definition);
 
     l = nasm_malloc(sizeof(Line));
     l->next = predef;