diff options
author | Miles Bader <miles@gnu.org> | 1995-12-06 20:30:53 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1995-12-06 20:30:53 +0000 |
commit | 1387b92c2a6dd3cdfdaa39dcea9f933e20f8a82d (patch) | |
tree | ecb5b5b5f860d3a4d39a1fc90aebef2976323d98 /libshouldbeinlibc/argp.h | |
parent | 2232c617535d11091ceb1afbb49093d881f2e0ee (diff) |
(struct argp_state): Rename the INDEX field to be NEXT.
Diffstat (limited to 'libshouldbeinlibc/argp.h')
-rw-r--r-- | libshouldbeinlibc/argp.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libshouldbeinlibc/argp.h b/libshouldbeinlibc/argp.h index 138e0533..e08b6497 100644 --- a/libshouldbeinlibc/argp.h +++ b/libshouldbeinlibc/argp.h @@ -79,7 +79,7 @@ typedef error_t (*argp_parser_t)(int key, char *arg, struct argp_state *state); /* This is not an option at all, but rather a command line argument. If a parser receiving this key returns success, the fact is recorded, and the ARGP_KEY_NO_ARGS case won't be used. HOWEVER, if while processing the - argument, a parser function decrements the INDEX field of the state it's + argument, a parser function decrements the NEXT field of the state it's passed, the option won't be considered processed; this is to allow you to actually modify the argument (perhaps into an option), and have it processed again. */ @@ -141,8 +141,8 @@ struct argp_state int argc; char **argv; - /* The current index into ARGV. May be modified. */ - int index; + /* The index in ARGV of the next arg that to be parsed. May be modified. */ + int next; /* The flags supplied to argp_parse. May be modified. */ unsigned flags; |