Commit graph

1,240 commits

Author SHA1 Message Date
Olly Betts
9abc24813b Fix --help output to note that `export SWIG_FEATURES' is required.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10095 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-11-09 08:59:44 +00:00
William S Fulton
1b908b175e Fix uninitialised variables, generation of illegal C variable names and seg fault on Windows.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10092 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-11-08 21:41:25 +00:00
Mark Gossage
0c2bbb25a3 [lua] fixed bug in template classes which cases template_default2 and template_specialization_defarg to fail.
Added several warning filters into the overload's test cases.
Added runtime tests for several codes.
You can now make check-lua-test-suite with no errors and only a few warnings.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10076 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-30 06:10:04 +00:00
Olly Betts
cc879f7c29 [lua] Fix swig_lua_class instances to be static to allow multiple
SWIG wrappers to be compiled into the same executable statically.
Patch from Andreas Fredriksson (posted to the swig mailing list).


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10068 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-29 00:02:20 +00:00
William S Fulton
421eb7ae60 New templated method SwigValueInit to initialise all types - used initially for return types in director methods
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10063 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-28 23:07:33 +00:00
Joseph Wang
3b9574953c Fix so that it works for 2.6 and 2.5
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10059 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-28 18:21:44 +00:00
John Lenz
4ace915a56 Chicken test suite now runs with no errors
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10054 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-26 23:08:34 +00:00
Joseph Wang
47b3c8e8fb Change to fit 2.5.1
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10050 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-26 01:16:31 +00:00
William S Fulton
e49c07014d Correct usage of Py_ssize_t
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10040 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-25 22:33:20 +00:00
Joseph Wang
54f0b11ddf Add "freearg" template
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10037 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-25 11:30:11 +00:00
Joseph Wang
410da5ce73 Tweaks to fix errors in r module code
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10035 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-25 04:06:22 +00:00
William S Fulton
fa72166164 warning fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10020 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-22 21:31:09 +00:00
William S Fulton
30964be253 Fix uninitialised variable usage on error in director methods. Minor formatting change for director methods variable declaration.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10019 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-22 21:30:19 +00:00
William S Fulton
a43e50ac07 fix generated code for derived classes when csbase or javabase typemaps are used with the replace=1 attribute.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10016 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-19 21:48:05 +00:00
William S Fulton
fe042d2ebc Replace cvs $Header$ with svn $Id$
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10003 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-17 21:42:11 +00:00
Olly Betts
a1ae35b43f Revert this fix unless ZEND_RAW_FENTRY is defined (it was added in
PHP 5.2.<something>):

    [PHP] Fix many occurrences of "warning: deprecated conversion from
    string constant to 'char*'" from GCC 4.2 in generated C/C++ code.

Use zend_function_entry rather than function_entry in generated code.
The later only exists for compatibility with PHP3!


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9997 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-17 17:25:15 +00:00
Olly Betts
10c6e1064d [Tcl] Fix several ocurrences of "warning: deprecated conversion
from string constant to 'char*'" from GCC 4.2 in generated C/C++
code.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9993 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-16 22:12:44 +00:00
Olly Betts
1b1334815c [PHP] Fix many occurrences of "warning: deprecated conversion from
string constant to 'char*'" from GCC 4.2 in generated C/C++ code.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9992 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-16 21:39:37 +00:00
William S Fulton
ad1a72f834 Remove incorrect license in generated code. See swig-devel mailing 'licence issue' thread
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9986 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-12 21:44:18 +00:00
William S Fulton
2c46b7832c Strip C comments from the java typemaps when determining to use the premature garbage collection prevention parameter
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9982 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-12 21:31:22 +00:00
William S Fulton
76fdf15ff8 comment fix
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9974 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-09 23:24:07 +00:00
Olly Betts
2fffdd118a [php] Fix long-standing memory leak in wrapped constructors and
wrapped functions/methods which return an object.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9969 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-09 18:12:42 +00:00
Olly Betts
3777b685a6 Fix many instances of "delimeter" to "delimiter".
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9967 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-08 12:02:56 +00:00
William S Fulton
75b1e083cf Fix warning display of templated base classes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9962 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-09-30 19:27:40 +00:00
Mark Gossage
6a70b4adc7 [lua] move verbose error checks, more test cases, reorg of luatypemaps.swg
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9958 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-09-27 05:36:25 +00:00
William S Fulton
8a17d9dcfa Back out valueparm attribute in the csvarin typemap. Add example usage of temporary variables in the csvarin typemap into docs. Modify CDate C# example. Add in special variable expansion in the csvarin typemap.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9949 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-09-21 23:58:00 +00:00
William S Fulton
d737022daa More flexible variable wrappers (C# properties). The property set can now support a different type to that used in the intermediary layer. This is achieved by using a temporary variable and specifying the name of the temporary variable in a new 'valueparm' attribute in the csvarin typemap. Also Fix bug reported by Glenn A Watson and #1795260 where the cstype typemap used the 'ref' keyword in the typemap body. The type for the property now correctly comes from the 'out' attribute in the cstype typemap.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9946 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-09-19 23:54:19 +00:00
William S Fulton
7199cf2ef0 Ensure the premature garbage collection prevention parameter (pgcpp) is generated for Java wrappers
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9943 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-09-19 23:17:50 +00:00
Olly Betts
cb4c23fde1 [python] Split potentially long string literals to avoid hitting
MSVC's low fixed limit on string literal length - patch from
SF#1723770, also reported as SF#1630855.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9940 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-09-18 00:50:20 +00:00
Olly Betts
b8c6a5c0d2 [ocaml] Fix renaming of overloaded methods in the method_table -
my patch from SF#940399.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9939 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-09-18 00:18:39 +00:00
William S Fulton
9b79e76d93 Fix ignore on implicit constructors
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9934 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-09-07 22:10:03 +00:00
William S Fulton
87577ab5e6 new -Werror option and fixes for turning on warnings which are normally turned off
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9922 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-08-31 22:20:21 +00:00
William S Fulton
d9b34d6112 add new debug commandline options for displaying the parse tree at different stages of processing and deprecate old equivalents
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9919 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-08-28 20:19:14 +00:00
William S Fulton
b0c537e4c6 fix alphabetical order
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9918 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-08-28 20:17:08 +00:00
Olly Betts
f66899a3bd Can't use (double) cast in PHP default value, so rework.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9916 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-08-25 16:03:24 +00:00
Olly Betts
437bc4d61e [PHP5] Fix handling of double or float parameters with an integer default value.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9914 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-08-25 13:53:27 +00:00
Olly Betts
e59dbf74f2 [PHP5] Generate __isset() methods for setters for PHP 5.1 and later.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9913 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-08-25 13:11:25 +00:00
Olly Betts
9b851f3f55 Eliminate unused parameters on calls to Printf()
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9912 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-08-25 13:05:44 +00:00
Olly Betts
8f4f895651 Fix comment typo
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9911 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-08-23 15:21:11 +00:00
Olly Betts
c1b5afa09b Remove bogus unused parameter from Printf call.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9910 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-08-23 15:15:24 +00:00
William S Fulton
2824efe6ba Fix bug #1776651 - bug when the director class name is similar to other symbols being used
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9908 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-08-20 19:48:45 +00:00
William S Fulton
3fd28bf45c Correct behaviour for templated methods used with %rename or %ignore and %template()
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9906 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-08-17 20:42:19 +00:00
Mikel Bancroft
3cedba5291 [allegrocl] see CHANGES.current
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9901 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-08-16 18:39:50 +00:00
John Lenz
fb51964d01 Fix a bunch of minor bugs found by Coverity scanner
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9889 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-08-10 02:55:27 +00:00
William S Fulton
aa32a6b094 Add support for in the out typemaps.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9885 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-08-09 22:17:12 +00:00
William S Fulton
6a13675c16 Fix smart pointers and member methods
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9881 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-08-01 00:07:23 +00:00
Surendra Singhi
43fe81ce1a changed package name clos to cl
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9879 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-07-31 17:18:27 +00:00
Surendra Singhi
3aaa08c856 fixed memory freeing bug, removed tabs
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9878 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-07-31 17:08:12 +00:00
William S Fulton
1160c80a01 dead code fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9866 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-07-17 22:31:57 +00:00
William S Fulton
67f9ff66c9 dead code fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9865 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-07-17 22:29:48 +00:00