Do not use '#endif/#else xxx'; it is not allowed for ANSI C

This commit is contained in:
ceriel
1991-12-17 14:11:15 +00:00
parent a3bbaf4940
commit 7d78a01b64
56 changed files with 343 additions and 345 deletions

View File

@@ -118,7 +118,7 @@ dumpidf(idf, opt)
}
print(" macro");
}
#endif NOPP
#endif /* NOPP */
if ((opt&2) && idf->id_reserved) {
if (!started++) {
newline();
@@ -223,7 +223,7 @@ dumpsdefs(sdef, sdk)
print("L%d: ", sdef->sd_level);
#ifndef NOBITFIELD
if (sdk == selector)
#endif NOBITFIELD
#endif /* NOBITFIELD */
print("selector %s at offset %lu in %s;",
type2str(sdef->sd_type),
sdef->sd_offset, type2str(sdef->sd_stype)
@@ -232,7 +232,7 @@ dumpsdefs(sdef, sdk)
else print("field %s at offset %lu;",
type2str(sdef->sd_type), sdef->sd_offset
);
#endif NOBITFIELD
#endif /* NOBITFIELD */
sdef = (sdk == selector ? sdef->next : sdef->sd_sdef);
}
dumplevel--;
@@ -281,7 +281,7 @@ type2str(tp)
fd->fd_shift, fd->fd_width);
}
else
#endif NOBITFIELD
#endif /* NOBITFIELD */
ops = 0;
break;
}
@@ -334,7 +334,7 @@ p1_expr(lvl, expr)
expr->ex_class == String ? "String" :
#ifndef NOFLOAT
expr->ex_class == Float ? "Float" :
#endif NOFLOAT
#endif /* NOFLOAT */
expr->ex_class == Oper ? "Oper" :
expr->ex_class == Type ? "Type" : "UNKNOWN CLASS"
);
@@ -373,7 +373,7 @@ p1_expr(lvl, expr)
case Float:
print("%s\n", expr->FL_VALUE);
break;
#endif NOFLOAT
#endif /* NOFLOAT */
case Oper:
o = &expr->ex_object.ex_oper;
print("\n");
@@ -399,4 +399,4 @@ p1_indent(lvl)
while (lvl--)
print(" ");
}
#endif DEBUG
#endif /* DEBUG */