chiark
/
gitweb
/
~mdw
/
mLib
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
@@@ tty mess
[mLib]
/
test
/
tvec-core.c
diff --git
a/test/tvec-core.c
b/test/tvec-core.c
index 6b54f0a9dd1e38eaac83dde0c0bb2ba529090fda..7a65c519f1cb4a44a12a1a567c402182d605aea4 100644
(file)
--- a/
test/tvec-core.c
+++ b/
test/tvec-core.c
@@
-58,7
+58,7
@@
const char *tvec_strlevel(unsigned level)
{
switch (level) {
#define CASE(tag, name, val) \
{
switch (level) {
#define CASE(tag, name, val) \
- case TVL
E
V_##tag: return (name);
+ case TVLV_##tag: return (name);
TVEC_LEVELS(CASE)
#undef CASE
default: return ("??");
TVEC_LEVELS(CASE)
#undef CASE
default: return ("??");
@@
-74,7
+74,7
@@
const char *tvec_strlevel(unsigned level)
* Returns: ---
*
* Use: Report an message with a given severity. Messages with level
* Returns: ---
*
* Use: Report an message with a given severity. Messages with level
- * @TVL
E
V_ERR@ or higher force a nonzero exit code.
+ * @TVLV_ERR@ or higher force a nonzero exit code.
*/
void tvec_report(struct tvec_state *tv, unsigned level, const char *msg, ...)
*/
void tvec_report(struct tvec_state *tv, unsigned level, const char *msg, ...)
@@
-88,7
+88,7
@@
void tvec_report_v(struct tvec_state *tv, unsigned level,
const char *msg, va_list *ap)
{
tv->output->ops->report(tv->output, level, msg, ap);
const char *msg, va_list *ap)
{
tv->output->ops->report(tv->output, level, msg, ap);
- if (level >= TVL
E
V_ERR) tv->f |= TVSF_ERROR;
+ if (level >= TVLV_ERR) tv->f |= TVSF_ERROR;
}
/* --- @tvec_error@, @tvec_notice@, @tvec_info@ --- *
}
/* --- @tvec_error@, @tvec_notice@, @tvec_info@ --- *
@@
-116,7
+116,7
@@
int tvec_error(struct tvec_state *tv, const char *msg, ...)
{
va_list ap;
{
va_list ap;
- va_start(ap, msg); tvec_report_v(tv, TVL
E
V_ERR, msg, &ap); va_end(ap);
+ va_start(ap, msg); tvec_report_v(tv, TVLV_ERR, msg, &ap); va_end(ap);
return (-1);
}
return (-1);
}
@@
-124,14
+124,14
@@
void tvec_notice(struct tvec_state *tv, const char *msg, ...)
{
va_list ap;
{
va_list ap;
- va_start(ap, msg); tvec_report_v(tv, TVL
E
V_NOTE, msg, &ap); va_end(ap);
+ va_start(ap, msg); tvec_report_v(tv, TVLV_NOTE, msg, &ap); va_end(ap);
}
void tvec_info(struct tvec_state *tv, const char *msg, ...)
{
va_list ap;
}
void tvec_info(struct tvec_state *tv, const char *msg, ...)
{
va_list ap;
- va_start(ap, msg); tvec_report_v(tv, TVL
E
V_INFO, msg, &ap); va_end(ap);
+ va_start(ap, msg); tvec_report_v(tv, TVLV_INFO, msg, &ap); va_end(ap);
}
/* --- @tvec_outputext@ --- *
}
/* --- @tvec_outputext@ --- *