diff options
author | Miles Bader <miles@gnu.org> | 1996-02-05 23:39:55 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1996-02-05 23:39:55 +0000 |
commit | 9d3a83a2ef8dd13ed2f88f3b8dc6b0c663f10c6e (patch) | |
tree | e1fef2e445928f4fa180723d7af25ba544e0492d /libshouldbeinlibc | |
parent | 65c185b4e8427e5858981fbbd72ced5de90af4c2 (diff) |
(struct argp_state): Add ARG_NUM field.
Diffstat (limited to 'libshouldbeinlibc')
-rw-r--r-- | libshouldbeinlibc/argp.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libshouldbeinlibc/argp.h b/libshouldbeinlibc/argp.h index c9c98b31..5b652dd2 100644 --- a/libshouldbeinlibc/argp.h +++ b/libshouldbeinlibc/argp.h @@ -157,6 +157,12 @@ struct argp_state /* The flags supplied to argp_parse. May be modified. */ unsigned flags; + + /* While calling a parsing function with a key of ARGP_KEY_ARG, this is the + number of the current arg, starting at zero, and incremented after each + such call returns. At all other times, this is the number of such + arguments that have been processed. */ + unsigned arg_num; }; /* Flags for argp_parse (note that the defaults are those that are |