chiark / gitweb /
@@@ tty mess
[mLib] / test / tvec-core.c
index 6b54f0a9dd1e38eaac83dde0c0bb2ba529090fda..7a65c519f1cb4a44a12a1a567c402182d605aea4 100644 (file)
@@ -58,7 +58,7 @@ const char *tvec_strlevel(unsigned level)
 {
   switch (level) {
 #define CASE(tag, name, val)                                           \
-    case TVLEV_##tag: return (name);
+    case TVLV_##tag: return (name);
     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
- *             @TVLEV_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, ...)
@@ -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);
-  if (level >= TVLEV_ERR) tv->f |= TVSF_ERROR;
+  if (level >= TVLV_ERR) tv->f |= TVSF_ERROR;
 }
 
 /* --- @tvec_error@, @tvec_notice@, @tvec_info@ --- *
@@ -116,7 +116,7 @@ int tvec_error(struct tvec_state *tv, const char *msg, ...)
 {
   va_list ap;
 
-  va_start(ap, msg); tvec_report_v(tv, TVLEV_ERR, msg, &ap); va_end(ap);
+  va_start(ap, msg); tvec_report_v(tv, TVLV_ERR, msg, &ap); va_end(ap);
   return (-1);
 }
 
@@ -124,14 +124,14 @@ void tvec_notice(struct tvec_state *tv, const char *msg, ...)
 {
   va_list ap;
 
-  va_start(ap, msg); tvec_report_v(tv, TVLEV_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;
 
-  va_start(ap, msg); tvec_report_v(tv, TVLEV_INFO, msg, &ap); va_end(ap);
+  va_start(ap, msg); tvec_report_v(tv, TVLV_INFO, msg, &ap); va_end(ap);
 }
 
 /* --- @tvec_outputext@ --- *