diff options
Diffstat (limited to 'src/util.c')
| -rw-r--r-- | src/util.c | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -531,12 +531,6 @@ void exc_raise(int exc) { } /** - * @brief Print a message on standard error, prefixed with the shell's name and, - * in a script, the current line number. - * @param fmt printf() format. - * @param ap Arguments. - */ -/** * @brief Derive a message number from a message's format string. * * `set -o msgid` puts an identifier such as `ZSH4711E` in front of every @@ -561,6 +555,13 @@ static unsigned message_number(const char *fmt) { return 1000 + h % 9000; } +/** + * @brief Print a message on standard error, prefixed with the shell's name and, + * in a script, the current line number. + * @param fmt printf() format. + * @param ap Arguments. + * @param severity 'W' for a warning, 'E' for an error. + */ static void vwarn(const char *fmt, va_list ap, char severity) { out_flush(&out1); if (opt.msgid) |
