MCPcopy Create free account
hub / github.com/eggert/tz / verror

Function verror

zic.c:705–722  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

703 eats(fnum, num, 0, -1);
704}
705
706ATTRIBUTE_FORMAT((printf, 1, 0)) static void
707verror(char const *msgid, va_list args)
708{
709 check_for_signal();
710 /*
711 ** Match the format of "cc" to allow sh users to
712 ** zic ... 2>&1 | error -t "*" -v
713 ** on BSD systems.
714 */
715 if (filenum)
716 fprintf(stderr, _("\"%s\", line %"PRIdMAX": "),
717 filename(filenum), linenum);
718 vfprintf(stderr, _(msgid), args);
719 if (rfilenum)
720 fprintf(stderr, _(" (rule from \"%s\", line %"PRIdMAX")"),
721 filename(rfilenum), rlinenum);
722 fprintf(stderr, "\n");
723}
724
725ATTRIBUTE_FORMAT((printf, 1, 2)) static void

Callers 2

errorFunction · 0.85
warningFunction · 0.85

Calls 2

check_for_signalFunction · 0.85
filenameFunction · 0.85

Tested by

no test coverage detected