Commit graph

1,122 commits

Author SHA1 Message Date
William S Fulton
8b804fddcf const fix
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6170 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-08-29 22:02:31 +00:00
William S Fulton
70891c9867 Fixes for -fmicrosoft error/warning message display:
- EOF not displaying in correct format
- Some error messages containing a path were using a double backslash instead of a single backslash


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6161 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-08-27 21:34:41 +00:00
Lyle Johnson
f5ae188494 Corrected a bug which caused Ruby exceptions to not be correctly
converted into C++ exceptions for director classes.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6160 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-08-27 02:20:26 +00:00
William S Fulton
2b8acdf5a8 added %perlcode directive, patch from Fabrice Salvaire
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6155 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-08-26 21:02:47 +00:00
William S Fulton
6e766985cc Fix for directors when wrapping virtual methods with exception specifications
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6154 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-08-26 20:59:25 +00:00
William S Fulton
634304dc98 Sun Workshop warning fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6148 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-08-25 20:45:56 +00:00
William S Fulton
8e3e5bd0ce Sun Workshop warning fixes
Use new not malloc in C++ code


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6147 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-08-25 20:45:23 +00:00
William S Fulton
0948c97ac2 typo
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6143 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-08-24 22:52:36 +00:00
William S Fulton
afb2721ab4 copyright update and typo in -help
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6137 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-08-24 22:14:25 +00:00
William S Fulton
8f1a476448 const fixes for allegro module usage
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6136 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-08-24 21:48:46 +00:00
William S Fulton
9bafb579c7 Fix so that this file compiles
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6135 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-08-24 21:47:54 +00:00
William S Fulton
e203a700c2 pesky warning fix
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6134 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-08-24 21:46:22 +00:00
John Lenz
faf48cb585 move pragma_include to below the EXPORT line in perl module.
This is patch 922680.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6120 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-08-24 01:12:45 +00:00
William S Fulton
4c02e7cc0e Fix for enum forward declarations
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6117 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-08-23 20:10:51 +00:00
William S Fulton
cf79d771c0 Applied patch #1011604 submitted by Charles Schwieters. Fix for 64 bit tcl interpreters.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6116 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-08-23 20:05:51 +00:00
Matthias Köppe
23d5f2ab9a Replace hardcoded type specifiers by typemap-based type specifier lookup.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6114 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-08-23 15:28:58 +00:00
John Lenz
1980a5cbdf Fix some perl warnings reported by Steve Fink and also attached to patch 960326.
I had to pass -Wall -Wextra to gcc to generate the warnings fixed by this patch.

VS: ----------------------------------------------------------------------


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6111 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-08-23 07:16:30 +00:00
Matthias Köppe
7aa78df689 <Dmitriy.Zavin@infineon.com> writes:
> I have hacked support to create native mzscheme structures from C
> structures, which includes native structure support.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6102 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-08-17 14:21:33 +00:00
William S Fulton
16a711e90f Fixes to compile on some buggy Redhat gcc 2.96 versions
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6089 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-08-12 21:12:21 +00:00
Ahmon Dancy
440a4592e3 case mode fixes for allegrocl module
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6070 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-08-03 23:07:45 +00:00
William S Fulton
a03dad3a41 XML patch from Robin Dunn adds -dump_xml and -xmlout <file> for generating XML of post processed parse tree
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6037 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-07-12 19:53:23 +00:00
William S Fulton
b13b4faa6e director enum fixes from Scott Michel
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6035 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-07-12 19:46:45 +00:00
William S Fulton
eafe8d5abf missing ;
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6034 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-07-12 19:46:10 +00:00
Lyle Johnson
6b6f802ccb Committed Kou's patch for the Ruby module (for the -prefix command line
option). Also updated the Ruby docs accordingly.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6029 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-07-11 18:32:43 +00:00
William S Fulton
bd9e48e922 -ldflags option removed for removed prebuilt runtime library
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6025 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-07-10 16:42:54 +00:00
Matthias Köppe
d3f5dba725 Convert character and string literals to CL syntax.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6015 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-07-07 16:54:11 +00:00
William S Fulton
e00693aa8e Support for %javaconstvalue added (better compile time constants)
Support for %feature("except", throws="ExceptionClass") so that any Java exception classes thrown from JNI code can be added to the throws list - handled in the same way as the 'throws' attribute in typemaps.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6000 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-06-27 21:00:05 +00:00
William S Fulton
e86362442a Support for %csconstvalue added (better compile time constants)
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5999 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-06-27 20:56:54 +00:00
William S Fulton
f7306ec0cb New feature attributes added
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5998 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-06-27 20:53:22 +00:00
William S Fulton
e2454484ba 1)
%feature improvements for the syntax that takes the feature value within the
            %feature() brackets. The value specified is no longer restricted to being just
            a string. It can be a string or a number. For example, this is now acceptable
            syntax:
              %feature("featurename",20.0);
            whereas previously it would have to have been:
              %feature("featurename","20.0");
            Useful for features that are implemented as a macro, for example:
              #define %somefeature(value)      %feature("somefeature",value)
            These will now work accepting either a string or a number:
              %somefeature("Fred");
              %somefeature(4);

2)
            %feature enhancements. Features can now take an unlimited number of attributes
            in addition to the feature name and feature value. The attributes are optional
            and are much the same as the typemap attributes. For example, the following
            specifies two optional attributes, attrib1 and attrib2:

             %feature(featurename, attrib1="attribval1", attrib2="attribval2") name "val";
             %feature(featurename, val, attrib1="attribval1", attrib2="attribval2") name;


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5997 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-06-27 20:48:57 +00:00
John Lenz
60f4c8988e The guile and chicken _runme scripts are now shared
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5979 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-06-07 05:03:39 +00:00
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