]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
use #if instead of #ifdef so it works with #define FOO 0
authorwessels <>
Fri, 21 Aug 1998 15:15:43 +0000 (15:15 +0000)
committerwessels <>
Fri, 21 Aug 1998 15:15:43 +0000 (15:15 +0000)
src/cf_gen.cc

index f8f0a726f91da7e8ef1d1c4bde7c9993dd6b7e08..0844ce317543ad3e66cc98afab18e165ee1aeaac 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: cf_gen.cc,v 1.26 1998/07/22 20:37:06 wessels Exp $
+ * $Id: cf_gen.cc,v 1.27 1998/08/21 09:15:43 wessels Exp $
  *
  * DEBUG: none
  * AUTHOR: Max Okumoto
@@ -346,7 +346,7 @@ gen_default(Entry * head, FILE * fp)
        }
        assert(entry->default_value);
        if (entry->ifdef)
-           fprintf(fp, "#ifdef %s\n", entry->ifdef);
+           fprintf(fp, "#if %s\n", entry->ifdef);
        if (strcmp(entry->default_value, "none") == 0) {
            fprintf(fp, "\t/* No default for %s */\n", entry->name);
        } else {
@@ -377,7 +377,7 @@ gen_default_if_none(Entry * head, FILE * fp)
        if (entry->default_if_none == NULL)
            continue;
        if (entry->ifdef)
-           fprintf(fp, "#ifdef %s\n", entry->ifdef);
+           fprintf(fp, "#if %s\n", entry->ifdef);
        fprintf(fp,
            "\tif (check_null_%s(%s))\n"
            "\t\tdefault_line(\"%s %s\");\n",
@@ -417,7 +417,7 @@ gen_parse(Entry * head, FILE * fp)
            );
        assert(entry->loc);
        if (entry->ifdef)
-           fprintf(fp, "#ifdef %s\n", entry->ifdef);
+           fprintf(fp, "#if %s\n", entry->ifdef);
        if (strcmp(entry->loc, "none") == 0) {
            fprintf(fp,
                "\t\tparse_%s();\n",
@@ -458,7 +458,7 @@ gen_dump(Entry * head, FILE * fp)
        if (strcmp(entry->name, "comment") == 0)
            continue;
        if (entry->ifdef)
-           fprintf(fp, "#ifdef %s\n", entry->ifdef);
+           fprintf(fp, "#if %s\n", entry->ifdef);
        fprintf(fp, "\tdump_%s(entry, \"%s\", %s);\n",
            entry->type,
            entry->name,
@@ -485,7 +485,7 @@ gen_free(Entry * head, FILE * fp)
        if (strcmp(entry->name, "comment") == 0)
            continue;
        if (entry->ifdef)
-           fprintf(fp, "#ifdef %s\n", entry->ifdef);
+           fprintf(fp, "#if %s\n", entry->ifdef);
        fprintf(fp, "\tfree_%s(&%s);\n", entry->type, entry->loc);
        if (entry->ifdef)
            fprintf(fp, "#endif\n");