From 22faae5ec66503ae06bbbd01889d459b22609c14 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Tue, 4 Mar 2003 22:35:29 +0000 Subject: [PATCH] Remove package statement when using -package commandline. Perhaps this needs to be replaced by assemblies? Gets the test-suite under way for the moment. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4430 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Source/Modules/csharp.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/Modules/csharp.cxx b/Source/Modules/csharp.cxx index 63a3f6987..ae9d887eb 100644 --- a/Source/Modules/csharp.cxx +++ b/Source/Modules/csharp.cxx @@ -293,7 +293,7 @@ class CSHARP : public Language { // Start writing out the Java JNI class if(Len(package) > 0) - Printf(f_java, "package %s;\n\n", package); + Printf(f_java, "//package %s;\n\n", package); emitBanner(f_java); if(jniclass_imports) @@ -332,7 +332,7 @@ class CSHARP : public Language { // Start writing out the Java module class if(Len(package) > 0) - Printf(f_module, "package %s;\n\n", package); + Printf(f_module, "//package %s;\n\n", package); emitBanner(f_module); if(module_imports) @@ -1155,7 +1155,7 @@ class CSHARP : public Language { emitBanner(f_shadow); if(Len(package) > 0) - Printf(f_shadow, "package %s;\n\n", package); + Printf(f_shadow, "//package %s;\n\n", package); Clear(shadow_classdef); Clear(shadow_code); @@ -1913,7 +1913,7 @@ class CSHARP : public Language { // Emit banner and package name emitBanner(f_swigtype); if(Len(package) > 0) - Printf(f_swigtype, "package %s;\n\n", package); + Printf(f_swigtype, "//package %s;\n\n", package); // Pure Java baseclass and interfaces const String *pure_java_baseclass = javaTypemapLookup("javabase", type, WARN_NONE);