• Home
  • Raw
  • Download

Lines Matching full:spec

115 struct spec  struct
163 struct spec spec; in format_parse() local
165 struct spec *result; in format_parse()
169 spec.directives = 0; in format_parse()
170 spec.numbered_arg_count = 0; in format_parse()
171 spec.numbered = NULL; in format_parse()
186 spec.directives++; in format_parse()
192 *invalid_reason = INVALID_LAST_ARG (spec.directives); in format_parse()
215 *invalid_reason = INVALID_ARGNO_0 (spec.directives); in format_parse()
289 *invalid_reason = INVALID_PRECISION_MISSING (spec.directives); in format_parse()
361 INVALID_CONVERSION_SPECIFIER (spec.directives, *format); in format_parse()
371 *invalid_reason = INVALID_FLAG_FOR (spec.directives, '#', *format); in format_parse()
377 *invalid_reason = INVALID_FLAG_FOR (spec.directives, '0', *format); in format_parse()
383 *invalid_reason = INVALID_FLAG_FOR (spec.directives, '-', *format); in format_parse()
389 *invalid_reason = INVALID_FLAG_FOR (spec.directives, ' ', *format); in format_parse()
395 *invalid_reason = INVALID_FLAG_FOR (spec.directives, '+', *format); in format_parse()
401 *invalid_reason = INVALID_FLAG_FOR (spec.directives, ',', *format); in format_parse()
407 *invalid_reason = INVALID_FLAG_FOR (spec.directives, '(', *format); in format_parse()
413 *invalid_reason = INVALID_WIDTH_FOR (spec.directives, *format); in format_parse()
419 *invalid_reason = INVALID_PRECISION_FOR (spec.directives, *format); in format_parse()
447 INVALID_DATETIME_CONVERSION_SUFFIX (spec.directives, in format_parse()
460 if (numbered_allocated == spec.numbered_arg_count) in format_parse()
463spec.numbered = (struct numbered_arg *) xrealloc (spec.numbered, numbered_allocated * sizeof (stru… in format_parse()
465 spec.numbered[spec.numbered_arg_count].number = number; in format_parse()
466 spec.numbered[spec.numbered_arg_count].type = type; in format_parse()
467 spec.numbered_arg_count++; in format_parse()
478 if (spec.numbered_arg_count > 1) in format_parse()
483 qsort (spec.numbered, spec.numbered_arg_count, in format_parse()
488 for (i = j = 0; i < spec.numbered_arg_count; i++) in format_parse()
489 if (j > 0 && spec.numbered[i].number == spec.numbered[j-1].number) in format_parse()
491 enum format_arg_type type1 = spec.numbered[i].type; in format_parse()
492 enum format_arg_type type2 = spec.numbered[j-1].type; in format_parse()
503 INVALID_INCOMPATIBLE_ARG_TYPES (spec.numbered[i].number); in format_parse()
507 spec.numbered[j-1].type = type_both; in format_parse()
513 spec.numbered[j].number = spec.numbered[i].number; in format_parse()
514 spec.numbered[j].type = spec.numbered[i].type; in format_parse()
518 spec.numbered_arg_count = j; in format_parse()
524 result = XMALLOC (struct spec); in format_parse()
525 *result = spec; in format_parse()
529 if (spec.numbered != NULL) in format_parse()
530 free (spec.numbered); in format_parse()
537 struct spec *spec = (struct spec *) descr; in format_free() local
539 if (spec->numbered != NULL) in format_free()
540 free (spec->numbered); in format_free()
541 free (spec); in format_free()
547 struct spec *spec = (struct spec *) descr; in format_get_number_of_directives() local
549 return spec->directives; in format_get_number_of_directives()
557 struct spec *spec1 = (struct spec *) msgid_descr; in format_check()
558 struct spec *spec2 = (struct spec *) msgstr_descr; in format_check()
648 struct spec *spec = (struct spec *) descr; in format_print() local
651 if (spec == NULL) in format_print()
658 for (i = 0; i < spec->numbered_arg_count; i++) in format_print()
662 switch (spec->numbered[i].type) in format_print()