Revision: 77528
          http://sourceforge.net/p/brlcad/code/77528
Author:   brlcad
Date:     2020-10-22 03:42:42 +0000 (Thu, 22 Oct 2020)
Log Message:
-----------
cleanup while reading

Modified Paths:
--------------
    brlcad/trunk/src/libged/exec.cpp

Modified: brlcad/trunk/src/libged/exec.cpp
===================================================================
--- brlcad/trunk/src/libged/exec.cpp    2020-10-22 03:41:09 UTC (rev 77527)
+++ brlcad/trunk/src/libged/exec.cpp    2020-10-22 03:42:42 UTC (rev 77528)
@@ -34,8 +34,10 @@
 
 extern "C" void libged_init(void);
 
+
 extern "C" int
-ged_exec(struct ged *gedp, int argc, const char *argv[]) {
+ged_exec(struct ged *gedp, int argc, const char *argv[])
+{
     if (!gedp || !argc || !argv) {
        return GED_ERROR;
     }
@@ -46,21 +48,23 @@
        start = bu_gettime();
     }
 
-    // TODO - right now this is the map from the libged load - should probably
-    // use this to initialize a struct ged copy when ged_init is called, so
-    // client codes can add their own commands to their gedp...
+    // TODO - right now this is the map from the libged load - should
+    // probably use this to initialize a struct ged copy when ged_init
+    // is called, so client codes can add their own commands to their
+    // gedp...
     //
-    // The ged_cmds map should always reflect the original, vanilla state of
-    // libged's command set so we have a clean fallback available if we ever
-    // need it to fall back on/recover with.
+    // The ged_cmds map should always reflect the original, vanilla
+    // state of libged's command set so we have a clean fallback
+    // available if we ever need it to fall back on/recover with.
     std::map<std::string, const struct ged_cmd *> *cmap = 
(std::map<std::string, const struct ged_cmd *> *)ged_cmds;
 
-    // On OpenBSD, if the executable was launched in a way that requires
-    // bu_setprogname to find the BRL-CAD root directory the iniital libged
-    // initialization would have failed.  If we have no ged_cmds at all this is
-    // probably what happened, so call libged_init again here.  By the time we
-    // are calling ged_exec bu_setprogname should be set and we should be ready
-    // to actually find the commands.
+    // On OpenBSD, if the executable was launched in a way that
+    // requires bu_setprogname to find the BRL-CAD root directory the
+    // initial libged initialization would have failed.  If we have no
+    // ged_cmds at all this is probably what happened, so call
+    // libged_init again here.  By the time we are calling ged_exec
+    // bu_setprogname should be set and we should be ready to actually
+    // find the commands.
     if (!cmap->size()) {
        libged_init();
     }
@@ -74,8 +78,8 @@
 
     const struct ged_cmd *cmd = c_it->second;
 
-    // TODO - if interactive command via cmd->i->interactive, don't execute
-    // unless we have the necessary callbacks defined in gedp
+    // TODO - if interactive command via cmd->i->interactive, don't
+    // execute unless we have the necessary callbacks defined in gedp
 
     int cret = (*cmd->i->cmd)(gedp, argc, argv);
 

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

Reply via email to