apply patches for std::string/std::vector provided by Anthony Heading
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8926 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
22d022c7de
commit
ccae4e1142
2 changed files with 2 additions and 3 deletions
|
|
@ -20,7 +20,7 @@ std::string SwigSvToString(SV* sv) {
|
|||
return SvPV(sv,len);
|
||||
}
|
||||
void SwigSvFromString(SV* sv, const std::string& s) {
|
||||
sv_setpv(sv,s.c_str());
|
||||
sv_setpvn(sv,s.data(),s.size());
|
||||
}
|
||||
%}
|
||||
|
||||
|
|
|
|||
|
|
@ -403,7 +403,6 @@ namespace std {
|
|||
specialize_std_vector(unsigned long,SvIOK,SvIVX,sv_setiv);
|
||||
specialize_std_vector(float,SvNIOK,SwigSvToNumber,sv_setnv);
|
||||
specialize_std_vector(double,SvNIOK,SwigSvToNumber,sv_setnv);
|
||||
specialize_std_vector(std::string,SvPOK,SvPVX,SwigSvFromString);
|
||||
|
||||
specialize_std_vector(std::string,SvPOK,SwigSvToString,SwigSvFromString);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue