about summary refs log tree commit diff
path: root/lib/util
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2008-07-20 20:07:44 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2008-07-20 20:07:44 +0000
commita2bef0ab0526177bdb957f68ee03e4fcf45b600c (patch)
treeb7db257b7fa73579ba83df28d23074616719f4c4 /lib/util
parentabdab6a1ba5d55302f8153944c39f6afea6b3a7a (diff)
downloadnetpbm-mirror-a2bef0ab0526177bdb957f68ee03e4fcf45b600c.tar.gz
netpbm-mirror-a2bef0ab0526177bdb957f68ee03e4fcf45b600c.tar.xz
netpbm-mirror-a2bef0ab0526177bdb957f68ee03e4fcf45b600c.zip
Improve comments
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@684 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'lib/util')
-rw-r--r--lib/util/shhopt.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/util/shhopt.h b/lib/util/shhopt.h
index ad0d2efc..e5f05b90 100644
--- a/lib/util/shhopt.h
+++ b/lib/util/shhopt.h
@@ -6,6 +6,8 @@ HERE IS AN EXAMPLE OF THE USE OF SHHOPT:
 int 
 main ( int argc, char **argv ) {
 
+    // initial values here are just to demonstrate what gets set and
+    // what doesn't by the code below.
     int help_flag = 7;
     unsigned int help_spec =7;
     unsigned int height_spec =7;
@@ -186,7 +188,8 @@ typedef struct {
 
 /* OPTENT3 is the same as OPTENTRY except that it also sets the "specified"
    element of the table entry (so it assumes OPTION_DEF is a table of
-   optEntry instead of optStruct).
+   optEntry instead of optStruct).  It sets it to the number of times that
+   the option appears in the command line.
 
    Here is an example: