Lines Matching refs:fmt
205 if (e->element.print.fmt != NULL)
206 free_mapping_format(e->element.print.fmt);
207 e->element.print.fmt = NULL;
220 if (e->element.match.fmt != NULL)
221 free_mapping_format(e->element.match.fmt);
222 e->element.match.fmt = NULL;
231 if (e->element.extract.fmt != NULL)
232 free_mapping_format(e->element.extract.fmt);
233 e->element.extract.fmt = NULL;
535 free_mapping_format(__nis_mapping_format_t *fmt)
537 __nis_mapping_format_t *f = fmt;
539 while (fmt->type != mmt_end) {
540 switch (fmt->type) {
544 if (fmt->match.string != NULL)
545 free(fmt->match.string);
546 fmt->match.string = NULL;
549 if (fmt->match.single.lo != NULL)
550 free(fmt->match.single.lo);
551 fmt->match.single.lo = NULL;
552 if (fmt->match.single.hi != NULL)
553 free(fmt->match.single.hi);
554 fmt->match.single.hi = NULL;
562 if (fmt->match.berString != NULL)
563 free(fmt->match.berString);
564 fmt->match.berString = NULL;
571 fmt++;
594 if (sub->element.print.fmt != NULL)
595 free_mapping_format(sub->element.print.fmt);
596 sub->element.print.fmt = NULL;
608 if (sub->element.extract.fmt != NULL)
609 free_mapping_format(sub->element.extract.fmt);
610 sub->element.extract.fmt = NULL;
1475 out->element.print.fmt =
1476 dup_format_mapping(in->element.print.fmt);
1477 if (out->element.print.fmt == NULL)
1503 out->element.extract.fmt =
1504 dup_format_mapping(in->element.extract.fmt);
1505 if (out->element.extract.fmt == NULL)
1535 out->element.print.fmt =
1536 dup_format_mapping(in->element.print.fmt);
1537 if (out->element.print.fmt == NULL)
1564 out->element.match.fmt =
1565 dup_format_mapping(in->element.match.fmt);
1566 if (out->element.match.fmt == NULL)
1585 out->element.extract.fmt =
1586 dup_format_mapping(in->element.extract.fmt);
1587 if (out->element.extract.fmt == NULL)
2001 __nis_mapping_format_t *fmt)
2031 fmt->type = mmt_item;
2042 fmt->match.berString = s_strndup(s, 1);
2043 fmt->type = skip_ber ?
2049 fmt->match.berString =
2051 fmt->type = skip_ber ?
2072 fmt->type = mmt_any;
2126 fmt->type = mmt_single;
2127 fmt->match.single.numRange = numRange;
2128 fmt->match.single.lo = (unsigned char *)lo;
2129 fmt->match.single.hi = (unsigned char *)hi;
2159 fmt->type = mmt_string;
2160 fmt->match.string =
2162 if (fmt->match.string == NULL)
2192 __nis_mapping_format_t *fmt)
2217 fmt->type = mmt_item;
2228 fmt->match.berString = s_strndup(s, 1);
2229 fmt->type = skip_ber ?
2261 fmt->match.string =
2263 if (fmt->match.string == NULL)
2265 fmt->type = mmt_string;