* cccp.c (main): Fix handling of -include and -imacros options.

From-SVN: r29204
This commit is contained in:
Andreas Schwab 1999-09-08 09:43:16 +00:00 committed by Andreas Schwab
parent 661d2b52d4
commit 29ffdfbb0f
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
Wed Sep 8 11:14:25 1999 Andreas Schwab <schwab@suse.de>
* cccp.c (main): Fix handling of -include and -imacros options.
Wed Sep 8 02:23:08 1999 Jeffrey A Law (law@cygnus.com)
* cpplib.c (cpp_push_buffer): Fix order of arguments.

View File

@ -1301,16 +1301,16 @@ main (argc, argv)
if (i + 1 == argc)
fatal ("Filename missing after `-include' option");
else {
simplify_filename (pend_includes[i] = argv[i]);
i++;
simplify_filename (pend_includes[i] = argv[i]);
}
}
if (!strcmp (argv[i], "-imacros")) {
if (i + 1 == argc)
fatal ("Filename missing after `-imacros' option");
else {
simplify_filename (pend_files[i] = argv[i]);
i++;
simplify_filename (pend_files[i] = argv[i]);
}
}
if (!strcmp (argv[i], "-iprefix")) {