From e4f2a35328b3e082da2448df07ebd15b73d3bb5d Mon Sep 17 00:00:00 2001 From: Thien-Thi Nguyen Date: Sat, 12 Feb 2000 06:55:38 +0000 Subject: [PATCH] (Verbose): New global var. This used to be an automatic var in function `SWIG_main', but was deleted (w/o deleting "-v" parsing). (SWIG_main): Set `Verbose' during option parsing. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@236 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- SWIG/Source/SWIG1.1/main.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/SWIG/Source/SWIG1.1/main.cxx b/SWIG/Source/SWIG1.1/main.cxx index 75a8a26e9..aae0cd526 100644 --- a/SWIG/Source/SWIG1.1/main.cxx +++ b/SWIG/Source/SWIG1.1/main.cxx @@ -57,6 +57,7 @@ static char cvsroot[] = "$Header$"; char *typemap_lang = 0; // Typemap name int type_id = 0; // Type identifier int error_count = 0; // Error count + int Verbose = 0; class SwigException {}; @@ -181,7 +182,9 @@ int SWIG_main(int argc, char *argv[], Language *l) { } else if (strcmp(argv[i],"-E") == 0) { cpp_only = 1; Swig_mark_arg(i); - } else if ((strcmp(argv[i],"-verbose") == 0) || (strcmp(argv[i],"-v") == 0)) { + } else if ((strcmp(argv[i],"-verbose") == 0) || + (strcmp(argv[i],"-v") == 0)) { + Verbose = 1; Swig_mark_arg(i); } else if (strcmp(argv[i],"-c++") == 0) { CPlusPlus=1;