From 9d70f8449a8559b58006895061c231353a4dcb1f Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Tue, 15 Jun 2004 20:07:49 +0000 Subject: [PATCH] Missing char[] typemaps added git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5989 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Lib/swig.swg | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Lib/swig.swg b/Lib/swig.swg index 3ec865450..9911f4507 100644 --- a/Lib/swig.swg +++ b/Lib/swig.swg @@ -186,6 +186,16 @@ namespace std { else $1[0] = 0; } +%typemap(memberin) char [] { + if ($input) strcpy($1,$input); + else $1[0] = 0; +} + +%typemap(globalin) char [] { + if ($input) strcpy($1,$input); + else $1[0] = 0; +} + /* memberin typemap for arrays. */ %typemap(memberin) SWIGTYPE [ANY] {