Commit graph

1,755 commits

Author SHA1 Message Date
Olly Betts
bc9c671d84 [Python] Don't pass Py_ssize_t for a %d printf-like format as
that's undefined behaviour when sizeof(Py_ssize_t) != sizeof(int).


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10145 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-11-16 16:05:10 +00:00
William S Fulton
22126ca549 Fix off by 1 memory allocation
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10127 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-11-14 22:30:01 +00:00
William S Fulton
06e014fdbe Fix C errors
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10124 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-11-14 21:47:44 +00:00
William S Fulton
68f9f87e8d Fix C errors
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10123 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-11-14 21:47:11 +00:00
William S Fulton
7b82429333 Use STRICT_R_HEADERS to remove macro conflicts with windows header files
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10122 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-11-14 21:46:16 +00:00
William S Fulton
0362693bd2 Go back to extern C around R headers as per recommendation
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10119 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-11-12 22:21:11 +00:00
William S Fulton
9bc992c0e4 Replace strdup - it is not portable. VC++ warning fixes.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10118 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-11-12 22:14:51 +00:00
William S Fulton
39ff2511cb replace strdup - it is not portable
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10117 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-11-12 22:14:22 +00:00
William S Fulton
a80c41bef5 Dont use the global namespace polluting methods in the R headers - provides Visual C++ support
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10109 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-11-11 20:26:58 +00:00
William S Fulton
6e88a9778f Fix C code compilation
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10100 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-11-10 22:12:01 +00:00
William S Fulton
92b6b2f8c0 Clean up warnings compiling on Solaris
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10097 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-11-10 00:28:25 +00:00
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