/*
- * $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
}
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 {
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",
);
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",
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,
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");