From 16a711e90fe1d0bd74b3ac6158b1abc244b39082 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Thu, 12 Aug 2004 21:12:21 +0000 Subject: [PATCH] Fixes to compile on some buggy Redhat gcc 2.96 versions git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6089 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Source/Modules/csharp.cxx | 4 ++-- Source/Modules/java.cxx | 4 ++-- Source/Modules/modula3.cxx | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Source/Modules/csharp.cxx b/Source/Modules/csharp.cxx index d46987641..fb142630f 100644 --- a/Source/Modules/csharp.cxx +++ b/Source/Modules/csharp.cxx @@ -1605,7 +1605,7 @@ class CSHARP : public Language { } generateThrowsClause(n, function_code); - Printf(function_code, " %s\n\n", tm ? tm : empty_string); + Printf(function_code, " %s\n\n", tm ? (const String *)tm : empty_string); if(proxy_flag && wrapping_member_flag && !enum_constant_flag) { // Properties @@ -1998,7 +1998,7 @@ class CSHARP : public Language { } generateThrowsClause(n, function_code); - Printf(function_code, " %s\n\n", tm ? tm : empty_string); + Printf(function_code, " %s\n\n", tm ? (const String *)tm : empty_string); if (proxy_flag && global_variable_flag) { // Properties diff --git a/Source/Modules/java.cxx b/Source/Modules/java.cxx index f1edec860..9ec9f3d13 100644 --- a/Source/Modules/java.cxx +++ b/Source/Modules/java.cxx @@ -1938,7 +1938,7 @@ class JAVA : public Language { } generateThrowsClause(n, function_code); - Printf(function_code, " %s\n\n", tm ? tm : empty_string); + Printf(function_code, " %s\n\n", tm ? (const String *)tm : empty_string); Printv(proxy_class_code, function_code, NIL); Delete(function_code); @@ -2300,7 +2300,7 @@ class JAVA : public Language { } generateThrowsClause(n, function_code); - Printf(function_code, " %s\n\n", tm ? tm : empty_string); + Printf(function_code, " %s\n\n", tm ? (const String *)tm : empty_string); Printv(module_class_code, function_code, NIL); Delete(function_code); diff --git a/Source/Modules/modula3.cxx b/Source/Modules/modula3.cxx index 790c4ecd6..0ddc1a095 100644 --- a/Source/Modules/modula3.cxx +++ b/Source/Modules/modula3.cxx @@ -2994,7 +2994,7 @@ MODULA3 (): } generateThrowsClause (throws_hash, function_code); - Printf (function_code, " %s\n\n", tm ? tm : empty_string); + Printf (function_code, " %s\n\n", tm ? (const String *)tm : empty_string); if (proxy_flag && wrapping_member_flag && !enum_constant_flag) { // Properties @@ -3727,7 +3727,7 @@ MODULA3 (): } Printf (function_code, " =\n%s%sBEGIN\n%s%sEND %s;\n\n", - hasContent (local_variables) ? "VAR\n" : empty_string, + hasContent (local_variables) ? "VAR\n" : "", local_variables, exc_handler, outarg, func_name); Delete (exc_handler);