diff options
author | Erez Geva <ErezGeva2@gmail.com> | 2023-05-03 12:09:15 +0200 |
---|---|---|
committer | Olly Betts <olly@survex.com> | 2023-05-04 13:18:10 +1200 |
commit | 63b1293e1a760e0ce1a27208a5231e705c8f0f3b (patch) | |
tree | 49ae567d51c5b72ace63a15b54612308274ee56a /Lib/d/std_string.i | |
parent | dada37e1d1a860100c23f7971b0aac58154441fa (diff) | |
download | swig-63b1293e1a760e0ce1a27208a5231e705c8f0f3b.tar.gz |
Drop D version 1
See #2538
Diffstat (limited to 'Lib/d/std_string.i')
-rw-r--r-- | Lib/d/std_string.i | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/Lib/d/std_string.i b/Lib/d/std_string.i index 8d75d23e4..fbee0578c 100644 --- a/Lib/d/std_string.i +++ b/Lib/d/std_string.i @@ -79,19 +79,12 @@ class string; // We need to have the \0-terminated string conversion functions available in // the D proxy modules. -#if (SWIG_D_VERSION == 1) -// Could be easily extended to support Phobos as well. -SWIGD_STD_STRING_TYPEMAPS(char*, char[], tango.stdc.stringz.fromStringz, tango.stdc.stringz.toStringz) - -%pragma(d) globalproxyimports = "static import tango.stdc.stringz;"; -#else SWIGD_STD_STRING_TYPEMAPS(const(char)*, string, std.conv.to!string, std.string.toStringz) %pragma(d) globalproxyimports = %{ static import std.conv; static import std.string; %} -#endif #undef SWIGD_STD_STRING_TYPEMAPS |