Commit graph

13,306 commits

Author SHA1 Message Date
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
William S Fulton
4075a16d70 correct contributor name
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9978 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-10 08:18:31 +00:00
William S Fulton
54200cc7e8 shared_ptr memory leak testing. Make increment and decrement counts thread safe. Fix template test.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9977 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-09 23:56:31 +00:00
William S Fulton
035cdf6f1a Fix compilation problem for const methods and memory leak for plain member variables
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9976 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-09 23:51:03 +00:00
William S Fulton
142b57a241 Fix compilation problem for const methods
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9975 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-09 23:50:33 +00:00
William S Fulton
76fdf15ff8 comment fix
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9974 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-09 23:24:07 +00:00
William S Fulton
5fc509af43 minor edit
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9973 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-09 23:23:30 +00:00
Olly Betts
d264fd1a1a Fix typo.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9972 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-09 21:21:42 +00:00
Olly Betts
611e41e04b Automatically rerun autogen.sh if configure.in is modified.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9971 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-09 20:07:26 +00:00
Olly Betts
f20d0b7946 Enhance check-%-test-suite rule and friends to give a more helpful
error message if you try them for a language which doesn't exist
(e.g. "make check-php-test-suite" rather than the correct
"make check-php4-test-suite").


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9970 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-09 18:16:09 +00:00
Olly Betts
2fffdd118a [php] Fix long-standing memory leak in wrapped constructors and
wrapped functions/methods which return an object.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9969 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-09 18:12:42 +00:00
Olly Betts
3a04a34333 CVS -> SVN
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9968 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-08 14:30:29 +00:00
Olly Betts
3777b685a6 Fix many instances of "delimeter" to "delimiter".
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9967 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-08 12:02:56 +00:00
Olly Betts
427a4945be Fix typos
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9966 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-08 12:01:54 +00:00
Olly Betts
32504a9c37 Fix Makefile.in to read check.list files correctly in a VPATH
build.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9965 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-08 11:44:20 +00:00
Olly Betts
b19ba03ff1 Fix typo in comment (libary -> library)
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9964 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-07 14:28:36 +00:00
William S Fulton
12919429ad shared_ptr typemaps added
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9963 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-07 00:28:11 +00:00
William S Fulton
75b1e083cf Fix warning display of templated base classes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9962 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-09-30 19:27:40 +00:00
Olly Betts
8e19947acc Mark configure.in as svn:eol-style LF so it will have Unix line endings even
on Windows, and remove the suggestion to use dos2unix on configure.in for
mingw as it will no longer be required.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9961 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-09-27 21:01:18 +00:00
Mark Gossage
6a70b4adc7 [lua] move verbose error checks, more test cases, reorg of luatypemaps.swg
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9958 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-09-27 05:36:25 +00:00
William S Fulton
0a83b80934 Add dos2unix comand to mingw build
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9957 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-09-25 21:47:52 +00:00
William S Fulton
23f8a0464c throws typemaps for std::wstring using C# patch #1799064 from David Piepgrass
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9956 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-09-25 21:35:24 +00:00
William S Fulton
3efe579453 Add more details on and special variables
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9955 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-09-25 21:24:22 +00:00
William S Fulton
ed3938e36f fix long long handling - mainly patch 1771313. Attempt to define ISO limits that should be in limits.h if gcc has not defined them. This might need refining further.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9954 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-09-24 21:42:05 +00:00
William S Fulton
f8142058e1 update section numbers
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9953 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-09-24 21:25:13 +00:00
Olly Betts
cebe664854 Use push_back(wchar_t) instead of append(wchar_t) since append() is
non-standard (SF#1799992).


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9952 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-09-23 21:40:29 +00:00
Olly Betts
4f8dbd15b6 Commit changelog entry for recent Java tweak
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9951 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-09-23 21:39:16 +00:00
William S Fulton
e46f6ed050 summary of last few commits
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9950 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-09-21 23:59:14 +00:00
William S Fulton
8a17d9dcfa Back out valueparm attribute in the csvarin typemap. Add example usage of temporary variables in the csvarin typemap into docs. Modify CDate C# example. Add in special variable expansion in the csvarin typemap.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9949 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-09-21 23:58:00 +00:00
Olly Betts
532518c38a [Java] Eliminate some unnecessary uses of a temporary buffer
allocated using new[].  SF#1796609.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9948 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-09-20 01:04:35 +00:00
Gonzalo Garramuno
5eb47b0da5 Reverted the static_cast fix as it is incorrect due
to swig going thru a void* in-between.
The problem is still present, but will require a much
more elaborate fix.



git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9947 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-09-20 00:19:57 +00:00
William S Fulton
d737022daa More flexible variable wrappers (C# properties). The property set can now support a different type to that used in the intermediary layer. This is achieved by using a temporary variable and specifying the name of the temporary variable in a new 'valueparm' attribute in the csvarin typemap. Also Fix bug reported by Glenn A Watson and #1795260 where the cstype typemap used the 'ref' keyword in the typemap body. The type for the property now correctly comes from the 'out' attribute in the cstype typemap.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9946 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-09-19 23:54:19 +00:00
William S Fulton
0798630f72 fix director typemaps for wstring&
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9945 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-09-19 23:47:17 +00:00
William S Fulton
8c3373fb78 fix some typos
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9944 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-09-19 23:21:03 +00:00
William S Fulton
7199cf2ef0 Ensure the premature garbage collection prevention parameter (pgcpp) is generated for Java wrappers
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9943 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-09-19 23:17:50 +00:00
Gonzalo Garramuno
7a3c9a08a2 Changed swigtype.swg to use static_cast's instead of
reinterpret_cast's.
This fixes a potentially subtle problem with director
classes using reinterpret casts in their casts
and when casting class that have multiple inheritance. 
The code currently generated by swig actually works
find under most compilers but was, afaik, not truly 
C++ conformant.



git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9942 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-09-19 09:00:59 +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
cb4c23fde1 [python] Split potentially long string literals to avoid hitting
MSVC's low fixed limit on string literal length - patch from
SF#1723770, also reported as SF#1630855.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9940 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-09-18 00:50:20 +00:00
Olly Betts
b8c6a5c0d2 [ocaml] Fix renaming of overloaded methods in the method_table -
my patch from SF#940399.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9939 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-09-18 00:18:39 +00:00
Olly Betts
8178898960 [python] Simpler code for SWIG_AsVal_bool() which fixes a "strict
aliasing" warning from GCC - patch from SF#1724581 by Andrew
Baumann.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9938 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-09-17 23:52:16 +00:00
Olly Betts
e2d7f303b8 [perl5] Use sv_setpvn() to set a scalar from a pointer and length
- patch from SF#174460 by "matsubaray".


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9937 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-09-17 23:24:11 +00:00
Olly Betts
c836c81acb When wrapping C++ code, generate code which uses
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@9936 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-09-17 20:10:57 +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
9b79e76d93 Fix ignore on implicit constructors
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9934 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-09-07 22:10:03 +00:00
John Lenz
38f6ca7f15 Modify r_ltype in typesys.c to store a hashtable instead of a single value
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9933 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-09-05 05:40:35 +00:00
William S Fulton
f4b9fd381d correct module to use
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9932 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-09-04 22:42:07 +00:00
Gonzalo Garramuno
94a6b8ddb1 Revered _mSWIG to rubyhead.swg as some tests would fail.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9931 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-09-04 06:43:28 +00:00
Gonzalo Garramuno
dec7109eb5 Added missing stl_new.i test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9930 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-09-04 06:37:18 +00:00
Gonzalo Garramuno
1cf26ad65d Added new li_math.i test.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9929 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-09-04 06:36:21 +00:00
Gonzalo Garramuno
8682f0cbaf Added some more tests for c file wraps.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9928 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-09-04 06:33:08 +00:00