Lines Matching refs:item

516  * This item should be defined NODIRECT.
694 * Extract the argument/option information for the next item referenced
695 * by optarg, and advance the pointer to the next item.
699 * item - Struct to be filled in.
702 * The item block has been filled in with the information for
703 * the next item in the optarg array. *optarg has been advanced
704 * to the next item.
707 elfedit_next_optarg(elfedit_cmd_optarg_t **optarg, elfedit_optarg_item_t *item)
739 /* Grab first item, advance the callers pointer over it */
744 *item = stdoa[((uintptr_t)oa->oa_name) - 1];
750 item->oai_flags |= ELFEDIT_CMDOA_F_INHERIT;
751 } else { /* Non-inherited item */
752 item->oai_name = oa->oa_name;
754 item->oai_vname = oa[1].oa_name;
759 item->oai_vname = NULL;
761 item->oai_help = oa->oa_help;
762 item->oai_flags = oa->oa_flags;
769 item->oai_idmask = oa->oa_idmask;
770 item->oai_excmask = oa->oa_excmask;
776 * Return the help string for an option/argument item, as returned
782 elfedit_optarg_helpstr(elfeditGC_module_t *mod, elfedit_optarg_item_t *item)
785 * The help string from an inherited item comes right out
788 if (item->oai_flags & ELFEDIT_CMDOA_F_INHERIT)
789 return (MSG_INTL((Msg) item->oai_help));
795 return ((* mod->mod_i18nhdl_to_str)(item->oai_help));
836 * Used by usage_optarg() to insert an optarg item string into the output
841 usage_optarg_insert_item(elfedit_optarg_item_t *item, char **cur,
846 if (item->oai_flags & ELFEDIT_CMDOA_F_VALUE) {
848 item->oai_name, item->oai_vname);
851 item->oai_name);
866 * buf - Address of pointer to where next item is to be placed.
897 elfedit_optarg_item_t item;
920 elfedit_next_optarg(&tmp_optarg, &item);
921 if (((item.oai_flags & exflags) == 0) &&
922 (item.oai_name[2] == '\0') &&
923 (item.oai_excmask == 0)) {
924 optmask |= item.oai_idmask;
925 *s++ = item.oai_name[1];
948 elfedit_next_optarg(&optarg, &item);
955 if (use_simple && ((item.oai_flags & exflags) == 0) &&
956 (item.oai_name[2] == '\0') &&
957 (item.oai_excmask == 0))
965 if ((optmask & item.oai_idmask) != 0)
968 /* Add this item to the accumulating options mask */
969 optmask |= item.oai_idmask;
983 use_bkt = (item.oai_flags & ELFEDIT_CMDOA_F_OPT) || isopt;
987 /* Add the item to the buffer */
988 usage_optarg_insert_item(&item, &cur, &n, &cur_col);
991 * If this item has a non-zero mutual exclusion mask,
997 if (item.oai_excmask != 0) {
1005 if (item.oai_flags & ELFEDIT_CMDOA_F_MULT)
1012 if ((item.oai_excmask & tmp_item.oai_idmask) ==
1035 if ((item.oai_excmask == 0) &&
1036 (item.oai_flags & ELFEDIT_CMDOA_F_MULT))
1077 elfedit_optarg_item_t item;
1084 * - space in between each item, with an alternation (" | ")
1091 elfedit_next_optarg(&optarg, &item);
1092 n += strlen(item.oai_name) + 5 + elipses_len;
1096 elfedit_next_optarg(&optarg, &item);
1097 n += strlen(item.oai_name) + 5 + elipses_len;
1328 * is NULL if the found item is at the head of the list.
1655 * item in the list:
1656 * - There must be a following item.
2927 * - The string is shorter than the existing item being completed
3137 elfedit_optarg_item_t item;
3236 * then the item following it is the associated value.
3241 * item. Although the option is simply "-o", we are willing
3254 elfedit_next_optarg(&optarg, &item);
3255 if (item.oai_flags & ELFEDIT_CMDOA_F_VALUE) {
3260 if (strcmp(item.oai_name, argv[i]) == 0) {
3338 elfedit_next_optarg(&optarg, &item);
3339 elfedit_cpl_match(&cstate, item.oai_name, 1);