William S Fulton
edcd297829
Patch to fix wrapping of templated methods. ISO compliant compilers, like
...
Comeau and GCC-3.4.0, don't like the template specifier that SWIG was generating
when calling the method. This fix may break some non standard compliant compilers,
for example, Sun workshop compilers prior to version 6.2.p2. Patch submitted
by Bill Clarke.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5975 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-06-03 22:57:27 +00:00
William S Fulton
2846e01760
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/SWIG@5969 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-06-03 22:39:16 +00:00
William S Fulton
910e6b2d54
javagetcptr and javaptrconstructormodifiers typemap replaced by the javabody/javabody_derived typemap
...
javaclassmodifiers typemap now contains the class type
jniclassclassmodifiers and moduleclassmodifiers pragmas now contain the class type
$module special variable support
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5968 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-06-03 22:38:05 +00:00
William S Fulton
3d78f49c7b
Java and C# typemap changes
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5967 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-06-03 22:30:15 +00:00
William S Fulton
5e9b3e9951
Fix for gcc-3.4.0
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5961 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-05-31 21:37:49 +00:00
William S Fulton
ac4df70a4c
typesafe enum support for storing the enum name (for ToString)
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5959 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-05-31 07:25:18 +00:00
William S Fulton
9eeda24047
typesafe enum support for storing the enum name (for toString)
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5958 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-05-31 07:24:54 +00:00
amigalemming
8e3942823f
modula3: documented some of the conceptions and typemaps, added anchors to modules I refer to
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5951 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-05-30 17:14:25 +00:00
John Lenz
acd0b021b1
Rewrite chicken example and test-suite building code
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5948 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-05-30 07:11:26 +00:00
Marcelo Matus
2febdc6ecb
more fixes for exceptions and ref.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5943 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-05-29 23:17:15 +00:00
William S Fulton
4c472ec20e
Fix for exception specifications that are references. Also improves the generated
...
exception declarations in the catch handler for pointers - a pointer is used
instead of a reference to a pointer.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5940 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-05-29 15:03:46 +00:00
Marcelo Matus
7e55132f60
Fix generation of multiple throws
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5939 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-05-29 03:34:40 +00:00
Marcelo Matus
08718830bf
fixes for const char[]
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5931 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-05-27 11:29:39 +00:00
Ahmon Dancy
e465a6ae6a
See CHANGES.recent
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5928 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-05-24 21:22:39 +00:00
William S Fulton
ca0cb04690
unnamed global enum variables support
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5927 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-05-24 20:35:16 +00:00
William S Fulton
88bee9d9df
New enum wrapping options implemented and bug fixes:
...
Proper Java enums
Typesafe enum pattern
Original approach using integers for each enum item
'Type unsafe enums' - using static final integers in a Java class named after the C/C++ enum name
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5925 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-05-24 20:22:55 +00:00
William S Fulton
97f5ccb180
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/SWIG@5924 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-05-24 20:19:36 +00:00
William S Fulton
ead1d3ac6a
enumvalueex attribute now set during the type pass
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5923 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-05-24 20:14:58 +00:00
William S Fulton
f2100be746
Unnamed enum instance in global scope fix
...
enumvalueex attribute now set during the type pass
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5922 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-05-24 20:13:55 +00:00
Lyle Johnson
fea32002a2
Incorporated Kou's patch for the Ruby module's %import directive, so
...
that nested module names are imported correctly.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5908 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-05-15 04:52:43 +00:00
William S Fulton
3ff1711d49
patch by Kevin Smith to emit directors when %feature("director") is specified for a class with no virtual methods, but a virtual destructor
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5905 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-05-12 21:18:09 +00:00
William S Fulton
ae8e4a8a6c
Removed spurious junk so the file compiles
...
strdup removed - not ANSI and not on my system
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5904 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-05-12 20:56:17 +00:00
Ahmon Dancy
53db012b12
See CHANGES.current
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5900 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-05-03 17:10:20 +00:00
John Lenz
c0a2aea4cc
Fix bug 782468
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5898 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-05-02 21:24:39 +00:00
Ahmon Dancy
7f682c8d4a
Added Allegro CL module
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5896 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-04-27 23:00:41 +00:00
William S Fulton
be3e61a82c
Revert typemaps changes for member variables (and static members and globals for some languages ).
...
The typemaps were changed to use const ref typemaps (C++ only, not C).
Inconsistency removed and the pointer typemaps used again.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5890 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-04-26 20:24:18 +00:00
Matthias Köppe
0b68c967cb
In the generated GOOPS code, don't create methods that would not
...
specialize any arguments; simply re-export the primitive functions.
(This is a performance optimization which reduces load time and
execution time.)
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5886 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-04-26 14:05:20 +00:00
William S Fulton
9ae5f973d2
%import fix for C# enums
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5884 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-04-22 20:56:48 +00:00
William S Fulton
da284c4e93
unnamed enum member variables - less verbose code generation that has a single solution for all compilers. Will only fail silently (no printfs like before) when using compiler switches that force enums to be different size to integers. If anyone ever does this, I will eat my hat
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5883 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-04-22 20:42:37 +00:00
William S Fulton
d80d8dba3b
Fix for unnamed enum member variables
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5882 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-04-22 20:36:13 +00:00
Marcelo Matus
553698d489
fix dirprot mode
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5874 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-04-11 12:20:04 +00:00
Marcelo Matus
aa33886558
error fix in lang.cxx and more comments
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5871 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-04-11 08:09:57 +00:00
Marcelo Matus
405a7335a7
fix java reg. tests and add -directors flag
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5867 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-04-11 05:55:35 +00:00
Marcelo Matus
fd1c9fb316
fix inplace python opers
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5859 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-04-09 21:58:47 +00:00
William S Fulton
41724c135f
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/SWIG@5851 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-04-09 19:41:40 +00:00
William S Fulton
7d7bf9f254
Mods for enumvalue being split into enumvalue and enumvalueex.
...
enumvalue contains the enum value for an enum item (if one given/parsed)
enumvalueex fills in the missing enum values, eg enumvalueex is set to 0 if no enum value given for the first enum item,
otherwise, contains the previous enum value + 1.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5850 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-04-09 19:37:33 +00:00
William S Fulton
1472f009ea
Fix enums in the type system
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5849 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-04-09 19:34:00 +00:00
William S Fulton
d19287dc1f
enum support function for looking up the enum node from the symbol table given any enum string type
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5848 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-04-09 19:33:05 +00:00
William S Fulton
9e495501fd
mods for adding enums to the symbol table
...
enumvalue split into enumvalue and enumvalueex
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5847 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-04-09 19:28:16 +00:00
William S Fulton
4a31a07a5b
Comments on the symbol table added
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5846 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-04-09 19:23:01 +00:00
William S Fulton
81a2cab015
enum fixes for the typesystem
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5845 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-04-09 19:22:01 +00:00
Henning Thielemann
36a1080825
fixed NIL pointer problem for 'generaterename', nameToModula3 creates capitals after digits
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5844 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-04-08 16:05:57 +00:00
Marcelo Matus
3c0fe7cae7
fix array + typedef
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5827 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-04-03 08:45:22 +00:00
William S Fulton
87df1f880e
Fixes to compile under VC++ 6:
...
enum block_type needs to be public
can't use any + operators on enums
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5821 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-04-01 20:42:30 +00:00
Henning Thielemann
92dbf178bc
made enum block_type a protected member of class MODULA3, hope that VC++ 6 is satisfied with that
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5818 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-04-01 15:49:16 +00:00
Marcelo Matus
be560544f5
fix casting type
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5814 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-04-01 03:58:47 +00:00
Marcelo Matus
e7f9a34649
slightly better support for template const/dest and features
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5811 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-03-31 11:29:54 +00:00
Marcelo Matus
e00522f427
added support for unnamed C++ enum members
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5805 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-03-31 01:35:44 +00:00
Marcelo Matus
e74ce651ca
better support for member vars
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5794 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-03-28 14:05:53 +00:00
Marcelo Matus
2e50998bd0
fixes some compiler warnings, and add better support
...
for member variables (in C++/python).
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5793 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-03-28 14:04:36 +00:00