summaryrefslogtreecommitdiffhomepage
path: root/src/util.c
diff options
context:
space:
mode:
authorSean Kurtz <seankurtz75@gmail.com>2026-11-23 11:50:17 -0600
committerSean Kurtz <seankurtz75@gmail.com>2026-11-23 11:50:17 -0600
commitb6574b2f3cb86d33d7e55985c7914dfce6dbf296 (patch)
tree22449ab76bbe49bed35b5e6c54019d2802301d6a /src/util.c
parent2161b3c2de4eec4cc5f28cbf683f25acd3c7dbef (diff)
parenta847b938b372995762c8ab581c0be521fd2e8bcb (diff)
downloadzash-docs/logo-and-clean.tar.gz
Merge origin/main into docs/logo-and-cleandocs/logo-and-clean
Resolutions: README.md and DESIGN.md keep the new colour logo (packaging/zash-logo.svg) at width 220; the Makefile keeps main's newer shellcheck header, lists `make docs` in the usage block, and `clean` removes docs, cov and $(ZTOOLS) along with the branch's new tools.
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/util.c b/src/util.c
index 39db8ef..69498cd 100644
--- a/src/util.c
+++ b/src/util.c
@@ -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)