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
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
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
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
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
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
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
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
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
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
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
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
d1defceb95
Moved _mSWIG to rubyrun.swg with all other static
...
variables.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9927 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-09-04 06:12:38 +00:00
Gonzalo Garramuno
8f6e08dcb5
Silly gcc was complaining about static initializers when
...
compiling in C.
Code was now moved to initialization and variables were
prefixed with swig_*.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9925 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-09-04 05:40:49 +00:00
Mikel Bancroft
3cedba5291
[allegrocl] see CHANGES.current
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9901 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-08-16 18:39:50 +00:00
Surendra Singhi
e33435c4cc
aplied patch 1766076
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9898 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-08-15 05:09:02 +00:00
William S Fulton
23f4cd4a38
More alternative calling convention names
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9895 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-08-11 00:02:24 +00:00
William S Fulton
a122368370
Apply patch #1771410 from Wade Brainerd to fix typedef XS(SwigPerlWrapper) in perlrun.swg for ActiveState Perl build 822 and Perl 5.8.9 and 5.10 branches.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9892 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-08-10 11:54:42 +00:00
William S Fulton
7797ae82aa
const enum reference typemaps fixed
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9891 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-08-10 11:30:03 +00:00
William S Fulton
6e4d5b4b3a
Fix member pointer typemaps (32bit fix only though)
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9890 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-08-10 11:16:59 +00:00
Gonzalo Garramuno
bbd80cfa84
Moved some of the common checks for methods/procs and arity
...
to rubyrun.swg, as they are useful even for not stl stuff.
Added a fragment trait for marking STL containers, but this
fragment cannot be attached due to SWIG %template limitations.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9874 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-07-24 05:46:55 +00:00
William S Fulton
2b93511d17
complete last commit
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9873 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-07-20 22:35:07 +00:00
William S Fulton
a4eb259f31
member pointer fixes
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9868 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-07-18 21:07:48 +00:00
William S Fulton
edd82d41f2
corrections for last commit
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9867 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-07-18 21:06:55 +00:00
Mark Gossage
f87371fe8c
[lua] extras compability for lua 5.1, fixed a static link name conflict
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9864 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-07-10 09:30:49 +00:00
Mark Gossage
c3ec8fdce3
[lua] Fix a bug in SWIG_ALLOC_ARRAY()
...
improved the error messages for incorrect arguments.
Changed the output of swig_type() to use the human readable form of the type, rather than the raw swig type.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9863 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-07-05 01:31:51 +00:00
Gonzalo Garramuno
a1ed3e094a
Fixed C++ comment in potential C file.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9858 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-06-25 21:43:43 +00:00
William S Fulton
176984f338
std::vector parameter name changes so that these parameters can be individually singled out with typemaps
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9856 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-06-25 21:30:13 +00:00
Gonzalo Garramuno
aa84817ce0
Fixed typo.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9855 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-06-11 20:03:19 +00:00
Mikel Bancroft
e0449d3d16
[allegrocl] see CHANGES.current
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9854 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-06-07 23:23:21 +00:00
Olly Betts
333ed5b82d
Using an apostrophe in a #error message causes an error for some GCC versions.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9853 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-06-06 23:20:25 +00:00