Commit graph

2,926 commits

Author SHA1 Message Date
William S Fulton
b6cb23c83e unnamed global enum variables support
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5927 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-05-24 20:35:16 +00:00
William S Fulton
db8c57a0b5 *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5926 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-05-24 20:32:09 +00:00
William S Fulton
5e1804c496 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@5925 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-05-24 20:22:55 +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
915454d6ef enumvalueex attribute now set during the type pass
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5923 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-05-24 20:14:58 +00:00
William S Fulton
ca13628e60 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@5922 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-05-24 20:13:55 +00:00
William S Fulton
e7777f2adb Enum typemaps taken out of java.swg
New typemap files for the different C/C++ to Java enum wrapping approaches.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5921 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-05-24 20:09:17 +00:00
William S Fulton
5767cdfa94 Enum typemaps taken out of csharp.swg.
New typemap files for the different C/C++ to C# enum wrapping approaches.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5920 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-05-24 20:08:04 +00:00
William S Fulton
b84a6d58b4 New default C/C++ enum wrapping approach which uses the type safe enum pattern for Java and C#
Also tests for Java and C# simple enums (enum items mapped to integers)
Also proper Java (J2SDK1.5) enums


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5919 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-05-24 20:05:40 +00:00
William S Fulton
ec49fab0da Further enum wrapping approaches and tests
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5918 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-05-24 20:02:56 +00:00
William S Fulton
b0bad1f717 New default Java enum wrapping approach which uses the type safe enum pattern
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5917 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-05-24 19:58:10 +00:00
William S Fulton
cdd6f1c015 *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5916 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-05-18 20:49:00 +00:00
William S Fulton
a24ecbb1a5 JVM link failure on some systems fixed when using std_vector.i.
Also adds default vector constructor for use from Java.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5915 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-05-18 20:46:13 +00:00
Matthias Köppe
68e08149ac *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5914 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-05-17 16:18:12 +00:00
Matthias Köppe
196113d2d8 [Guile] In -scm mode, wrap several SWIG runtime functions
and export them into the module (Swig swigrun).  The
	    runtime module is now built with "module" linkage.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5913 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-05-17 15:48:16 +00:00
Matthias Köppe
bfbbb57ae7 04/24/2004: mkoeppe (Matthias Koeppe)
[Guile] New runtime functions SWIG_PointerAddress,
	    SWIG_PointerType, SWIG_IsPointerOfType, SWIG_IsPointer.

	    [Guile] In -scm mode, wrap several SWIG runtime functions
	    and export them into the module (Swig swigrun).  The
	    runtime module is now built with "module" linkage.

	    [Guile] GOOPS proxy objects now also print the pointer
	    address of the C object.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5912 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-05-17 15:47:45 +00:00
Luigi Ballabio
5f4860beb0 Fixed bug [948521]
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5911 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-05-17 13:12:20 +00:00
Luigi Ballabio
d63e8e6fc3 Fixed bug [948583]
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5910 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-05-17 13:07:39 +00:00
Luigi Ballabio
f1970a552b Enable Perl automatic stringification (see 2004/05/13 post from J.Slade)
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5909 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-05-17 12:49:42 +00:00
Lyle Johnson
410af41cae 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@5908 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-05-15 04:52:43 +00:00
Lyle Johnson
aff4882c26 Added a %warnfilter to the redefined.i test case to suppress warning
message from Ruby module.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5907 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-05-15 04:43:11 +00:00
Lyle Johnson
5168f3a5d7 Added a number of %warnfilter directives to the enum_thorough.i test
to suppress warning messages from the Ruby module.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5906 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-05-15 04:37:33 +00:00
William S Fulton
9705ff87be 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@5905 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-05-12 21:18:09 +00:00
William S Fulton
b4a002dad0 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@5904 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-05-12 20:56:17 +00:00
Matthias Köppe
1924a31659 *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5903 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-05-06 09:56:43 +00:00
Matthias Köppe
dbf01e8ce1 Use the new common runtime function SWIG_TypePrettyName.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5902 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-05-06 09:55:32 +00:00
Matthias Köppe
783d69e252 New common runtime function SWIG_TypePrettyName.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5901 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-05-06 09:51:37 +00:00
Ahmon Dancy
8a7c459cda See CHANGES.current
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5900 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-05-03 17:10:20 +00:00
John Lenz
742ba1ad0d Updated chicken documentation
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5899 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-05-02 22:20:53 +00:00
John Lenz
2a575da398 Fix bug 782468
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5898 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-05-02 21:24:39 +00:00
Ahmon Dancy
1c79f74da3 Added typemaps.i
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5897 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-04-30 23:06:15 +00:00
Ahmon Dancy
fef1a09e5a Added Allegro CL module
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5896 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-04-27 23:00:41 +00:00
Matthias Köppe
8870f55a89 *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5895 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-04-27 18:38:40 +00:00
Dave Beazley
7ca6059075 Commit test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5894 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-04-27 18:11:46 +00:00
Matthias Köppe
6a70c66183 *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5893 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-04-27 17:33:52 +00:00
Matthias Köppe
e83d3d8bf8 Add new C test tag_no_clash_with_variable
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5892 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-04-27 17:33:26 +00:00
Matthias Köppe
673069df69 Use preinst-swig.
Add new C test tag_no_clash_with_variable


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5891 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-04-27 17:32:51 +00:00
William S Fulton
594773a7e3 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@5890 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-04-26 20:24:18 +00:00
Matthias Köppe
eab20219ec The typemap for FILE * in ports.i now also accepts a regular FILE *
pointer object.  Also a bug with Scheme file ports that are open for
input and output has been fixed.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5889 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-04-26 14:09:02 +00:00
Matthias Köppe
959ab00630 In -gh mode, fix the "too many initializers" error
which was caused by an incompatible swig_type_info layout.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5888 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-04-26 14:08:27 +00:00
Matthias Köppe
6ae154049f Fix typo.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5887 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-04-26 14:07:02 +00:00
Matthias Köppe
9b711ca7e6 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@5886 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-04-26 14:05:20 +00:00
Matthias Köppe
60fe29cc2a Respect DESTDIR when installing the M4 macros.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5885 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-04-26 10:24:12 +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
d346f06722 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@5883 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-04-22 20:42:37 +00:00
William S Fulton
11f26b416c Fix for unnamed enum member variables
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5882 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-04-22 20:36:13 +00:00
William S Fulton
3c7e02750a enums added for testing across different SWIG generated modules
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5881 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-04-22 20:32:48 +00:00
William S Fulton
73a69ab9b0 C# runtime tests for enums
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5880 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-04-22 20:30:02 +00:00
William S Fulton
0b2236222d More enum tests
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5879 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-04-22 20:28:53 +00:00
William S Fulton
8a5d6dc59c Added virtual_poly back in
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5878 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-04-22 20:27:56 +00:00