2
0
mirror of https://github.com/boostorg/wave.git synced 2026-01-26 07:02:23 +00:00

Wave: Fixed a bug resulting in a crash if a macro was redefined with a shorter expansion list as it was defined initially. Added a corresponding test case.

[SVN r34926]
This commit is contained in:
Hartmut Kaiser
2006-08-23 01:40:23 +00:00
parent dc4cb9feeb
commit e117fd41d8
5 changed files with 31 additions and 4 deletions

View File

@@ -1080,6 +1080,12 @@ main (int argc, char *argv[])
return do_actual_work("<stdin>", std::cin, vm, true);
}
else {
if (arguments.size() > 1) {
// this driver understands to parse one input file only
cerr << "wave: more than one input file specified, "
<< "ignoring all but the first!" << endl;
}
std::string file_name(arguments[0].value[0]);
ifstream instream(file_name.c_str());