~ubuntu-branches/ubuntu/quantal/swig2.0/quantal

« back to all changes in this revision

Viewing changes to Lib/d/std_string.i

  • Committer: Package Import Robot
  • Author(s): Stefano Rivera
  • Date: 2012-06-01 17:05:17 UTC
  • mfrom: (1.1.6) (10.1.9 sid)
  • Revision ID: package-import@ubuntu.com-20120601170517-q0ik32ij61i4r6f0
Tags: 2.0.7-2ubuntu1
* Merge from Debian unstable (LP: #1006387). Remaining changes:
  - Drop libchicken-dev from the build-depends (in universe).

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
    SWIG_DSetPendingException(SWIG_DIllegalArgumentException, "null string");
37
37
    return $null;
38
38
   }
39
 
   std::string $1_str($input);
 
39
   $*1_ltype $1_str($input);
40
40
   $1 = &$1_str; %}
41
41
 
42
42
%typemap(out) string %{ $result = SWIG_d_string_callback($1.c_str()); %}
63
63
    return $null;
64
64
  }
65
65
  /* possible thread/reentrant code problem */
66
 
  static std::string $1_str;
 
66
  static $*1_ltype $1_str;
67
67
  $1_str = $input;
68
68
  $result = &$1_str; %}
69
69