Lines Matching defs:sym

71  *	sym - NULL terminated array of name->value mappings.
87 elfedit_atoi_value_to_str(const elfedit_atoi_sym_t *sym, elfedit_atoi_t value,
90 for (; sym->sym_name != NULL; sym++)
91 if (value == sym->sym_value)
92 return (sym->sym_name);
100 elfedit_atoui_value_to_str(const elfedit_atoui_sym_t *sym,
103 for (; sym->sym_name != NULL; sym++)
104 if (value == sym->sym_value)
105 return (sym->sym_name);
126 * sym - NULL terminated array of name->value mappings.
134 atoi_sym_process(const char *str, const elfedit_atoi_sym_t *sym,
149 for (; sym->sym_name != NULL; sym++) {
150 if ((strlen(sym->sym_name) == cmp_len) &&
151 (strncasecmp(sym->sym_name, str, cmp_len) == 0)) {
152 *value = sym->sym_value;
161 atoui_sym_process(const char *str, const elfedit_atoui_sym_t *sym,
176 for (; sym->sym_name != NULL; sym++) {
177 if ((strlen(sym->sym_name) == cmp_len) &&
178 (strncasecmp(sym->sym_name, str, cmp_len) == 0)) {
179 *value = sym->sym_value;
194 elfedit_cpl_atoi(void *cpldata, const elfedit_atoi_sym_t *sym)
196 for (; sym->sym_name != NULL; sym++)
197 elfedit_cpl_match(cpldata, sym->sym_name, 1);
200 elfedit_cpl_atoui(void *cpldata, const elfedit_atoui_sym_t *sym)
202 for (; sym->sym_name != NULL; sym++)
203 elfedit_cpl_match(cpldata, sym->sym_name, 1);
222 * sym - NULL, or NULL terminated array of name/value pairs.
238 elfedit_atoi2(const char *str, const elfedit_atoi_sym_t *sym, elfedit_atoi_t *v)
242 if (sym && atoi_sym_process(str, sym, v))
254 elfedit_atoi(const char *str, const elfedit_atoi_sym_t *sym)
257 if (elfedit_atoi2(str, sym, &v) == 0)
263 elfedit_atoui2(const char *str, const elfedit_atoui_sym_t *sym,
268 if (sym && atoui_sym_process(str, sym, v))
280 elfedit_atoui(const char *str, const elfedit_atoui_sym_t *sym)
283 if (elfedit_atoui2(str, sym, &v) == 0)
310 * sym - NULL, or NULL terminated array of name/value pairs.
330 const elfedit_atoi_sym_t *sym, elfedit_atoi_t *v)
332 return ((elfedit_atoi2(str, sym, v) != 0) &&
337 elfedit_atoi_t min, elfedit_atoi_t max, const elfedit_atoi_sym_t *sym)
339 elfedit_atoi_t v = elfedit_atoi(str, sym);
349 const elfedit_atoui_sym_t *sym, elfedit_atoui_t *v)
351 return ((elfedit_atoui2(str, sym, v) != 0) &&
356 elfedit_atoui_t min, elfedit_atoui_t max, const elfedit_atoui_sym_t *sym)
358 elfedit_atoui_t v = elfedit_atoui(str, sym);