Commit graph

3,818 commits

Author SHA1 Message Date
William S Fulton
942ec4b99e Patch from Olly Betts, so that wrappers compile with Zend thread safety enabled.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6975 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-22 05:40:41 +00:00
William S Fulton
eec4f1f754 *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6974 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-22 05:39:35 +00:00
William S Fulton
a6d40acd46 example error fixed as reported by Clint Olsen
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6973 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-20 19:47:59 +00:00
William S Fulton
2cdf0a051f add setter into test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6971 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-17 22:23:37 +00:00
William S Fulton
b33ec1cc24 test new exception mechanism in multithreaded environment
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6970 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-17 22:22:54 +00:00
William S Fulton
d02743af6d Memory leak fix in some of the scripting language modules when using default arguments in constructors. The scripting language was not taking ownership of the C++ object memory when any of the constructors that use default arguments was called.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6969 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-17 22:19:16 +00:00
William S Fulton
b985b7dbcc Correct memory allocation for STRINGARRAY
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6968 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-17 22:18:02 +00:00
William S Fulton
06ddcbd151 *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6967 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-17 22:17:22 +00:00
William S Fulton
105fe8f4d9 SF #1115055: Failed make install. Patch from Rob Stone.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6966 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-17 22:16:48 +00:00
William S Fulton
a9dab18f18 *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6965 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-15 23:30:39 +00:00
William S Fulton
2906fc959e swig -help prints to stdout not stderr now
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6964 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-15 23:04:10 +00:00
William S Fulton
e0b0628804 swig -version prints to stdout not stderr now (won't affect the autoconf macro version detection)
swig -help prints to stdout not stderr now


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6963 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-15 23:02:44 +00:00
William S Fulton
2598d7f261 more tests
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6962 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-15 22:43:04 +00:00
William S Fulton
cb7abaef11 more c# exception tests
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6961 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-15 22:42:39 +00:00
William S Fulton
6d4117591a test java arrays wrapping for dimensionless arrays
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6960 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-15 22:41:52 +00:00
William S Fulton
a0ddc0cfe8 tests ordering of section blocks
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6959 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-15 22:33:04 +00:00
William S Fulton
54716583f2 test typemap matching rules for variables
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6958 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-15 22:31:56 +00:00
William S Fulton
1c776bd850 more c# exception tests
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6957 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-15 22:29:44 +00:00
William S Fulton
4d0e968154 const warning fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6956 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-15 22:28:43 +00:00
William S Fulton
faac32387d revert to original typemap matching rules for now
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6955 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-15 22:27:09 +00:00
William S Fulton
04d96a8f14 Fix for typemap matching rules when wrapping variables for languages that wrap them via getter/setter functions (C# and Java)
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6954 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-15 22:26:04 +00:00
William S Fulton
fd1a2bcba0 %exception fixes for C#
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6953 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-15 22:23:59 +00:00
William S Fulton
edd9bb98e5 revert last %exception changes for C#
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6952 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-15 22:10:13 +00:00
William S Fulton
0706a82932 Fixes to SWIG_exception for C# and Java
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6951 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-15 22:09:06 +00:00
William S Fulton
0f8569d076 Latest exception fixes for properties
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6950 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-15 22:02:22 +00:00
William S Fulton
eb7b7dfd20 pending exception assertion makeover
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6949 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-15 21:59:46 +00:00
William S Fulton
5f49d9db1a Code using SWIG_exception macro will now correctly return immediately back to managed code.
When wrapping member variables, the PInvoke code is emitted before the C# code - fixes subtle bugs in typemap matching rules.
More fixes to ensure typemap matching rules work for member variable and global variable properties.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6948 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-15 21:57:15 +00:00
William S Fulton
012866444a Code using SWIG_exception macro will now correctly return immediately back to the JVM.
When wrapping member variables, the JNI code is emitted before the Java code - fixes subtle bugs in typemap matching rules.
More fixes to ensure typemap matching rules work for member variable and global variable setters.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6947 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-15 21:48:59 +00:00
William S Fulton
bd3baa1ec4 attribute node change for a future planned mod
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6946 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-15 21:03:59 +00:00
William S Fulton
5d657e01ae const warning fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6945 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-15 21:00:52 +00:00
William S Fulton
8a22867e9a Fix so the following produces compileable code like it does in other language modules:
struct XYZ{};
%{ struct XYZ{}; %}


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6944 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-15 20:59:43 +00:00
Matthias Köppe
4bbc9c18b3 *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6943 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-13 12:50:07 +00:00
Matthias Köppe
7c80d895b9 Merge patch from Torsten Landschoff <torsten@debian.org>
for improving Pike configuration.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6942 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-13 12:48:41 +00:00
Matthias Köppe
5753fdb420 Remove %apply for size_t; add %typecheck for size_t and ptrdiff_t
directly.  This fixes warnings in test case wrapmacro.

Add %typecheck for SWIGTYPE.  This fixes warnings in test cases
director_basic, extend_placement, overload_template,
template_default_arg, valuewrapper_opaque.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6941 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-13 12:30:39 +00:00
Matthias Köppe
41265040fc *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6940 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-12 16:51:44 +00:00
Matthias Köppe
c7c9fca4c7 New configure switches --without-tcl, --without-python etc. allow to
disable the search for installed languages.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6939 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-12 16:51:16 +00:00
William S Fulton
cca585acc8 New C# exceptions test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6937 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-05 00:49:22 +00:00
William S Fulton
e439980660 exceptions runtime test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6936 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-05 00:46:43 +00:00
William S Fulton
1462927909 More of the new C# exceptions
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6935 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-05 00:45:57 +00:00
William S Fulton
a78579ec3f C# exception handling improvements - they are robust and don't leak anymore. Requires typemap modifications using attribute canthrow in any unmanaged code typemaps that throw an exception and excode attribute in csout and csconstruct typemaps.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6934 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-02 22:44:32 +00:00
William S Fulton
d5faf4d89c minor name change
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6933 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-02 22:28:21 +00:00
John Lenz
3af4b2bea0 Add __attribute__ ((unsued)) to runtime functions for gcc compilers
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6932 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-01 18:58:47 +00:00
John Lenz
f414641526 - whups, fix up path to Guile.html in Changelog
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6931 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-01 00:28:48 +00:00
John Lenz
f6964f285f - Improve the runtime type sytesm
- Update all languages to new type system
- Add DohSortList function
- Fix mzscheme Examples/Makefile


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6930 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-01 00:08:24 +00:00
John Lenz
58cd593dae hide swig-initialize-return symbol in chicken exported scheme code
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6929 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-01-24 03:14:38 +00:00
John Lenz
5ee9c3b717 Cast guile enum in typemap corretly
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6928 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-01-24 03:01:09 +00:00
William S Fulton
346dc4fb11 better error message when mcs is not the Mono C# compiler
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6927 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-01-12 22:46:20 +00:00
William S Fulton
61ae82b5eb *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6926 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-01-11 22:56:48 +00:00
William S Fulton
0f88f19531 Remove unnecessary protected default constructor when there is no default proxy constructor.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6925 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-01-11 22:56:19 +00:00
William S Fulton
7ddc22dd99 new typemap: csconstruct. This typemap contains the code that goes into the proxy constructor.
The generated code is slightly different. A method called swigSetup is called during construction of the proxy object.
This is for a future change where a try finally block needs to be put around an unmanaged call during construction (for a new c++ to c# exception conversion handling mechanism)


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6924 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-01-10 22:59:08 +00:00