exclude _src files from being included

This commit is contained in:
David Rose 2001-06-05 21:33:53 +00:00
parent c67997926d
commit b560a14680
1 changed files with 9 additions and 0 deletions

View File

@ -824,6 +824,15 @@ should_include(const string &filename) const {
return false;
}
// Finally, don't include *_src.h or *_src.cxx. These are special
// "template" files that should not generally be included directly.
if (filename.length() > 6 && filename.substr(filename.length() - 6) == "_src.h") {
return false;
}
if (filename.length() > 8 && filename.substr(filename.length() - 8) == "_src.cxx") {
return false;
}
// Otherwise, no problem.
return true;
}