From f0f4533cb43d2c39118dba6960d4914a48f2d229 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=98yvind=20A=2E=20Holm?= Date: Tue, 29 Oct 2024 17:14:54 +0100 Subject: [PATCH] std/c/src/: Delete `stddebug`, use plain old `stderr` 1110cc9c-9611-11ef-bd39-83850402c3ce --- Lib/std/c/src/std.c | 8 ++++---- Lib/std/c/src/std.h | 2 -- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/Lib/std/c/src/std.c b/Lib/std/c/src/std.c index 272a7ec6..7a2991ce 100644 --- a/Lib/std/c/src/std.c +++ b/Lib/std/c/src/std.c @@ -28,7 +28,7 @@ const char *progname; struct Options opt; /* - * msg() - Print a message prefixed with "[progname]: " to stddebug if the + * msg() - Print a message prefixed with "[progname]: " to stderr if the * current verbose level is equal or higher than the first argument. The rest * of the arguments are delivered to vfprintf(). * Returns the number of characters written. @@ -45,9 +45,9 @@ int msg(const int verbose, const char *format, ...) va_list ap; va_start(ap, format); - retval = fprintf(stddebug, "%s: ", progname); - retval += vfprintf(stddebug, format, ap); - retval += fprintf(stddebug, "\n"); + retval = fprintf(stderr, "%s: ", progname); + retval += vfprintf(stderr, format, ap); + retval += fprintf(stderr, "\n"); va_end(ap); } diff --git a/Lib/std/c/src/std.h b/Lib/std/c/src/std.h index cd8ff781..26d11ace 100644 --- a/Lib/std/c/src/std.h +++ b/Lib/std/c/src/std.h @@ -39,8 +39,6 @@ # define DEBL ; #endif -#define stddebug stderr - struct Options { bool help; bool license; -- 2.11.4.GIT