Make comments "deactivate" %define
authormarc <devnull@localhost>
Tue, 1 Jul 1997 16:29:30 +0000 (16:29 +0000)
committermarc <devnull@localhost>
Tue, 1 Jul 1997 16:29:30 +0000 (16:29 +0000)
CVS patchset: 1725
CVS date: 1997/07/01 16:29:30

build/macro.c

index cca721b..19a4fd8 100644 (file)
@@ -44,12 +44,21 @@ int expandMacros(char *buf)
 {
     char bufA[1024];
     char *copyTo, *copyFrom;
-    char *name, *rest;
+    char *name, *rest, *first;
     struct macroEntry *p;
     
     if (! buf) {
        return 0;
     }
+
+    /* Check if commented out */
+    first = buf;
+    while (*first && isspace(*first)) {
+       first++;
+    }
+    if (*first == '#') {
+       return 0;
+    }
     
     copyFrom = buf;
     copyTo = bufA;