From 1b485a7ad27b7de075b51dcef820b07cdfbb1153 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Wed, 24 Dec 2008 14:54:52 +0000 Subject: [PATCH] minor fixes from last checkin git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11002 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Source/Modules/main.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/Modules/main.cxx b/Source/Modules/main.cxx index f43d7b295..6ebc50449 100644 --- a/Source/Modules/main.cxx +++ b/Source/Modules/main.cxx @@ -943,7 +943,7 @@ int SWIG_main(int argc, char *argv[], Language *l) { // If the user has requested to check out a file, handle that if (checkout) { DOH *s; - String *outfile = Char(input_file); + char *outfile = Char(input_file); if (outfile_name) outfile = outfile_name; @@ -952,12 +952,12 @@ int SWIG_main(int argc, char *argv[], Language *l) { s = Swig_include(input_file); if (!s) { - fprintf(stderr, "Unable to locate '%s' in the SWIG library.\n", input_file); + Printf(stderr, "Unable to locate '%s' in the SWIG library.\n", input_file); } else { FILE *f = Swig_include_open(outfile); if (f) { fclose(f); - fprintf(stderr, "File '%s' already exists. Checkout aborted.\n", outfile); + Printf(stderr, "File '%s' already exists. Checkout aborted.\n", outfile); } else { File *f_outfile = NewFile(outfile, "w", SWIG_output_files()); if (!f_outfile) { @@ -965,7 +965,7 @@ int SWIG_main(int argc, char *argv[], Language *l) { SWIG_exit(EXIT_FAILURE); } else { if (Verbose) - fprintf(stdout, "'%s' checked out from the SWIG library.\n", outfile); + Printf(stdout, "'%s' checked out from the SWIG library.\n", outfile); Printv(f_outfile, s, NIL); Close(f_outfile); }