Home | History | Annotate | Download | only in libpopt

Lines Matching refs:item

13 /*@-compmempass@*/	/* FIX: item->option.longName kept, not dependent. */
20 poptItem item = alloca(sizeof(*item));
28 memset(item, 0, sizeof(*item));
51 item->option.longName = opt + 2;
53 item->option.shortName = opt[1];
56 if (poptParseArgvString(line, &item->argc, &item->argv)) return;
59 item->option.argInfo = POPT_ARGFLAG_DOC_HIDDEN;
60 for (i = 0, j = 0; i < item->argc; i++, j++) {
62 if (!strncmp(item->argv[i], "--POPTdesc=", sizeof("--POPTdesc=")-1)) {
63 f = item->argv[i] + sizeof("--POPTdesc=");
65 item->option.descrip = f;
66 item->option.argInfo &= ~POPT_ARGFLAG_DOC_HIDDEN;
69 if (!strncmp(item->argv[i], "--POPTargs=", sizeof("--POPTargs=")-1)) {
70 f = item->argv[i] + sizeof("--POPTargs=");
72 item->option.argDescrip = f;
73 item->option.argInfo &= ~POPT_ARGFLAG_DOC_HIDDEN;
74 item->option.argInfo |= POPT_ARG_STRING;
78 item->argv[j] = item->argv[i];
81 item->argv[j] = NULL;
82 item->argc = j;
87 /*@-nullstate@*/ /* FIX: item->argv[] may be NULL */
89 (void) poptAddItem(con, item, 0);
91 (void) poptAddItem(con, item, 1);