Revision: 75800
http://sourceforge.net/p/brlcad/code/75800
Author: starseeker
Date: 2020-05-14 15:09:00 +0000 (Thu, 14 May 2020)
Log Message:
-----------
Ignore anything that's not an include line for the bio/bnetwork header checks
Modified Paths:
--------------
brlcad/trunk/regress/repository/repocheck.cpp
Modified: brlcad/trunk/regress/repository/repocheck.cpp
===================================================================
--- brlcad/trunk/regress/repository/repocheck.cpp 2020-05-14 14:31:51 UTC
(rev 75799)
+++ brlcad/trunk/regress/repository/repocheck.cpp 2020-05-14 15:09:00 UTC
(rev 75800)
@@ -283,7 +283,13 @@
bool have_bio = false;
while (std::getline(fs, sline) && lcnt < MAX_LINES_CHECK) {
lcnt++;
- if (std::regex_match(sline, r.bio_regex)) {
+
+ if (!std::strstr(sline.c_str(), "include")) {
+ // If this isn't an include line, it's not of interest
+ continue;
+ }
+
+ if (std::strstr(sline.c_str(), "bio.h") && std::regex_match(sline,
r.bio_regex)) {
have_bio = true;
continue;
}
@@ -348,6 +354,12 @@
bool have_bnetwork = false;
while (std::getline(fs, sline) && lcnt < MAX_LINES_CHECK) {
lcnt++;
+
+ if (!std::strstr(sline.c_str(), "include")) {
+ // If this isn't an include line, it's not of interest
+ continue;
+ }
+
if (std::regex_match(sline, r.bnetwork_regex)) {
have_bnetwork = true;
continue;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits