Revision: 76437
http://sourceforge.net/p/brlcad/code/76437
Author: starseeker
Date: 2020-07-22 22:45:52 +0000 (Wed, 22 Jul 2020)
Log Message:
-----------
Do alias check on all of the commands, not just the list pulled from the apps.
Can probably delete the fixed list now, should have everything...
Modified Paths:
--------------
brlcad/branches/gedplugins/src/libged/tests/plugins.cpp
Modified: brlcad/branches/gedplugins/src/libged/tests/plugins.cpp
===================================================================
--- brlcad/branches/gedplugins/src/libged/tests/plugins.cpp 2020-07-22
22:40:24 UTC (rev 76436)
+++ brlcad/branches/gedplugins/src/libged/tests/plugins.cpp 2020-07-22
22:45:52 UTC (rev 76437)
@@ -391,6 +391,7 @@
/* Find functions sets that are aliases */
{
std::set<std::string> cmd_set;
+ // Start with the app commands
int app_cmd_cnt = 0;
const char *ccmd = app_cmds[app_cmd_cnt];
while (ccmd) {
@@ -398,6 +399,12 @@
app_cmd_cnt++;
ccmd = app_cmds[app_cmd_cnt];
}
+ // Also add libged's list in case there are any
+ // we missed calling out explicitly above...
+ for (size_t i = 0; i < ged_cmd_cnt; i++) {
+ cmd_set.insert(std::string(ged_cmds[i]));
+ }
+
std::set<std::string>::iterator cs_it;
std::map<std::string, std::set<std::string>> alias_sets;
while (cmd_set.size()) {
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