Lines Matching refs:rec
239 * binary form, and store it in rec:
247 * On success, *rec is filled in with a MATCH_OPT_NDX or MATCH_OPT_RANGE
249 * of *rec are undefined, and (0) is returned.
252 process_index_opt(const char *str, match_rec_t *rec)
258 rec->value.ndx.start = strtol(str, &endptr, 10);
260 if ((str == endptr) || (rec->value.ndx.start < 0))
266 rec->opt_type = MATCH_OPT_NDX;
269 rec->opt_type = MATCH_OPT_RANGE;
272 rec->value.ndx.end = -1; /* Indicates "to end" */
274 rec->value.ndx.end = strtol(str, &endptr, 10);
275 if ((str == endptr) || (rec->value.ndx.end < 0))
520 match_rec_t *rec;
523 if ((rec = malloc(sizeof (*rec))) == NULL) {
530 *rec = *data;
534 match_state.list = rec;
539 list->next = rec;
542 rec->next = NULL;