William S Fulton
ab006f5428
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/SWIG@6969 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-17 22:19:16 +00:00
William S Fulton
f149a9f3d1
swig -help prints to stdout not stderr now
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6964 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-15 23:04:10 +00:00
William S Fulton
5e287b52f7
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/SWIG@6963 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-15 23:02:44 +00:00
William S Fulton
3c6559fe47
const warning fixes
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6956 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-15 22:28:43 +00:00
William S Fulton
e27dfb8739
revert to original typemap matching rules for now
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6955 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-15 22:27:09 +00:00
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
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
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
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
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
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
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
38ddd05b30
fix template_deftype to work with functions
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6903 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-20 21:16:13 +00:00
Marcelo Matus
5a0f780ba4
fix typemap search, now you can add a typemap like %typemap(out) int *Foo::foo(int bar);
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6900 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-19 23:03:14 +00:00
Marcelo Matus
db783afdc6
fix typemap search, now you can add a typemap like %typemap(out) int *Foo::foo(int bar);
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6899 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-19 22:54:40 +00:00
Marcelo Matus
7cb488e057
avoid using of temporal value for wrapping type user + const reference argument
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6895 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-18 05:57:08 +00:00
Marcelo Matus
0ac8253c3f
fixes for templates and template default args, cosmetics, and other fixes for OSS
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6893 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-16 02:12:05 +00:00
William S Fulton
2cb0999e75
More improved warnings for duff base classes
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6877 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-14 21:25:12 +00:00
Marcelo Matus
25d65e6ce9
fix warning for forward base class
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6876 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-14 06:47:19 +00:00
William S Fulton
2c9b275568
Sun Workshop compiler fix
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6874 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-13 22:41:13 +00:00
Marcelo Matus
3658b9adb9
warning fixes
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6873 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-13 22:12:48 +00:00
Marcelo Matus
c98340f0a7
fix directorout typemap for const std::string&. Adding warning about the new typemap, which is not thread safe
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6872 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-13 20:22:19 +00:00
John Lenz
34f84e562d
Chicken: Export proxy function for constants (enums, defines)
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6868 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-13 02:01:26 +00:00
John Lenz
950ecdc961
Chicken: Fix bug when exporting non-class variables using -proxy
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6865 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-12 21:50:42 +00:00
John Lenz
69076dd0da
Added a -nounit argument, which does not export the (declare (unit ...))
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6863 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-12 21:38:20 +00:00
John Lenz
01e134d72a
- static class member functions now get exported with -proxy.
...
- member variables of other classes now works properly in goops.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6862 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-12 08:11:02 +00:00
Marcelo Matus
37c727888b
fixes for operator*()
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6858 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-11 10:20:05 +00:00
Marcelo Matus
c5f1c1bdf9
more smart_pointer fixes + cases
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6844 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-07 23:32:11 +00:00
William S Fulton
1d9ee1ed57
small tweak to canonicalizeJNIDescriptor()
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6843 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-07 23:24:13 +00:00
William S Fulton
deaf8c681f
new directorconnect and directorconnect_derived typemaps
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6840 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-07 23:04:54 +00:00
William S Fulton
347f342fab
tidyup
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6839 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-06 22:53:09 +00:00
Marcelo Matus
db5a9e2140
fix smart_pointer + extend
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6835 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-06 06:58:41 +00:00
Marcelo Matus
6b499410dd
more fixes for template + def args
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6833 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-05 10:15:25 +00:00
Marcelo Matus
1c382fe97b
old extra fix for valuewrapper
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6832 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-04 08:33:39 +00:00
Marcelo Matus
a94cb015c7
mix patches #748861 and #1041174 for %extend generation code
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6831 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-12-04 08:33:03 +00:00