From 560b18eb3f829dac7cfdfddf59dbd00f919d3fc7 Mon Sep 17 00:00:00 2001 From: Mark Gossage Date: Wed, 30 Jan 2008 03:40:37 +0000 Subject: [PATCH] Small update to documentation in Typemaps.html, to warn about use of local variables in typemaps for multiple types. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10221 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- CHANGES.current | 4 ++++ Doc/Manual/Typemaps.html | 21 +++++++++++++++++++++ 2 files changed, 25 insertions(+) diff --git a/CHANGES.current b/CHANGES.current index 2566ed8eb..2585b2a38 100644 --- a/CHANGES.current +++ b/CHANGES.current @@ -1,6 +1,10 @@ Version 1.3.34 (in progress) ============================ +01/30/2008: mgossage + Small update to documentation in Typemaps.html, to warn about use of local + variables in typemaps for multiple types. + 01/25/2008: wsfulton [Java] Fix bug reported by Kevin Mills in ARRAYSOFCLASSES typemaps where any changes made to an array element passed from Java to C are not reflected back diff --git a/Doc/Manual/Typemaps.html b/Doc/Manual/Typemaps.html index f4bd832a1..10f3424eb 100644 --- a/Doc/Manual/Typemaps.html +++ b/Doc/Manual/Typemaps.html @@ -1617,6 +1617,27 @@ Some typemaps do not recognize local variables (or they may simply not apply). At this time, only typemaps that apply to argument conversion support this.
++Note: +
+ ++When declaring a typemap for multiple types, +each type must have its own local variable declaration. +
+ ++%typemap(in) const std::string *, std::string * (std::string temp) // NO! +// only std::string * has a local variable +// const std::string * does not (oops) +.... + +%typemap(in) const std::string * (std::string temp), std::string * (std::string temp) // Correct +.... ++