From 4199849c63fc5bbaba425e3ca4f4b65cbd86bc8c Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Tue, 10 Jan 2006 23:20:58 +0000 Subject: [PATCH] Fix to compile under visual studio which has a limit on string lengths git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8360 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- SWIG/Source/Modules/main.cxx | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/SWIG/Source/Modules/main.cxx b/SWIG/Source/Modules/main.cxx index 48621ffd8..edad32cdf 100644 --- a/SWIG/Source/Modules/main.cxx +++ b/SWIG/Source/Modules/main.cxx @@ -45,6 +45,7 @@ extern "C" { extern String *ModuleName; } +// usage string split into multiple parts otherwise string is too big for some compilers static const char *usage1 = (const char*)"\ \nGeneral Options\n\ -addextern - Add extra extern declarations\n\ @@ -71,6 +72,9 @@ static const char *usage1 = (const char*)"\ If no explicit value is given to the feature, a default of 1 is used\n\ -fastdispatch - Enable fast dispatch mode to produce faster overload dispatcher code\n\ -Fmicrosoft - Display error/warning messages in Microsoft format\n\ +"; + +static const char *usage2 = (const char*)"\ -Fstandard - Display error/warning messages in commonly used format\n\ -fvirtual - Compile in virtual elimination mode\n\ -help - This output\n\ @@ -80,9 +84,6 @@ static const char *usage1 = (const char*)"\ -importall - Follow all #include statements as imports\n\ -includeall - Follow all #include statements\n\ -l - Include SWIG library file \n\ -"; -// usage string split in two otherwise string is too big for some compilers -static const char *usage2 = (const char*)"\ -makedefault - Create default constructors/destructors (the default)\n\ -M - List all dependencies\n\ -MD - Is equivalent to `-M -MF ', except `-E' is not implied\n\ @@ -104,6 +105,9 @@ static const char *usage2 = (const char*)"\ -oh - Set name of the output header file to \n\ -outdir - Set language specific files output directory \n\ -small - Compile in virtual elimination & compact mode\n\ +"; + +static const char *usage3 = (const char*)"\ -swiglib - Report location of SWIG library and exit\n\ -templatereduce - Reduce all the typedefs in templates\n\ -v - Run in verbose mode\n\ @@ -693,6 +697,7 @@ void SWIG_getoptions(int argc, char *argv[]) } else if ((strcmp(argv[i],"-help") == 0) || (strcmp(argv[i],"--help") == 0)) { fputs(usage1,stdout); fputs(usage2,stdout); + fputs(usage3,stdout); Swig_mark_arg(i); help = 1; }