William S Fulton
83247f3df4
-dllimport commandline option and $dllimport special variable to specify the DllImport attribute
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6501 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-25 20:43:32 +00:00
John Lenz
4645346381
Removed ability to share type information by C linking
...
All type sharing happens through a global variable in the target language.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6390 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-16 18:23:59 +00:00
William S Fulton
06c6ab33f8
Fixes to compile on some buggy Redhat gcc 2.96 versions
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6089 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-08-12 21:12:21 +00:00
William S Fulton
56182e04f1
Support for %csconstvalue added (better compile time constants)
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5999 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-06-27 20:56:54 +00:00
William S Fulton
ad46ed2214
csgetcptr and csptrconstructormodifiers typemap replaced by the csbody/csbody_derived typemap
...
csclassmodifiers typemap now contains the class type
imclassclassmodifiers and moduleclassmodifiers pragmas now contain the class type
$module special variable support
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5969 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-06-03 22:39:16 +00:00
William S Fulton
0517402cea
typesafe enum support for storing the enum name (for ToString)
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5959 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-05-31 07:25:18 +00:00
William S Fulton
3e9b0bde05
New enum wrapping options implemented and bug fixes:
...
Proper C# enums
Typesafe enum pattern
Original approach using integers for each enum item
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5924 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-05-24 20:19:36 +00:00
William S Fulton
18ad5f64b1
%import fix for C# enums
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5884 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-04-22 20:56:48 +00:00
William S Fulton
5b0ea529f9
C++ enums are no longer wrapped by integers, they are now wrapped by C# enums.
...
For Example, given C++:
enum AnEnum { foo, bar };
typedef AnEnum AnEnumeration;
void something(AnEnum e, AnEnumeration f);
The following is generated:
public enum AnEnum {
foo,
bar
}
public static void something(AnEnum e, AnEnum f) {...}
See the changes file for further details
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5851 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-04-09 19:41:40 +00:00
William S Fulton
9f9ba96e8e
New commandline option -namespace for putting all generated classes into a C# namespace.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5739 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-02-24 21:05:48 +00:00
William S Fulton
aed0e94056
Bill Hoffman patch to stop crashing when typewrapper class cannot be created. Overloading fixes for when methods cannot be disambiguated.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5712 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-02-12 21:48:37 +00:00
William S Fulton
238e948bbe
Eric Sunshine patch - Mods to work on NextStep
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5674 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-22 22:42:18 +00:00
William S Fulton
cf3a5e6222
Covariant return type fixes...
...
Fixed error where the base class was being used to wrap the derived class C++ pointer.
Emit a warning when encountering these return types as the return type is changed to the base class type.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5590 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-23 21:46:56 +00:00
William S Fulton
baa06d2509
%javamethodmodifiers (java) and %csmethodmodifiers (C#) operate slightly differently.
...
Previously this had to be present to set the method modifiers. Now this feature is only
used if it exists for the method being wrapped. The default is "public" as previous
however, when wrapping protected director methods it is "protected".
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5553 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-13 00:13:10 +00:00
William S Fulton
6acb22fbfc
Marcelo's suggestion for fixing polymorphic methods that return a polymorphic type.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5524 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-09 22:13:31 +00:00
William S Fulton
e6b5758132
Use classtypeobj instead of classDeclaration:name for typemap searches.
...
Thanks Dave.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5462 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-12-02 22:16:00 +00:00
William S Fulton
8d7f52dfc6
Contract assert macro modification to handle void and non-void return types
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5339 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-18 22:38:34 +00:00
William S Fulton
f68fc2ee6e
$module name substitution to enable name mangling with the module name for the delegate registering functions.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5224 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-01 00:48:32 +00:00
William S Fulton
57122ae799
void* used instead of int for IntPtr in C function declarations
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5192 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-10-16 21:34:38 +00:00
Dave Beazley
4cf4dad108
Major refactoring of DOH List/Hash iterators. See CHANGES
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5101 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-09-11 20:26:57 +00:00
William S Fulton
dd03b228c6
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@5020 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-08-29 20:09:32 +00:00
William S Fulton
06ed231b7d
-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@4981 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-08-07 17:22:12 +00:00
William S Fulton
b03c08d211
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@4933 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-29 21:52:26 +00:00
William S Fulton
c89e7d9923
throws attribute working for javain, javaout (Java), csout, csin (C#) and newfree typemaps
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4929 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-27 13:14:08 +00:00
William S Fulton
1e2e0d140c
Java output formatting change and tweak to protected/private destructors
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4902 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-12 19:46:27 +00:00
William S Fulton
11395c5a82
C# typemap name change twiddle
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4897 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-12 12:32:08 +00:00
William S Fulton
ffcf1342db
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@4892 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-12 11:45:04 +00:00
William S Fulton
3c2f9d8057
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@4890 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-11 19:52:27 +00:00
William S Fulton
5d4984f150
Tweak for protected and private destructor wrapping
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4886 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-11 09:15:06 +00:00
William S Fulton
f15e005915
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@4884 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-10 23:09:47 +00:00
William S Fulton
b643048800
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@4877 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-10 21:43:58 +00:00
William S Fulton
be92467534
Fix for proxy class typemaps so that they use the C++ type and not the proxy class name.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4786 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-05-11 21:37:52 +00:00
William S Fulton
d6169061d6
constants and enums are wrapped as C# constants rather than variables now
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4663 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-04-03 15:31:19 +00:00
William S Fulton
310616de42
warning fix
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4634 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-03-27 00:33:41 +00:00
William S Fulton
4d0e36332f
Reserved word checking removed - a #define can be used in interface instead
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4583 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-03-19 23:02:51 +00:00
William S Fulton
53f8457aa6
vararg support for Java and C#
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4575 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-03-19 20:44:33 +00:00
William S Fulton
cc0b2585f3
Global variables use properties instead of get and set functions.
...
All member variables working as properties.
pragma used for module class and pinvoke class import statements
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4539 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-03-15 22:47:28 +00:00
William S Fulton
1645ab51b0
Missing using System; statement in the module class, needed by mono compiler
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4533 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-03-12 23:09:39 +00:00
William S Fulton
8bb8521a46
Virtual methods in C# proxy classes now use the appropriate keyword, virtual or override.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4526 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-03-12 20:42:52 +00:00
William S Fulton
3d030619ba
Java module enhancements/bug fixes since the C# module was derived off the Java one.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4501 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-03-10 19:47:38 +00:00
Dave Beazley
d060c1b248
Enhancement to Swig_require(), Swig_save(), Swig_restore()
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4436 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-03-06 21:10:49 +00:00
William S Fulton
db718e8ed3
Remove package statement when using -package commandline. Perhaps this needs to be replaced by assemblies? Gets the test-suite under way for the moment.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4430 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-03-04 22:35:29 +00:00
William S Fulton
3327e7095c
gcc -Wall warnings fix
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4426 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-03-03 23:29:53 +00:00
William S Fulton
e451d3f145
CSharp module. Neil Cawse version.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4421 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-03-03 20:26:07 +00:00
Tiger Feng
22290a6768
csharp module added
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4376 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-02-21 20:34:52 +00:00
Tiger Feng
c6de639fa7
*** empty log message ***
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4375 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-02-21 19:39:27 +00:00