Commit graph

1,744 commits

Author SHA1 Message Date
William S Fulton
79eea19382 string handling mods to keep gcc-4.2 happy
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10088 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-11-04 20:35:59 +00:00
William S Fulton
ed2bc825bd minor member pointer fixes for last commit
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10077 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-30 22:21:19 +00:00
Mark Gossage
0c2bbb25a3 [lua] fixed bug in template classes which cases template_default2 and template_specialization_defarg to fail.
Added several warning filters into the overload's test cases.
Added runtime tests for several codes.
You can now make check-lua-test-suite with no errors and only a few warnings.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10076 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-30 06:10:04 +00:00
William S Fulton
3acd5c2d94 Fix member pointers on 64 bit platforms
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10073 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-29 23:07:01 +00:00
Gonzalo Garramuno
f2f29c9ba5 Moved the std::pair< iterator, bool > typemap to std_set.i
where it belongs.
This solves the problem with swig conflicts (at least for now).



git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10071 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-29 22:12:56 +00:00
Gonzalo Garramuno
169a953991 Added fix for std::pair< iterator, bool >.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10070 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-29 16:39:05 +00:00
John Lenz
b8629b298c Fix list_vector.i in the guilescm test suite to work on amd64
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10069 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-29 02:12:13 +00:00
William S Fulton
421eb7ae60 New templated method SwigValueInit to initialise all types - used initially for return types in director methods
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10063 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-28 23:07:33 +00:00
William S Fulton
08a45afc1b Correct methods that were not as per the standard
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10062 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-28 22:33:20 +00:00
Joseph Wang
3b9574953c Fix so that it works for 2.6 and 2.5
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10059 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-28 18:21:44 +00:00
William S Fulton
c5fae8d592 Use more efficient SvPV_nolen(x) instead of SvPV(x,PL_na)
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10058 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-28 16:52:49 +00:00
Gonzalo Garramuno
c568d170dc Added an additional fix to std_set to handle erase
properly (sigh).
Fixed a comment in rubyiterators.swg.



git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10056 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-27 21:58:36 +00:00
Gonzalo Garramuno
7bc4e56614 Added new typemap and function to turn a
std::set<T>::iterator and std::multiset<T>::iterator
into a ruby const iterator so that the key value
cannot be changed.



git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10055 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-27 21:41:22 +00:00
John Lenz
4ace915a56 Chicken test suite now runs with no errors
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10054 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-26 23:08:34 +00:00
William S Fulton
c6b4403b40 remove dead code
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10053 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-26 10:22:40 +00:00
Joseph Wang
53c972ddf1 Revert back for R 2.5
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10051 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-26 01:20:01 +00:00
William S Fulton
69f7d011c0 add missing class declarations
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10049 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-26 01:01:25 +00:00
William S Fulton
145c1f42b8 Fix invalid C
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10048 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-26 00:40:18 +00:00
William S Fulton
c01ba3666c more signed / unsigned mismatch fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10047 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-26 00:31:01 +00:00
William S Fulton
bee6b6650f signed / unsigned mismatch fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10046 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-26 00:23:58 +00:00
William S Fulton
fb6586ecdf Fix unary minus warning
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10045 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-25 23:52:35 +00:00
William S Fulton
1c163430e3 Fixes global namespace pollution from Ruby\'s win32.h
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10044 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-25 23:45:44 +00:00
Olly Betts
d1dabb7231 Fix UTL typecheck macro for a function taking char[] or const
char[] (SF#1820132).


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10043 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-25 23:05:32 +00:00
William S Fulton
ff4bfe41e7 Deal with Microsoft deprecation of standard C++ library methods
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10042 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-25 22:37:14 +00:00
William S Fulton
c8e1d09cff Warning fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10041 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-25 22:36:23 +00:00
William S Fulton
e49c07014d Correct usage of Py_ssize_t
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10040 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-25 22:33:20 +00:00
William S Fulton
0da1552b26 Mods to match the C++ standard
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10039 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-25 22:31:12 +00:00
Joseph Wang
54f0b11ddf Add "freearg" template
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10037 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-25 11:30:11 +00:00
Joseph Wang
7037fecf7e Some more fixes to deal with constness of char
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10036 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-25 05:00:17 +00:00
Joseph Wang
410da5ce73 Tweaks to fix errors in r module code
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10035 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-25 04:06:22 +00:00
William S Fulton
6456ed936d VC++ warning fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10032 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-23 22:09:24 +00:00
William S Fulton
e1d7790968 VC++ warning fix
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10031 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-23 21:59:33 +00:00
William S Fulton
1ecf5885a2 VC++ error/warning fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10029 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-23 21:57:19 +00:00
William S Fulton
62b2401d09 member function typemap fix for VC++
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10028 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-23 21:56:24 +00:00
Matthias Köppe
c102472282 Another fix for test case apply_strings, for guile -gh, by adding explicit casts to the appropriate .
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10026 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-23 00:11:16 +00:00
Matthias Köppe
e6a07ee55b Fix testcases apply_signed_char and apply_strings by adding explicit casts to the appropriate .
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10022 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-22 21:49:36 +00:00
Olly Betts
87e64a237b [perl5] Clear errno before calls to strtol(), strtoul(), strtoll()
and strtoull() which we check errno after to avoid seeing a junk
value of errno if there isn't an error in the call.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10013 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-19 03:35:49 +00:00
Olly Betts
29d932886e Fix wrapping of constants, broken by warning suppression change.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10009 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-18 15:52:06 +00:00
William S Fulton
9c65c6b044 Remove cvs $Header$
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10004 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-17 21:43:55 +00:00
William S Fulton
2a89d09add attribute tidy up. %attributeref replaces %attribute_ref
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10000 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-17 21:27:21 +00:00
Olly Betts
a1ae35b43f Revert this fix unless ZEND_RAW_FENTRY is defined (it was added in
PHP 5.2.<something>):

    [PHP] Fix many occurrences of "warning: deprecated conversion from
    string constant to 'char*'" from GCC 4.2 in generated C/C++ code.

Use zend_function_entry rather than function_entry in generated code.
The later only exists for compatibility with PHP3!


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9997 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-17 17:25:15 +00:00
Olly Betts
c166ffc10d Release our mutex rather than free-ing it, since we want it around to reuse.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9994 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-16 23:01:23 +00:00
Olly Betts
10c6e1064d [Tcl] Fix several ocurrences of "warning: deprecated conversion
from string constant to 'char*'" from GCC 4.2 in generated C/C++
code.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9993 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-16 22:12:44 +00:00
Olly Betts
1b1334815c [PHP] Fix many occurrences of "warning: deprecated conversion from
string constant to 'char*'" from GCC 4.2 in generated C/C++ code.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9992 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-16 21:39:37 +00:00
William S Fulton
acb5bde28c Patch #1797133 from David Piepgrass fixes %attribute when the getter has the same name as the attribute name and no longer generate non-functional setter for read-only attributes.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9990 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-15 21:57:51 +00:00
Olly Betts
6fdeeafb88 [Tcl] Prevent SWIG_Tcl_ConvertPtr from calling the unknown proc.
Add Examples/tcl/std_vector/ which this change fixes.  Patch
is from "Cliff C" in SF#1809819.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9989 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-15 02:02:47 +00:00
Olly Betts
b1b889059d Another place which can use std::string::assign() which I failed to check in
with the others.  Also use std::string::data() instead of std::string::c_str()
where we don't need the trailing '\0'.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9988 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-15 01:40:52 +00:00
William S Fulton
fd851b9380 Add DetachCurrentThread back in for directors. The problems occuring on Solaris look like they were jdk bugs (1.4.2 and older)
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9983 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-12 21:40:01 +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