Commit graph

819 commits

Author SHA1 Message Date
Mark Rose
ec6251e86d Abstract directors and typemap fixes.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5024 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-08-30 05:03:34 +00:00
William S Fulton
49b83f44ed Support for throwing C# exceptions from C/C++ - $module special variable.
Pinvoke method's calling convention fix.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5020 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-08-29 20:09:32 +00:00
Dave Beazley
2ff7dfb6c1 Work on embedded typemaps. Highly experimental--probably broken
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5007 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-08-17 21:19:27 +00:00
Dave Beazley
f133111e79 Warning cleanup. Etc.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5003 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-08-15 19:37:27 +00:00
Dave Beazley
c4a60c1415 Fixed [ 763522 ] 1.3.19 segfault in SwigType_add_pointer/DohInsertitem.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5000 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-08-15 18:22:08 +00:00
Dave Beazley
d40a0551d4 Fixed [ 763563 ] Missing indication of optional arguments
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4998 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-08-15 18:11:36 +00:00
Dave Beazley
d447d2fd5e Fixed [ 775989 ] numeric template parameters
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4994 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-08-11 19:24:31 +00:00
Dave Beazley
5f9849dfbb Further patch to :: space handling.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4991 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-08-11 17:55:04 +00:00
Mark Rose
c64a331078 Directors ignore private ctors
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4988 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-08-11 01:05:05 +00:00
William S Fulton
7841619e84 Fix for windows. Files were not being generated into the correct directories if the Windows path separator was used. The Unix separator '/' had to be used.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4982 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-08-07 17:24:54 +00:00
William S Fulton
6c71e9d478 -outdir commandline option support => directory for proxy class and other language specific files
-help tidy up


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4981 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-08-07 17:22:12 +00:00
Dave Beazley
16d2a79297 Fixed [ 779062 ] Class"\n"::foo not supported.
Also changed 'char' to 'int' in a few places to silence warning messages.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4977 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-08-07 15:46:00 +00:00
William S Fulton
10b159e22a Added preprocessor symbols
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4946 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-07-04 21:47:56 +00:00
Matthias Köppe
bf148400e2 Compute output file name correctly in C mode.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4942 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-07-01 18:34:48 +00:00
Matthias Köppe
7618adb70f Handle the case of more than one "argout" typemap per function.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4940 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-07-01 17:00:04 +00:00
William S Fulton
72b7dccc08 C# warning correction
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4935 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-29 21:55:33 +00:00
William S Fulton
d038325759 Changed Swig_typemap_attach_kwargs to have global scope
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4934 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-29 21:54:44 +00:00
William S Fulton
a7fa8d86cc New typemap attribute which specifies the destructor wrapper method name thus making the wrapper method name configurable.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4933 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-29 21:52:26 +00:00
William S Fulton
2ef3a59918 throws attribute working for javain, javaout (Java), csout, csin (C#) and newfree typemaps
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4929 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-27 13:14:08 +00:00
Mark Rose
9b9680f3ac multiargument director typemap segfault fix (python)
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4928 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-26 09:46:32 +00:00
William S Fulton
c13a3081b3 warning fix
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4925 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-25 09:36:59 +00:00
Matthias Köppe
172eeea6c4 From felix@proxima-mt.de:
The module for generating wrappers for the Chicken
Scheme system contains a small bug: the wrappers
should not contain calls to "C_check_for_interrupt",
which may result in an endless loop.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4922 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-24 16:24:02 +00:00
Matthias Köppe
ac6e7eaa44 (tmop_name): Fix for the case of a String *op.
This fixes the Guile testcase pointer_in_out (and others).


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4913 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-18 13:18:01 +00:00
William S Fulton
c8d1feb8a0 Java output formatting change and tweak to protected/private destructors
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4902 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-12 19:46:27 +00:00
William S Fulton
4667d7bf2a C# typemap name change twiddle
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4897 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-12 12:32:08 +00:00
William S Fulton
2cdbe141cb Added C# warnings
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4894 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-12 11:48:54 +00:00
William S Fulton
f417d91bf0 More generic variable names matching the C# module, so that next time the module is copied it will making porting more easy.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4893 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-12 11:47:01 +00:00
William S Fulton
4795f0012b Update so that the module doesn't look like it is wrapping Java! Variable name changes, comments etc modified.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4892 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-12 11:45:04 +00:00
William S Fulton
b983da351d A number of the C# features, pragmas and typemaps have had their names changed.
They no longer have java or jni in their names. CHANGES file has complete list.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4890 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-11 19:52:27 +00:00
William S Fulton
10578504db Tweak for protected and private destructor wrapping
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4886 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-11 09:15:06 +00:00
William S Fulton
6b4726769b New typemaps csinterfaces_base and csinterfaces_derived replace
the javainterfaces typemap. Also fixes the peculiarity of all classes
in an inheritance chain individually deriving from the IDisposable
interface.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4884 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-10 23:09:47 +00:00
Matthias Köppe
f2ddd864a3 Merged MzScheme changes contributed by John Lenz.
Minor build changes to fix MzScheme/C++ test cases.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4881 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-10 21:58:02 +00:00
William S Fulton
191a2cc071 cildispose and cildisposeoverride typemaps replaced by
csdestruct_base and csdestruct_derived typemaps. The delete()
method has been removed and its functionality put into these
typemaps designed for the Dispose method.
New typemaps: csfinalize for finalizers.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4877 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-10 21:43:58 +00:00
William S Fulton
9cccf88afa New typemaps: javadestruct_base and javadestruct_derived
for the C++ destructor wrapper. The _base version gets used by
classes at the top of an inheritance chain and the _derived
version gets used by other classes.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4876 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-10 21:40:26 +00:00
Tiger Feng
3a8c2f2a94 *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4875 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-10 21:12:35 +00:00
Art Yerkes
e52692df6f Small correction to templating support.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4873 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-08 04:32:52 +00:00
Art Yerkes
dd64ccf0ae Added class template support (removes text of ocaml class definition from swig
executable).  Now, changes to the implementation of classes can be made without
affecting SWIG itself.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4872 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-08 03:49:09 +00:00
Logan Johnson
bd35c8a679 *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4864 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-05 17:02:45 +00:00
Logan Johnson
0081cb26ef *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4863 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-04 23:36:13 +00:00
Logan Johnson
22d7c12c26 Broke up Swig_typemap_attach_parms() a bit for readability.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4862 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-04 23:29:12 +00:00
Matthias Köppe
e5ac3696bc Merged first chunk of Guile changes contributed by John Lenz.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4858 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-03 22:12:50 +00:00
Logan Johnson
e59742f9c6 Corrected an error for exception handling in Ruby's director implementation.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4855 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-03 17:53:24 +00:00
Logan Johnson
543608147d Whoops, use rb_exc_raise() instead of rb_raise() to re-raise a "live"
exception.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4849 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-02 21:46:56 +00:00
Logan Johnson
60ded6c0c2 Fixed a bug in the Ruby director code for the handling of deeply nested
exceptions; now they should just be re-raised until they percolate to the
top.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4848 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-02 21:41:34 +00:00
William S Fulton
1258f2e703 Matched the text for warnings 462 and 463 to that shown in the docs.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4841 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-01 22:53:38 +00:00
William S Fulton
da34e63066 Re-introduces warning for missing globalin and memberin typemaps. Same warning as missing varin typemap.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4840 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-01 22:52:28 +00:00
William S Fulton
2273c21b57 Re-instated warning about except typemap deprecation
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4838 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-01 18:09:41 +00:00
Dave Beazley
1d590457ba Cleanup.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4834 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-05-29 18:29:01 +00:00
Dave Beazley
fcc42fa5a6 Fixes to default typemap handling of arrays.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4833 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-05-29 18:28:46 +00:00
Dave Beazley
6c5a5ac719 Changes to default type handling to disambiguate dimensionless [] and
dimensioned arrays [ANY].


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4832 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-05-29 18:28:31 +00:00