From 1387b92c2a6dd3cdfdaa39dcea9f933e20f8a82d Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Wed, 6 Dec 1995 20:30:53 +0000 Subject: (struct argp_state): Rename the INDEX field to be NEXT. --- libshouldbeinlibc/argp.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libshouldbeinlibc/argp.h') 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; -- cgit v1.2.3