Lines Matching refs:item
242 poptItem item;
249 item = con->execs + i;
250 if (longName && !(item->option.longName &&
251 !strcmp(longName, item->option.longName)))
253 else if (shortName != item->option.shortName)
338 poptItem item = con->os->currAlias;
342 if (item) {
343 if (longName && item->option.longName != NULL
344 && longOptionStrcmp(&item->option, longName, longNameLen))
347 if (shortName && shortName == item->option.shortName)
355 item = con->aliases + i;
357 if (item->option.longName == NULL)
359 if (!longOptionStrcmp(&item->option, longName, longNameLen))
361 } else if (shortName != item->option.shortName)
450 poptItem item = con->doExec;
456 if (item == NULL) /*XXX can't happen*/
459 if (item->argv == NULL || item->argc < 1 ||
460 (!con->execAbsolute && strchr(item->argv[0], '/')))
464 (6 + item->argc + con->numLeftovers + con->finalArgvCount));
467 if (!strchr(item->argv[0], '/') && con->execPath != NULL) {
468 char *s = malloc(strlen(con->execPath) + strlen(item->argv[0]) + sizeof("/"));
470 (void)stpcpy(stpcpy(stpcpy(s, con->execPath), "/"), item->argv[0]);
474 argv[argc] = findProgramPath(item->argv[0]);
480 if (item->argc > 1) {
481 memcpy(argv + argc, item->argv + 1, sizeof(*argv) * (item->argc - 1));
482 argc += (item->argc - 1);
1208 /* returns 'val' element, -1 on last item, POPT_ERROR_* on error */
1513 poptItem item = items;
1515 item->option.longName = _free(item->option.longName);
1516 item->option.descrip = _free(item->option.descrip);
1517 item->option.argDescrip = _free(item->option.argDescrip);
1518 item->argv = _free(item->argv);
1519 item++;
1558 poptItem item = &item_buf;
1559 memset(item, 0, sizeof(*item));
1560 item->option.longName = alias.longName;
1561 item->option.shortName = alias.shortName;
1562 item->option.argInfo = POPT_ARGFLAG_DOC_HIDDEN;
1563 item->option.arg = 0;
1564 item->option.val = 0;
1565 item->option.descrip = NULL;
1566 item->option.argDescrip = NULL;
1567 item->argc = alias.argc;
1568 item->argv = alias.argv;
1569 return poptAddItem(con, item, 0);
1574 poptItem * items, item_tmp, item;
1596 item = (*items) + (*nitems);
1598 item->option.longName =
1600 item->option.shortName = newItem->option.shortName;
1601 item->option.argInfo = newItem->option.argInfo;
1602 item->option.arg = newItem->option.arg;
1603 item->option.val = newItem->option.val;
1604 item->option.descrip =
1606 item->option.argDescrip =
1608 item->argc = newItem->argc;
1609 item->argv = newItem->argv;