|
From: <kin...@us...> - 2025-09-30 19:52:16
|
Revision: 7551
http://sourceforge.net/p/teem/code/7551
Author: kindlmann
Date: 2025-09-30 19:52:14 +0000 (Tue, 30 Sep 2025)
Log Message:
-----------
fixing numbering of steps in comment above hestParse(2)
Modified Paths:
--------------
teem/trunk/src/hest/parsest.c
Modified: teem/trunk/src/hest/parsest.c
===================================================================
--- teem/trunk/src/hest/parsest.c 2025-09-30 19:47:02 UTC (rev 7550)
+++ teem/trunk/src/hest/parsest.c 2025-09-30 19:52:14 UTC (rev 7551)
@@ -1444,20 +1444,20 @@
The basic phases of parsing are:
-0) Error checking on given `hopt` array. If this fails (i.e. because the previous
+1) Error checking on given `hopt` array. If this fails (i.e. because the previous
calls to hestOptAdd were malformed), the return is 2, not the 1 returned from errors in
any of the subsequent steps.
-1) Generate internal representation of command-line that includes expanding any
+2) Generate internal representation of command-line that includes expanding any
response files; this all goes into the `hestArgVec *havec`.
-2) From `havec`, extract the args that are attributable to flagged and unflagged
-options, moving each `hestArg` out of main `havec` and into the per-hestOpt
-opt->havec
+3) From `havec`, extract the args that are attributable to flagged ...
+4) ... and unflagged options, moving each `hestArg` out of main `havec` and into
+the per-hestOpt opt->havec
-3) For options not user-supplied, process the opt's `dflt` string to set hopt->havec
+5) For options not user-supplied, process the opt's `dflt` string to set hopt->havec
-4) Now, every option should have a hopt->havec set, regardless of where it came from.
+6) Now, every option should have a hopt->havec set, regardless of where it came from.
So parse those per-opt args to set final values for the user to see
What is allocated as result of work here should be freed by hestParseFree
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|