Lines Matching full:spec
45 struct spec struct
65 struct spec spec; in format_parse() argument
67 struct spec *result; in format_parse()
69 spec.directives = 0; in format_parse()
70 spec.named_arg_count = 0; in format_parse()
71 spec.named = NULL; in format_parse()
101 spec.directives++; in format_parse()
103 if (named_allocated == spec.named_arg_count) in format_parse()
106 …spec.named = (struct named_arg *) xrealloc (spec.named, named_allocated * sizeof (struct named_arg… in format_parse()
108 spec.named[spec.named_arg_count].name = name; in format_parse()
109 spec.named_arg_count++; in format_parse()
119 if (spec.named_arg_count > 1) in format_parse()
123 qsort (spec.named, spec.named_arg_count, sizeof (struct named_arg), in format_parse()
127 for (i = j = 0; i < spec.named_arg_count; i++) in format_parse()
128 if (j > 0 && strcmp (spec.named[i].name, spec.named[j-1].name) == 0) in format_parse()
129 free (spec.named[i].name); in format_parse()
133 spec.named[j].name = spec.named[i].name; in format_parse()
136 spec.named_arg_count = j; in format_parse()
139 result = XMALLOC (struct spec); in format_parse()
140 *result = spec; in format_parse()
147 struct spec *spec = (struct spec *) descr; in format_free() local
149 if (spec->named != NULL) in format_free()
152 for (i = 0; i < spec->named_arg_count; i++) in format_free()
153 free (spec->named[i].name); in format_free()
154 free (spec->named); in format_free()
156 free (spec); in format_free()
162 struct spec *spec = (struct spec *) descr; in format_get_number_of_directives() local
164 return spec->directives; in format_get_number_of_directives()
172 struct spec *spec1 = (struct spec *) msgid_descr; in format_check()
173 struct spec *spec2 = (struct spec *) msgstr_descr; in format_check()
236 struct spec *spec = (struct spec *) descr; in format_print() local
239 if (spec == NULL) in format_print()
246 for (i = 0; i < spec->named_arg_count; i++) in format_print()
250 printf ("'%s'", spec->named[i].name); in format_print()