Commit 2bbd52a8 by Richard Stallman

(main): Do -D's and -A's and -U's in order specified.

From-SVN: r2788
parent 4be2397b
...@@ -1451,26 +1451,21 @@ main (argc, argv) ...@@ -1451,26 +1451,21 @@ main (argc, argv)
/* Now handle the command line options. */ /* Now handle the command line options. */
/* Do undefines specified with -U. */ /* Do -U's, -D's and -A's in the order they were seen. */
for (i = 1; i < argc; i++) for (i = 1; i < argc; i++) {
if (pend_undefs[i]) { if (pend_undefs[i]) {
if (debug_output) if (debug_output)
output_line_command (fp, &outbuf, 0, same_file); output_line_command (fp, &outbuf, 0, same_file);
make_undef (pend_undefs[i], &outbuf); make_undef (pend_undefs[i], &outbuf);
} }
/* Do assertions specified with -A. */
for (i = 1; i < argc; i++)
if (pend_assertions[i])
make_assertion (pend_assertion_options[i], pend_assertions[i]);
/* Do defines specified with -D. */
for (i = 1; i < argc; i++)
if (pend_defs[i]) { if (pend_defs[i]) {
if (debug_output) if (debug_output)
output_line_command (fp, &outbuf, 0, same_file); output_line_command (fp, &outbuf, 0, same_file);
make_definition (pend_defs[i], &outbuf); make_definition (pend_defs[i], &outbuf);
} }
if (pend_assertions[i])
make_assertion (pend_assertion_options[i], pend_assertions[i]);
}
done_initializing = 1; done_initializing = 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment