aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine/kdebug.cpp
diff options
context:
space:
mode:
authorMax Horn2009-03-04 05:19:19 +0000
committerMax Horn2009-03-04 05:19:19 +0000
commit302a99a2c0223bceb3a1f553f1b4ec0bf4b13fea (patch)
treeabbf172d4eac22d9090c4021b5e9310d6f902d7f /engines/sci/engine/kdebug.cpp
parent57e0d1611268efc5f4dda8fd02fb4dfe11b0eb5b (diff)
downloadscummvm-rg350-302a99a2c0223bceb3a1f553f1b4ec0bf4b13fea.tar.gz
scummvm-rg350-302a99a2c0223bceb3a1f553f1b4ec0bf4b13fea.tar.bz2
scummvm-rg350-302a99a2c0223bceb3a1f553f1b4ec0bf4b13fea.zip
SCI: cleanup
svn-id: r39106
Diffstat (limited to 'engines/sci/engine/kdebug.cpp')
-rw-r--r--engines/sci/engine/kdebug.cpp16
1 files changed, 4 insertions, 12 deletions
diff --git a/engines/sci/engine/kdebug.cpp b/engines/sci/engine/kdebug.cpp
index 2ab7310d24..d1d89f6c1b 100644
--- a/engines/sci/engine/kdebug.cpp
+++ b/engines/sci/engine/kdebug.cpp
@@ -33,15 +33,6 @@ namespace Sci {
int script_debug_flag = 0; // Defaulting to running mode
int sci_debug_flags = 0; // Special flags
-// Functions for internal macro use
-void _SCIkvprintf(FILE *file, const char *format, va_list args);
-
-void _SCIkvprintf(FILE *file, const char *format, va_list args) {
- vfprintf(file, format, args);
- if (con_file) vfprintf(con_file, format, args);
-}
-
-
void _SCIkwarn(EngineState *s, const char *file, int line, int area, const char *format, ...) {
va_list args;
@@ -51,11 +42,12 @@ void _SCIkwarn(EngineState *s, const char *file, int line, int area, const char
fprintf(stderr, "Warning: ");
va_start(args, format);
- _SCIkvprintf(stderr, format, args);
+ vfprintf(stderr, format, args);
va_end(args);
fflush(NULL);
- if (sci_debug_flags & _DEBUG_FLAG_BREAK_ON_WARNINGS) script_debug_flag = 1;
+ if (sci_debug_flags & _DEBUG_FLAG_BREAK_ON_WARNINGS)
+ script_debug_flag = 1;
}
void _SCIkdebug(EngineState *s, const char *file, int line, int area, const char *format, ...) {
@@ -64,7 +56,7 @@ void _SCIkdebug(EngineState *s, const char *file, int line, int area, const char
if (s->debug_mode & (1 << area)) {
fprintf(stdout, " kernel: (%s L%d): ", file, line);
va_start(args, format);
- _SCIkvprintf(stdout, format, args);
+ vfprintf(stdout, format, args);
va_end(args);
fflush(NULL);
}