Commit graph

14 commits

Author SHA1 Message Date
Olly Betts
7dfd9aae31 WARN_* constants are user visible, so keep existing WARN_PHP4_* for
backward compatibility, but add preferred forms WARN_PHP_* and use
these ourselves.

Rename Lib/php4 to Lib/php, Source/Modules/php4.cxx to Source/Modules/php.cxx.
 
Add typemaps for const reference so Examples/test-suite/apply_signed_char.i
works.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10633 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-07-03 00:09:56 +00:00
Olly Betts
2982a37ad5 Adjust brackets on typemaps to eliminate superfluous {} blocks in generated
C/C++ wrapper code.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9980 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-11 03:32:30 +00:00
Olly Betts
41af8afda1 Fix for new typemaps for handling parameters of type std::string & - add a
specialised form for const std::string & which does nothing to avoid leaking
memory whenever we pass a string by const reference.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9979 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-10 14:35:44 +00:00
Olly Betts
83e0e787b7 [php] Add typemaps for handling parameters of type std::string &
which are modified by the wrapped function.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9941 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-09-18 03:08:06 +00:00
Olly Betts
ef4ca158de [PHP] Use std::string::assign(PTR, LEN) rather than assigning
std::string(PTR, LEN).  Using assign generates more efficient code
(tested with GCC 4.1.2).


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9935 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-09-17 18:39:12 +00:00
William S Fulton
49be05f4fd Common template for head of each file detailing licence, distribution and authors information
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8973 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-07 00:14:10 +00:00
Kevin Ruland
4cc9151232 Added typechecks for string and const string&.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8660 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-31 16:38:48 +00:00
William S Fulton
4c5d4a9d29 std::string global and member variables are wrapped as strings by default
No need to use the %apply const std::string& { std::string* } trick anymore


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8613 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-29 15:53:41 +00:00
Kevin Ruland
a961a7d5f2 Made string typemaps handle strings with embedded nulls. Changed to use
cstring::data() instead of c_str() to avoid a possible copy.  (Ollie Betts)


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8147 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-31 03:15:12 +00:00
William S Fulton
cfdad24993 Use the system angle brackets for %include
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7871 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-11-26 09:28:20 +00:00
William S Fulton
eca4cc3fae throws typemaps added
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7620 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-08 13:58:31 +00:00
William S Fulton
85b1bcfc47 removed redundant valuewrapper feature
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6459 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-20 21:19:14 +00:00
Marcelo Matus
5a4369fd11 avoid to use SwigValueWrapper with std::string, just to keep the code cleaner and familiar
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6422 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-18 00:35:16 +00:00
Dave Beazley
12a43edc2d The great merge
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4141 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2002-11-30 22:01:28 +00:00