Commit graph

3,798 commits

Author SHA1 Message Date
William S Fulton
fa08396fbe 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/SWIG@6954 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-15 22:26:04 +00:00
William S Fulton
c9d6c1a6e3 %exception fixes for C#
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6953 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-15 22:23:59 +00:00
William S Fulton
e0a1a5231e revert last %exception changes for C#
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6952 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-15 22:10:13 +00:00
William S Fulton
c8b6a0687c Fixes to SWIG_exception for C# and Java
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6951 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-15 22:09:06 +00:00
William S Fulton
97ed6ef9f3 Latest exception fixes for properties
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6950 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-15 22:02:22 +00:00
William S Fulton
ea7207963c pending exception assertion makeover
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6949 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-15 21:59:46 +00:00
William S Fulton
1df331a843 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/SWIG@6948 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-15 21:57:15 +00:00
William S Fulton
63853d1cea 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/SWIG@6947 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-15 21:48:59 +00:00
William S Fulton
77b8c342e4 attribute node change for a future planned mod
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6946 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-15 21:03:59 +00:00
William S Fulton
ae10ce8207 const warning fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6945 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-15 21:00:52 +00:00
William S Fulton
07748b6b52 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/SWIG@6944 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-15 20:59:43 +00:00
Matthias Köppe
23ebc1ecbd *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6943 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-13 12:50:07 +00:00
Matthias Köppe
02e7e35868 Merge patch from Torsten Landschoff <torsten@debian.org>
for improving Pike configuration.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6942 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-13 12:48:41 +00:00
Matthias Köppe
05a6e3b6da 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/SWIG@6941 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-13 12:30:39 +00:00
Matthias Köppe
4cab34e1c2 *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6940 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-12 16:51:44 +00:00
Matthias Köppe
6be2451485 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/SWIG@6939 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-12 16:51:16 +00:00
William S Fulton
08806b0d9a New C# exceptions test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6937 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-05 00:49:22 +00:00
William S Fulton
92fc4c854a exceptions runtime test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6936 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-05 00:46:43 +00:00
William S Fulton
91b75b245f More of the new C# exceptions
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6935 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-05 00:45:57 +00:00
William S Fulton
bac8f43f79 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/SWIG@6934 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-02 22:44:32 +00:00
William S Fulton
df49ff9f1e minor name change
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6933 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-02 22:28:21 +00:00
John Lenz
15392cf5f7 Add __attribute__ ((unsued)) to runtime functions for gcc compilers
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6932 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-01 18:58:47 +00:00
John Lenz
dab8a2731d - whups, fix up path to Guile.html in Changelog
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6931 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-01 00:28:48 +00:00
John Lenz
c3338b1a16 - 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/SWIG@6930 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-01 00:08:24 +00:00
John Lenz
0f2ed8e655 hide swig-initialize-return symbol in chicken exported scheme code
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6929 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-01-24 03:14:38 +00:00
John Lenz
93618727bb Cast guile enum in typemap corretly
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6928 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-01-24 03:01:09 +00:00
William S Fulton
a4087923eb better error message when mcs is not the Mono C# compiler
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6927 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-01-12 22:46:20 +00:00
William S Fulton
a8ff1ac8b6 *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6926 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-01-11 22:56:48 +00:00
William S Fulton
bd4e61a935 Remove unnecessary protected default constructor when there is no default proxy constructor.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6925 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-01-11 22:56:19 +00:00
William S Fulton
17cce470f2 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/SWIG@6924 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-01-10 22:59:08 +00:00
William S Fulton
9cfc9129fd new typemap: javaconstruct. This typemap contains the code that goes into the proxy constructor.
The javaconstruct_director typemap is used instead when directors are enabled.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6923 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-01-10 22:58:39 +00:00
William S Fulton
e5addbab84 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/SWIG@6922 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-01-10 22:35:37 +00:00
William S Fulton
7a9a0e9dff new typemap: javaconstruct. This typemap contains the code that goes into the proxy constructor.
The javaconstruct_director typemap is used instead when directors are enabled.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6921 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-01-10 22:32:33 +00:00
William S Fulton
eaeada5bcc C# and Java construct typemap additions
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6920 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-01-10 22:27:11 +00:00
Marcelo Matus
dfa9bdb515 more smart pointers + extend fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6919 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-01-04 20:42:28 +00:00
Marcelo Matus
d1f4bec910 more smart pointers + extend fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6918 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-01-04 09:41:05 +00:00
Marcelo Matus
aba193e439 more fixes and cases for smart pointers
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6917 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-23 08:56:27 +00:00
Marcelo Matus
63ecf6ec37 avoid using reference value for static members, since it can generate unresolved symbols for static const
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6916 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-23 07:38:55 +00:00
Marcelo Matus
ba413fd500 more smart_pointer + static methods fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6915 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-23 01:12:07 +00:00
Marcelo Matus
4eeb33782e fix for smart_pointers + friends, fix for errant Delete
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6914 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-22 22:48:50 +00:00
Marcelo Matus
3e64c5b3c2 reenable autodoc for static methods + cosmetics
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6913 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-22 20:34:15 +00:00
Marcelo Matus
d4505309ac fix for multiple name warnings
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6912 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-22 20:32:48 +00:00
Marcelo Matus
bef269c021 fix for 'staticmethod' kw name
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6911 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-22 20:32:31 +00:00
Marcelo Matus
1bcd974a4e fix %ignore *::Bar::foo case
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6910 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-21 21:21:58 +00:00
Marcelo Matus
38f4a38509 fix varin for ptr types
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6909 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-21 20:07:16 +00:00
Marcelo Matus
56dd829f7a *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6908 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-21 08:43:49 +00:00
Marcelo Matus
6697860206 .cvsignore
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6907 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-21 08:26:01 +00:00
Marcelo Matus
2fc994e774 add test case for bug #1071279
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6906 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-21 08:03:49 +00:00
Marcelo Matus
9689cebfe8 adding more cases
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6905 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-21 07:10:54 +00:00
Marcelo Matus
c264ed2c5b fix template_deftype to work with functions
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6904 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-20 21:23:10 +00:00