Lines Matching refs:item
256 poptItem item;
263 item = con->execs + i;
264 if (longName && !(item->option.longName &&
265 !strcmp(longName, item->option.longName)))
267 else if (shortName != item->option.shortName)
317 poptItem item = con->os->currAlias;
321 if (item) {
322 if (longName && (item->option.longName &&
323 !strcmp(longName, item->option.longName)))
325 if (shortName && shortName == item->option.shortName)
333 item = con->aliases + i;
334 if (longName && !(item->option.longName &&
335 !strcmp(longName, item->option.longName)))
337 else if (shortName != item->option.shortName)
369 poptItem item = con->doExec;
374 if (item == NULL) /*XXX can't happen*/
377 if (item->argv == NULL || item->argc < 1 ||
378 (!con->execAbsolute && strchr(item->argv[0], '/')))
382 sizeof(*argv) * (6 + item->argc + con->numLeftovers + con->finalArgvCount));
385 if (!strchr(item->argv[0], '/') && con->execPath) {
387 strlen(con->execPath) + strlen(item->argv[0]) + sizeof("/"));
388 sprintf(s, "%s/%s", con->execPath, item->argv[0]);
391 argv[argc] = findProgramPath(item->argv[0]);
395 if (item->argc > 1) {
396 memcpy(argv + argc, item->argv + 1, sizeof(*argv) * (item->argc - 1));
397 argc += (item->argc - 1);
690 /* returns 'val' element, -1 on last item, POPT_ERROR_* on error */
1051 poptItem item;
1060 item = con->aliases + i;
1062 item->option.longName = (const char *)_free(item->option.longName);
1063 item->option.descrip = (const char *)_free(item->option.descrip);
1064 item->option.argDescrip = (const char *)_free(item->option.argDescrip);
1066 item->argv = (const char **)_free(item->argv);
1072 item = con->execs + i;
1074 item->option.longName = (const char *)_free(item->option.longName);
1075 item->option.descrip = (const char *)_free(item->option.descrip);
1076 item->option.argDescrip = (const char *)_free(item->option.argDescrip);
1078 item->argv = (const char **)_free(item->argv);
1096 poptItem item = (poptItem)alloca(sizeof(*item));
1097 memset(item, 0, sizeof(*item));
1098 item->option.longName = alias.longName;
1099 item->option.shortName = alias.shortName;
1100 item->option.argInfo = POPT_ARGFLAG_DOC_HIDDEN;
1101 item->option.arg = 0;
1102 item->option.val = 0;
1103 item->option.descrip = NULL;
1104 item->option.argDescrip = NULL;
1105 item->argc = alias.argc;
1106 item->argv = alias.argv;
1107 return poptAddItem(con, item, 0);
1114 poptItem * items, item;
1135 item = (*items) + (*nitems);
1137 item->option.longName =
1139 item->option.shortName = newItem->option.shortName;
1140 item->option.argInfo = newItem->option.argInfo;
1141 item->option.arg = newItem->option.arg;
1142 item->option.val = newItem->option.val;
1143 item->option.descrip =
1145 item->option.argDescrip =
1147 item->argc = newItem->argc;
1148 item->argv = newItem->argv;