C# -outfile cosmetic code fixes

This commit is contained in:
William S Fulton 2015-06-11 07:42:50 +01:00
commit 2b9b007027

View file

@ -649,7 +649,7 @@ public:
* <dir>/<name>.cs * <dir>/<name>.cs
* ----------------------------------------------------------------------------- */ * ----------------------------------------------------------------------------- */
File *getOutputFile(const String* dir, String* name) { File *getOutputFile(const String *dir, const String *name) {
if (output_file) { if (output_file) {
if (!f_single_out) { if (!f_single_out) {
String *filen = NewStringf("%s%s", SWIG_output_directory(), output_file); String *filen = NewStringf("%s%s", SWIG_output_directory(), output_file);
@ -1954,7 +1954,6 @@ public:
} }
} }
// Each outer proxy class goes into a separate file
if (!has_outerclass) { if (!has_outerclass) {
String *output_directory = outputDirectory(nspace); String *output_directory = outputDirectory(nspace);
f_proxy = getOutputFile(output_directory, proxy_class_name); f_proxy = getOutputFile(output_directory, proxy_class_name);
@ -4302,5 +4301,5 @@ C# Options (available with -csharp)\n\
-noproxy - Generate the low-level functional interface instead\n\ -noproxy - Generate the low-level functional interface instead\n\
of proxy classes\n\ of proxy classes\n\
-oldvarnames - Old intermediary method names for variable wrappers\n\ -oldvarnames - Old intermediary method names for variable wrappers\n\
-outfile <filename> - Write all C# to a single file <filename> located in the output directory\n\ -outfile <file> - Write all C# into a single <file> located in the output directory\n\
\n"; \n";