Lines Matching defs:item
12 /*@-compmempass@*/ /* FIX: item->option.longName kept, not dependent. */
21 poptItem item = (poptItem)alloca(sizeof(*item));
25 memset(item, 0, sizeof(*item));
50 item->option.longName = opt + 2;
52 item->option.shortName = opt[1];
55 if (poptParseArgvString(line, &item->argc, &item->argv)) return;
58 item->option.argInfo = POPT_ARGFLAG_DOC_HIDDEN;
59 for (i = 0, j = 0; i < item->argc; i++, j++) {
61 if (!strncmp(item->argv[i], "--POPTdesc=", sizeof("--POPTdesc=")-1)) {
62 f = item->argv[i] + sizeof("--POPTdesc=");
64 item->option.descrip = f;
65 item->option.argInfo &= ~POPT_ARGFLAG_DOC_HIDDEN;
68 if (!strncmp(item->argv[i], "--POPTargs=", sizeof("--POPTargs=")-1)) {
69 f = item->argv[i] + sizeof("--POPTargs=");
71 item->option.argDescrip = f;
72 item->option.argInfo &= ~POPT_ARGFLAG_DOC_HIDDEN;
73 item->option.argInfo |= POPT_ARG_STRING;
77 item->argv[j] = item->argv[i];
80 item->argv[j] = NULL;
81 item->argc = j;
86 /*@-nullstate@*/ /* FIX: item->argv[] may be NULL */
88 (void) poptAddItem(con, item, 0);
90 (void) poptAddItem(con, item, 1);