Fixes bug #1560092. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9333 626c5289-ae23-0410-ae9c-e8d60b6d4f22
280 lines
11 KiB
Text
280 lines
11 KiB
Text
Version 1.3.30 (in progress)
|
|
============================
|
|
|
|
09/23/2006: olly
|
|
[Ruby] Support building with recent versions of the Ruby 1.9
|
|
development branch. Fixes bug #1560092.
|
|
|
|
09/23/2006: olly
|
|
Templates can now be instantiated using negative numbers and
|
|
constant expressions, e.g.:
|
|
|
|
template<int q> class x {};
|
|
%template(x_minus1) x<-1>;
|
|
%template(x_1plus2) x<1+2>;
|
|
|
|
Also, constant expressions can now include comparisons (>, <, >=,
|
|
<=, !=, ==), modulus (%), and ternary conditionals (a ? b : c).
|
|
|
|
Fixes bugs #646275, #925555, #956282, #994301.
|
|
|
|
09/22/2006: wsfulton
|
|
Fix %ignore on director methods - Bugs #1546254, #1543533
|
|
|
|
09/20/2006: wsfulton
|
|
Fix %ignore on director constructors
|
|
|
|
09/20/2006: wsfulton
|
|
Fix seg faults and asserts when director methods are ignored (#1543533)
|
|
|
|
09/20/2006: wsfulton
|
|
Fix out of source builds - bug #1544718
|
|
|
|
09/20/2006: olly
|
|
Treat a nested class definition as a forward declaration rather
|
|
than ignoring it completely, so that we generate correct code for
|
|
passing opaque pointers to the nested class (fixes SF bug #909387).
|
|
|
|
09/20/2006: olly
|
|
*** POTENTIAL INCOMPATIBILITY ***
|
|
[php] Overload resolution now works. However to allow this, SWIG
|
|
generated wrappers no longer coerce PHP types (which reverts a change
|
|
made in 1.3.26). So for example, if a method takes a string, you
|
|
can no longer pass a number without explicitly converting it to a
|
|
string in PHP using: (string)x
|
|
|
|
09/18/2006: mgossage
|
|
[ALL] fix on swiginit.swg, has been reported to crash on several test cases
|
|
found and fixed problem in imports under python (mingw)
|
|
|
|
09/16/2006: wsfulton
|
|
[Python] Patch from Michal Marek for Python 2.5 to fix 64 bit array indexes on
|
|
64 bit machines.
|
|
|
|
09/13/2006: wsfulton
|
|
The explicitcall feature has been scrapped. This feature was introduced primarily
|
|
to solve recursive director method calls. Director upcall improvements made instead:
|
|
|
|
[Python, Ruby, Ocaml] The swig_up flag is no longer used. The required mutexes
|
|
wrapping this flag are also no longer needed. The recursive calls going from C++
|
|
to the target language and back again etc are now avoided by a subtlely different
|
|
approach. Instead of using the swig_up flag in each director method to indicate
|
|
whether the explicit C++ call to the appropriate base class method or a normal
|
|
polymorphic C++ call should be made, the new approach makes one of these calls
|
|
directly from the wrapper method.
|
|
|
|
[Java, C#] The recursive call problem when calling a C++ base class method from
|
|
Java/C# is now fixed. The implementation is slightly different to the other languages
|
|
as the detection as to whether the explicit call or a normal polymorphic call is made
|
|
in the Java/C# layer rather than in the C++ layer.
|
|
|
|
09/11/2006: mgossage
|
|
[ALL] updated swiginit.swg to allow multiple interpreters to use multiple
|
|
swig modules at once. This has been tested in Lua (mingw & linux),
|
|
perl5 & python (linux) only.
|
|
|
|
09/11/2006: mgossage
|
|
[lua] added support for passing function pointers as well as native lua object
|
|
into wrappered function.
|
|
Added example funcptr3 to demonstrate this feature
|
|
|
|
09/05/2006: olly
|
|
[php] Rename ErrorCode and ErrorMsg #define-s to SWIG_ErrorCode
|
|
and SWIG_ErrorMsg to avoid clashes with code the user might be
|
|
wrapping (patch from Darren Warner in SF bug #1466086). Any
|
|
user typemaps which use ErrorCode and/or ErrorMsg directly will
|
|
need adjusting - you can easily fix them to work with both old
|
|
and new SWIG by changing to use SWIG_ErrorMsg and adding:
|
|
|
|
#ifndef SWIG_ErrorMsg
|
|
#define SWIG_ErrorMsg() ErrorMsg()
|
|
#endif
|
|
|
|
08/29/2006: olly
|
|
[php] Move constant initialisation from RINIT to MINIT to fix a
|
|
warning when using Apache and mod_php. We only need to create
|
|
PHP constants once when we're first initialised, not for every HTTP
|
|
request.
|
|
|
|
08/21/2006: mgossage
|
|
[Lua]
|
|
Bugfix #1542466 added code to allow mapping Lua nil's <-> C/C++ NULL's
|
|
updated various typemaps to work correctly with the changes
|
|
added voidtest_runme.lua to show the features working
|
|
|
|
08/19/2006: wuzzeb (John Lenz)
|
|
[Guile] Add feature:constasvar to export constants as variables instead of functions
|
|
that return the constant value.
|
|
|
|
08/11/2006: wsfulton
|
|
[Java] DetachCurrentThread calls have been added so that natively created threads
|
|
no longer prevent the JVM from exiting. Bug reported by Thomas Dudziak and
|
|
Paul Noll.
|
|
|
|
08/10/2006: wsfulton
|
|
[C#] Fix director protected methods so they work
|
|
|
|
07/25/2006: mutandiz
|
|
[allegrocl]
|
|
more additions to std::string, some tweaks and small bug fixes
|
|
-nocwrap mode.
|
|
|
|
07/21/2006: mgossage
|
|
[Lua]
|
|
Bugfix #1526022 pdated std::string to support strings with '\0' inside them
|
|
updated typemaps.i to add support for pointer to pointers
|
|
|
|
07/19/2006: mutandiz
|
|
[allegrocl]
|
|
- Add std_string.i support.
|
|
- Add newobject patch submitted by mkoeppe (thanks!)
|
|
- Fix type name mismatch issue for nested type definitions.
|
|
specifically typedefs in templated class defns.
|
|
|
|
07/18/2006: mgossage
|
|
Bugfix #1522858
|
|
updated lua.cxx to support -external-runtime command
|
|
|
|
07/14/2006: wuzzeb (John Lenz)
|
|
Increment the SWIG_RUNTIME_VERSION to 3, because of the
|
|
addition of the owndata member in swig_type_info.
|
|
Reported by: Prabhu Ramachandran
|
|
|
|
07/05/2006: wsfulton
|
|
Search path fixes:
|
|
- Fix search path for library files to behave as documented in Library.html.
|
|
- Fix mingw/msys builds which did not find the SWIG library when installed.
|
|
- Windows builds also output the mingw/msys install location when running
|
|
swig -swiglib.
|
|
- The non-existent and undocumented config directory in the search path has
|
|
been removed.
|
|
|
|
07/05/2006: wsfulton
|
|
Fix $symname special variable expansion.
|
|
|
|
07/04/2006: wuzzeb (John Lenz)
|
|
[Chicken]
|
|
Add %feature("constasvar"), which instead of exporting a constant as a
|
|
scheme function, exports the constant as a scheme variable. Update the
|
|
documentation as well.
|
|
|
|
07/04/2006: wsfulton
|
|
[See entry of 09/13/2006 - explicitcall feature and documentation to it removed]
|
|
New explicitcall feature which generates additional wrappers for virtual methods
|
|
that call the method explicitly, not relying on polymorphism to make the method
|
|
call. The feature is a feature flag and is enabled like any other feature flag.
|
|
It also recognises an attribute, "suffix" for mangling the feature name, see
|
|
SWIGPlus.html#SWIGPlus_explicitcall documentation for more details.
|
|
|
|
[Java, C#]
|
|
The explicitcall feature is also a workaround for solving the recursive calls
|
|
problem when a director method makes a call to a base class method. See
|
|
Java.html#java_directors_explicitcall for updated documentation.
|
|
|
|
06/28/2006: joe (Joseph Wang)
|
|
[r] Initial support for R
|
|
|
|
06/20/2006: wuzzeb (John Lenz)
|
|
[Chicken]
|
|
Minor fixes to get apply_strings.i testsuite to pass
|
|
Remove integers_runme.scm from the testsuite, because SWIG and Chicken does
|
|
handle overflows.
|
|
|
|
06/17/2006: olly
|
|
[php] Added some missing keywords to the PHP4 keyword list, and
|
|
fixed __LINE__ and __FILE__ which were in the wrong category.
|
|
Also added all the keywords new in PHP5, and added comments
|
|
noting the PHP4 keywords which aren't keywords in PHP5.
|
|
|
|
06/17/2006: olly
|
|
[php] Don't segfault if PHP Null is passed as this pointer (e.g.
|
|
Class_method(Null)) - give a PHP Error instead.
|
|
|
|
06/15/2006: mutandiz
|
|
[allegrocl]
|
|
Add initial support for std::list container class.
|
|
Fix a few bugs in helper functions.
|
|
|
|
05/13/2006: wsfulton
|
|
[Java] Replace JNIEXPORT with SWIGEXPORT, thereby enabling the possibility
|
|
of using gcc -fvisibility=hidden for potentially smaller faster loading wrappers.
|
|
|
|
05/13/2006: wsfulton
|
|
Fix for Makefiles for autoconf-2.60 beta
|
|
|
|
05/13/2006: wsfulton
|
|
Vladimir Menshakov patch for compiling wrappers with python-2.5 alpha.
|
|
|
|
05/12/2006: wsfulton
|
|
Fix buffer overflow error when using large %feature(docstring) reported
|
|
by Joseph Winston.
|
|
|
|
05/12/2006: wsfulton
|
|
[Perl] Operator overload fix from Daniel Moore.
|
|
|
|
05/25/2006: mutandiz
|
|
[allegrocl]
|
|
Fix bug in generation of CLOS type declarations for unions
|
|
and equivalent types.
|
|
|
|
05/24/2006: mutandiz
|
|
[allegrocl]
|
|
Don't require a full class definition to generate a CLOS wrapper.
|
|
|
|
05/20/2006: olly
|
|
[php] GCC Visibility support now works with PHP.
|
|
|
|
05/19/2006: olly
|
|
[php] Removed support for -dlname (use -module instead). Fixed
|
|
naming of PHP extension module to be consistent with PHP
|
|
conventions (no "php_" prefix on Unix; on PHP >= 4.3.0, handle Unix
|
|
platforms which use something other than ".so" as the extension.)
|
|
|
|
05/13/2006: wsfulton
|
|
[C#] Director support added
|
|
|
|
05/07/2006: olly
|
|
[php] Don't segfault if PHP Null is passed where a C++ reference
|
|
is wanted.
|
|
|
|
05/05/2006: olly
|
|
[php] Fix wrappers generated for global 'char' variables to not
|
|
include a terminating zero byte in the PHP string.
|
|
|
|
05/03/2006: wsfulton
|
|
Modify typemaps so that char * can be applied to unsigned char * or signed char *
|
|
types and visa versa.
|
|
|
|
05/03/2006: efuzzyone
|
|
[cffi]Thanks to Luke J Crook for this idea.
|
|
- a struct/enum/union is replaced with :pointer only if
|
|
that slot is actually a pointer to that type. So,:
|
|
struct a_struct { int x; } and
|
|
struct b_struct { a_struct struct_1; };
|
|
will be converted as:
|
|
(cffi:defcstruct b_struct
|
|
(struct_1 a_struct))
|
|
- Other minor fixes in lispifying names.
|
|
|
|
05/02/2006: wsfulton
|
|
Fix possible redefinition of _CRT_SECURE_NO_DEPRECATE for VC++.
|
|
|
|
04/14/2006: efuzzyone
|
|
[cffi]
|
|
Thanks to Thomas Weidner for the patch.
|
|
- when feature export is set (export 'foo) is
|
|
generated for every symbol
|
|
- when feature inline is set (declaim (inline foo)) is
|
|
generated before every function definition
|
|
- when feature intern_function is set
|
|
#.(value-of-intern-function "name" "nodeType" package)
|
|
is emitted instead of the plain symbol. A sample swig-lispify
|
|
is provided.
|
|
- every symbol is prefixed by it's package.
|
|
|
|
04/13/2006: efuzzyone
|
|
[cffi]
|
|
Fixed the generation of wrappers for global variables.
|
|
Added the option [no]swig-lisp which turns on/off generation
|
|
of code for swig helper lisp macro, functions, etc.
|
|
|