allow %define with leading whitespace
authormarc <devnull@localhost>
Fri, 3 Jul 1998 06:20:59 +0000 (06:20 +0000)
committermarc <devnull@localhost>
Fri, 3 Jul 1998 06:20:59 +0000 (06:20 +0000)
CVS patchset: 2165
CVS date: 1998/07/03 06:20:59

CHANGES
build/macro.c

diff --git a/CHANGES b/CHANGES
index b6cec90..c0a6044 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,6 @@
+2.5.2 -> 2.5.3:
+       - allow %define with leading whitespace
+
 2.5.1 -> 2.5.2:
        - added -bs to build just a source package
        - included irix.req and irix.prov (Tim Mooney)
index a1a3508..baaf366 100644 (file)
@@ -45,6 +45,9 @@ int expandMacros(struct MacroContext *mc, char *buf)
        return 0;
     }
 
+    first = buf;
+    SKIPSPACE(first);
+    
     copyFrom = buf;
     copyTo = bufA;
 
@@ -55,7 +58,7 @@ int expandMacros(struct MacroContext *mc, char *buf)
            if (parseMacro(copyFrom+1, &name, &rest)) {
                return 1;
            }
-           if (copyFrom == buf && !strcmp(name, "define")) {
+           if (copyFrom == first && !strcmp(name, "define")) {
                if (handleDefine(mc, rest)) {
                    return 1;
                }