Commit graph

1,416 commits

Author SHA1 Message Date
William S Fulton
25aff229ab Remove void * cast which was suppressing gcc's strict aliasing warning display. Note g++ 4.0 still does not display the warning even though with -O2 the resulting code fails due to aliasing optimisations.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8948 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-03 22:44:34 +00:00
William S Fulton
974f2c00bd remove unused method warning with gcc -Wall
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8947 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-03 22:41:12 +00:00
William S Fulton
fb644e707e remove unused warnings with gcc -Wall
Add sanity check back in checking that the pending exception count is zero per thread


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8946 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-03 22:39:54 +00:00
William S Fulton
a5c816aa71 Remove DllExport - it is a leftover from the C# module and was removed a while ago and should not be used.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8945 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-03 22:37:23 +00:00
Marcelo Matus
dd1e7cd0b4 fix builtin names warnings, so they ony apply to functions, as reported by James Bigler and the 'max' name issue
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8938 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-03 05:16:16 +00:00
Matthias Köppe
6cbd9a9b3c [Guile -scm] Add typemaps for "long long"; whether the generated code
compiles, however, depends on the version and configuration of Guile.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8936 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-03 04:00:31 +00:00
William S Fulton
214a1839ee Add inner exception support with ideas from Tamas Szekeres
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8933 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-02 23:18:45 +00:00
William S Fulton
ee27412e6e Fix DllExport - it is a leftover from the C# module and should not be used.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8931 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-02 22:14:39 +00:00
William S Fulton
c8152a2016 Php5 exception support from Ollie Betts
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8930 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-02 22:11:16 +00:00
Marcelo Matus
660dcb58a5 add std::vector<T*> specialization to fix #1386582
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8928 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-02 17:58:47 +00:00
Marcelo Matus
77473c4ba2 apply patches for std::string/std::vector provided by Anthony Heading
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8926 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-02 15:17:45 +00:00
Marcelo Matus
357d0650ed add SWIG_TYPECHECK_SWIGOBJECT to resolve simple overload functions as Graph(int i)/Graph(PyObject* p)
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8923 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-01 23:30:37 +00:00
Marcelo Matus
c2485c17a0 reduce polution of macro comments by using one line macros
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8922 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-01 23:27:03 +00:00
Marcelo Matus
4ed49d7f2c the visibility attribute also works with gcc3.4
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8920 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-01 08:08:51 +00:00
Marcelo Matus
ea220fbfd7 add support for the GCC visibility attribute
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8919 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-01 07:40:56 +00:00
Marcelo Matus
cea40215bb add visibility attribute for GCC, now you can compile using -fvisibility=hidden
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8918 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-01 07:14:57 +00:00
Marcelo Matus
41dc3740f9 better using SWIGEXPORT for DllExport
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8917 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-01 06:14:23 +00:00
Marcelo Matus
52cadebd40 add the DllExport label for backward compatibility
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8916 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-28 18:59:41 +00:00
Marcelo Matus
d40ff25e3f fix wrong %include reported by Jab Rehders
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8915 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-28 18:41:32 +00:00
Luigi Ballabio
87061c3272 Fixed misspelled special variable
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8913 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-28 10:08:15 +00:00
Mikel Bancroft
4aabff8208 02/27/2006: mutandiz
[allegrocl]
	    Add support for INPUT, OUTPUT, and INOUT typemaps.
	    For OUTPUT variables, the lisp wrapper returns multiple
	    values.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8911 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-27 21:45:07 +00:00
Marcelo Matus
c3bb0f609c fix std_map such that is not necessary to use %template() std::pair<xx,yy> everytime
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8907 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-27 16:28:38 +00:00
Marcelo Matus
4c8421164f add missing typecheck typemap for argc,argv
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8901 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-27 03:00:26 +00:00
Marcelo Matus
12ac239576 add argc,argv typemap for ruby
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8900 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-27 02:59:09 +00:00
Marcelo Matus
9bcf5507df update iterator typemap
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8897 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-25 09:23:49 +00:00
Marcelo Matus
6e67122508 update iterator typemap
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8896 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-25 09:22:42 +00:00
Marcelo Matus
00aee379b2 add '= 0' to avoid warnings in icc
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8895 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-25 08:33:22 +00:00
Marcelo Matus
c69f576ccb add '= 0' to avoid warnings in icc
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8894 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-25 08:21:12 +00:00
Marcelo Matus
c1683603c1 add '= 0' to avoid warnings in icc
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8893 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-25 08:07:36 +00:00
Marcelo Matus
46318e8766 fix bug #1263457
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8887 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-23 23:45:28 +00:00
Marcelo Matus
b92bf84691 reduce the aliasing warnings (when compiling with CFLAGS='-O2 -Wstrict-aliasing=2') to the minimum, ie, enums and pointer to functions
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8885 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-23 22:24:30 +00:00
Marcelo Matus
a2c99f619d reduce the aliasing warnings (when compiling with CFLAGS='-O2 -Wstrict-aliasing=2') to the minimum, ie, enums and pointer to functions
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8883 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-23 21:43:33 +00:00
Marcelo Matus
220a0ad055 fix char *& typemap, reported by Geoff Hutchison
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8882 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-23 21:26:36 +00:00
Kevin Ruland
ab05388a85 Added some TSRMLS_FETCH() calls to initialize the tsrmls_cc variable.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8881 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-23 21:04:11 +00:00
Marcelo Matus
26d42ec95d fixes for python 2.1
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8877 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-23 09:08:49 +00:00
Marcelo Matus
44264e5544 add the factory library for UTL
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8865 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-22 18:42:20 +00:00
Marcelo Matus
6c41e29d12 delete extra new lines
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8864 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-22 18:41:40 +00:00
Marcelo Matus
52106b3c6e fix for Py_NotImplemented as reported by Olly and Amaury
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8862 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-22 16:59:00 +00:00
Charlie Savage
e66f81f904 Fixed a bug in Ruby's object tracking functionality. Previously, an object could be returned even if it did not have the correct type. This could occur if a factory class' creation method had a signature returning a base type (like geometry) but in reality a subclass (like Point) was returned. In that case, it would then be impossible to implement a "downcast" method and get back a Ruby object of type Point. Also updated the test-suite to test this situation.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8861 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-22 08:20:48 +00:00
Marcelo Matus
50c10593e6 fix seterrormsg as reported by Colin McDonald
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8853 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-20 17:42:54 +00:00
Marcelo Matus
a66fa50a8c cosmetic for generated python code
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8850 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-20 07:33:18 +00:00
William S Fulton
f4428ffab0 Deal with Microsofts attempt at deprecating C standard runtime functions for proprietary ones
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8846 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-19 22:15:23 +00:00
Matthias Köppe
b63f275984 [MzScheme] Typemaps for all integral types now accept the full range
of integral values, and they signal an error when a value outside the
valid range is passed.

[Guile] Typemaps for all integral types now signal an error when a
value outside the valid range is passed.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8844 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-19 19:28:42 +00:00
Marcelo Matus
5b98331c41 fix for python 2.3 and gc_refs issue reported by Luigi
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8842 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-18 20:54:17 +00:00
Marcelo Matus
b9c30d7738 more fixes for old Solaris compiler
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8839 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-18 08:17:23 +00:00
Marcelo Matus
555ffa5fb4 fix warning reported by Nitro in VC7
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8837 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-18 01:27:30 +00:00
Marcelo Matus
f641130612 fix premature object deletion reported by Paul in tcl3d
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8836 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-18 01:19:50 +00:00
William S Fulton
892e0202a6 Fix Sun workshop char* problems
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8833 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-17 23:20:19 +00:00
Kevin Ruland
dbe982a838 Added TSRMLS_CC to get_constant call.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8826 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-16 21:28:08 +00:00
Mark Gossage
ebbae30d72 added correct void* support
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8810 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-13 02:49:55 +00:00