summaryrefslogtreecommitdiff
path: root/Lib/d
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2012-05-26 06:33:49 +0000
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2012-05-26 06:33:49 +0000
commit12a9671440e9408a07d59a8936e75da096fea5fc (patch)
treea22151e261e62ee2aceb6b0f034ba7a424ef4b25 /Lib/d
parent49b6c39d98967c5bad997bf1490deab0161b18a5 (diff)
downloadswig-12a9671440e9408a07d59a8936e75da096fea5fc.tar.gz
std::string typemap modifications so they can be used with %apply for other string classes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13120 626c5289-ae23-0410-ae9c-e8d60b6d4f22
Diffstat (limited to 'Lib/d')
-rw-r--r--Lib/d/std_string.i4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/d/std_string.i b/Lib/d/std_string.i
index 7a4accf18..8d75d23e4 100644
--- a/Lib/d/std_string.i
+++ b/Lib/d/std_string.i
@@ -36,7 +36,7 @@ class string;
SWIG_DSetPendingException(SWIG_DIllegalArgumentException, "null string");
return $null;
}
- std::string $1_str($input);
+ $*1_ltype $1_str($input);
$1 = &$1_str; %}
%typemap(out) string %{ $result = SWIG_d_string_callback($1.c_str()); %}
@@ -63,7 +63,7 @@ class string;
return $null;
}
/* possible thread/reentrant code problem */
- static std::string $1_str;
+ static $*1_ltype $1_str;
$1_str = $input;
$result = &$1_str; %}