X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=conout.c;h=a57881bb4a277c16ea36451c81140a292b65dc08;hb=c3dfe2c61c202dc62da01806c0ae78e4dcb3c3c2;hp=bf8b522648802b1b342760fdd81ecb8abfce20f2;hpb=13003bf6af9cf8c76cd024b0bf11695b92fba093;p=xonotic%2Fgmqcc.git diff --git a/conout.c b/conout.c index bf8b522..a57881b 100644 --- a/conout.c +++ b/conout.c @@ -289,6 +289,17 @@ int con_change(const char *out, const char *err) { return 1; } +/* + * Defaultizer because stdio.h shouldn't be used anywhere except here + * and inside file.c To prevent mis-match of wrapper-interfaces. + */ +FILE *con_default_out() { + return (console.handle_out = stdout); +} +FILE *con_default_err() { + return (console.handle_err = stderr); +} + int con_verr(const char *fmt, va_list va) { return con_write(console.handle_err, fmt, va); }