Skip to content

Commit

Permalink
Fixed output of tprintf for windows
Browse files Browse the repository at this point in the history
git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@235 d0cd1f9f-072b-0410-8dd7-cf729c803f20
  • Loading branch information
theraysmith committed Jun 2, 2009
1 parent 74c3f2d commit e4b9281
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
3 changes: 2 additions & 1 deletion ccmain/tesseractmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,10 @@ int main(int argc, char **argv) {
STRING outfile; //output file

if (argc < 3) {
USAGE.error (argv[0], EXIT,
USAGE.error (argv[0], TESSLOG,
"%s imagename outputbase [-l lang] [configfile [[+|-]varfile]...]\n",
argv[0]);
return 1;
}
// Find the required language.
const char* lang = "eng";
Expand Down
14 changes: 0 additions & 14 deletions ccutil/tprintf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,7 @@
#define MAX_MSG_LEN 1024

#define EXTERN
#ifdef __MSW32__
DLLSYM STRING_VAR (debug_file, "tesseract.log", "File to send tprintf output to");
#else
DLLSYM STRING_VAR (debug_file, "", "File to send tprintf output to");
#endif
DLLSYM BOOL_VAR (debug_window_on, FALSE,
"Send tprintf to window unless file set");

Expand Down Expand Up @@ -77,17 +73,7 @@ const char *format, ... //special message
debugwin->dprintf (msg);
}
else {
#ifdef __UNIX__
// output to stderr - like it used to
fprintf (stderr, "%s", msg);
#endif

#ifdef __MSW32__
// TRACE ("%s", msg); //Visual C++2.0 macro
#endif
#ifdef __MAC__
printf ("%s", msg); //Visual C++2.0 macro
#endif
}
}
}
Expand Down

0 comments on commit e4b9281

Please sign in to comment.