diff --git a/CHANGES.current b/CHANGES.current index b9928f745..6f0b92c43 100644 --- a/CHANGES.current +++ b/CHANGES.current @@ -1,6 +1,12 @@ Version 1.3.35 (in progress) ============================ +03/04/2008: wsfulton + [Java, C#] Add char *& typemaps. + +03/04/2008: wsfulton + Fix occasional seg fault when attempting to report overloaded methods as being ignored. + 02/29/2008: wsfulton [Perl] Fix #1904537 Swig causes a Perl warning "x used only once" in Perl 5.10 reported by Ari Jolma diff --git a/Examples/test-suite/char_strings.i b/Examples/test-suite/char_strings.i index c1847a7d3..2c0ef553d 100644 --- a/Examples/test-suite/char_strings.i +++ b/Examples/test-suite/char_strings.i @@ -137,3 +137,22 @@ const char global_const_char_array2[sizeof(CPLUSPLUS_MSG)+1] = CPLUSPLUS_MSG; } + + +%inline %{ + +// char *& tests +const char *&GetConstCharPointerRef() { + static const char str[] = CPLUSPLUS_MSG; + static const char *ptr = str; + return ptr; +} + +bool SetConstCharPointerRef(const char *&str, unsigned int number) { + static char static_str[] = CPLUSPLUS_MSG; + strcpy(static_str, str); + return check(static_str, number); +} + +%} + diff --git a/Examples/test-suite/csharp/char_strings_runme.cs b/Examples/test-suite/csharp/char_strings_runme.cs index 6bcf12d85..a1e878016 100644 --- a/Examples/test-suite/csharp/char_strings_runme.cs +++ b/Examples/test-suite/csharp/char_strings_runme.cs @@ -117,6 +117,18 @@ public class char_strings_runme { if (char_strings.global_const_char_array2 != CPLUSPLUS_MSG) throw new Exception("Test variables 6 failed, iteration " + i); } + + // char *& tests + for (i=0; i