William S Fulton
4492a3d76b
Document Include Lua error locus in SWIG error messages patches.
...
Closes #81
2013-08-30 07:11:43 +01:00
William S Fulton
f55ff50dd5
Skip the UTF-8 BOM of including files.
...
For avoiding illegal token error when parsing include files which have the UTF-8 BOM.
Closes #75 .
2013-08-29 19:22:50 +01:00
Vadim Zeitlin
9efaf954c7
Add support for std::map<> comparator template argument for C#.
...
Allow exporting maps using non-default comparison function.
Closes #77
2013-08-29 19:08:15 +01:00
William S Fulton
b58dabced9
%implicitconv is improved for overloaded functions.
...
Like in C++, the methods with the actual types are considered before trying implicit conversions.
2013-08-28 20:30:46 +01:00
William S Fulton
1cc735df5e
%implicitconv will now accept None where the implicit conversion takes a C/C++ pointer.
...
Problem highlighted by Bo Peng on the swig-user mailing list. SF patch #230 .
2013-08-28 20:28:15 +01:00
Olly Betts
628b4710e5
[Python] Fix clang++ warning in generated wrapper code.
2013-08-24 08:40:08 +12:00
Kris Thielemans
a495b5a985
Remove SwigPyObject_print and SwigPyObject_str, and make the generated wrapper use the default python implementations, which will fall back to repr (for -builtin option).
...
Advantages:
- it avoids the swig user having to jump through hoops to get print to
work as expected when redefining repr/str slots.
- typing the name of a variable on the python prompt now prints the
result of a (possibly redefined) repr, without the swig user having to
do any extra work.
- when redefining repr, the swig user doesn't necessarily have to
redefine str as it will call the redefined repr
- the behaviour is exactly the same as without the -builtin option while
requiring no extra work by the user (aside from adding the
%feature("python:slot...) statements of course)
- the patch simplifies pyrun.swg a tiny bit.
Disadvantage:
- default str() will give different (but clearer?) output on swigged
classes compared to unpatched swig
SF Bug #326
2013-08-07 20:22:03 +01:00
William S Fulton
80f8d1d922
Fix for missing C++ code in std::multimap wrappers.
...
%template for a std::multimap generated uncompilable code unless a
%template for a std::map of the same template types was also coded up.
This patch is needed in conjunction with previous commit - 5f1fff1849
Closes #64
Closes #65
2013-08-06 07:02:49 +01:00
joequant
93b63969f9
change to allow file SEXP return values
2013-07-14 20:28:17 +08:00
William S Fulton
d0af4f50d3
Add %pythonbegin directive.
...
For adding code at the beginning of the generated .py file.
2013-07-05 06:30:16 +01:00
William S Fulton
eb98c0be99
Correct dates in recent commits to CHANGES file
2013-07-05 06:25:07 +01:00
William S Fulton
7491be12e5
Uninitialized variable fix in SWIG_Python_NonDynamicSetAttr when using -builtin.
...
SF patch #340
2013-07-01 20:09:31 +01:00
William S Fulton
779dc402b6
Fix a const_cast in generated code that was generating a <:: digraph when using the unary scope operator (::) (global scope) in a template type.
...
Affects Python, Ruby, Ocaml.
Based on SF patch #341 .
2013-07-01 20:00:12 +01:00
William S Fulton
0058eea3ad
Add SF patch #342 fix some director classes crashing on object deletion when using -builtin.
...
Fixes SF bug #1301 and python test cases director_basic and
director_classic seg faulting when used with -builtin.
Patch from Christian Delbaere.
2013-07-01 19:25:34 +01:00
William S Fulton
7f95c7bb3e
Use a less confusing macro name, SWIG_PYTHON_NO_DEBUG => SWIG_PYTHON_INTERPRETER_NO_DEBUG
2013-06-11 19:15:57 +01:00
William S Fulton
5cdfc503e1
Add SWIG_PYTHON_NO_DEBUG macro for building Debug wrappers against the Python Debug dll
2013-06-11 00:22:21 -07:00
William S Fulton
3834036e13
Fix Ruby regression with missing rb_complex_new function.
...
Affects Ruby versions prior to 1.9 using std::complex wrappers if just using std::complex
as an output type. Also fix the Complex helper functions external visibility (to static by default).
Closes #52
2013-06-07 19:56:38 +01:00
Olly Betts
abfa75b169
[PHP] Fix SWIG_ZTS_ConvertResourcePtr() not to dereference NULL
...
if the type lookup fails.
2013-06-04 12:53:27 +12:00
William S Fulton
8e89cad271
Bump version to 2.0.11
2013-05-27 20:27:50 +01:00
William S Fulton
1524d02e13
Add swig-2.0.10 release date and release notes
2013-05-27 19:24:04 +01:00
William S Fulton
5481270c2a
Fix Python 3 inconsistency handling -ve numbers for unsigned C types.
...
An OverFlow error is now consistently thrown instead of a TypeError.
Fixes primitive_types testcase for Python 3
2013-05-25 10:36:14 +01:00
Artem Serebriyskiy
3e188e508d
Add test case for attributes with moderately complex templates
...
* New test case tests that %attribute macros correctly supports passing
template with multiple parameters as class name or attribute type name
* Some further changes were made to %attribute macros - now
AttributeType is protected with %arg as well. This allows you
to have attributes of type e.g. std::pair<int,int> etc
Update CHANGES file for %attribute template fixes
Closes #48
2013-05-25 00:44:36 +01:00
William S Fulton
149972542e
Add note on ccache-swig internal error bug due to premature file cleanup to changes file
2013-05-19 01:16:23 +01:00
Karl Wette
d7839ce570
Update changelog for the previous two Octave patches
2013-05-12 17:32:09 +01:00
William S Fulton
ae1c395917
Guile tweak in CHANGES.current
2013-04-30 07:28:29 +01:00
Geert Janssens
17a5635385
Add summary of recent guile updates in changelog
2013-04-29 12:30:39 +02:00
William S Fulton
439a353a36
Document patch #33 from previous commit and complete run time tests
2013-04-18 23:20:48 +01:00
William S Fulton
857e447654
Fix syntax error when preprocessor macros are defined inside of enum lists
...
Fixes SF Bug 428, Patch 333
2013-04-18 22:48:42 +01:00
Karl Wette
2a3e687c19
Octave: fix bugs in output of cleanup code
...
Closes #35
2013-04-17 22:23:27 +01:00
William S Fulton
296498c159
Cosmetic tidyup in smartptr feature code and document smartptr fix in previous commit
2013-04-17 21:56:23 +01:00
Karl Wette
611acbf944
Add -MP option for generating phony targets for all dependencies
...
- Modelled on similar option in GCC
2013-04-15 22:17:48 +02:00
Olly Betts
939fa86627
[PHP] Add missing directorin typemap for char* and char[] which
...
fixes director_string testcase failure.
2013-04-09 14:35:14 +12:00
William S Fulton
5d529d5a76
Ruby 1.9 fixes.
...
SF Bug#1292 - Runtime fixes for Proc changes in ruby-1.9 when using STL wrappers that override the default predicate, such as:
%template(Map) std::map<swig::LANGUAGE_OBJ, swig::LANGUAGE_OBJ, swig::BinaryPredicate<> >;
Fixes li_std_functors testcases for Ruby 1.9.
Also rb_respond_to return values have changed subtely in 1.9 and return should be treated as a flag instead of checking for Qtrue, see SF Bug #1159 .
Also fix li_std_map, li_std_set silently failing - rb_protect behaviour seems to have changed when an exception is thrown, so code has been changed to use rb_rescue. A call to 'rb_set_errinfo(Qnil)' could have solved this after the rb_protect call, but it is only available in 1.9+ and Ruby API changes are not easily and transparently detectable.
2013-04-05 23:41:59 +01:00
William S Fulton
9aaf4ad03c
Fixes for Ruby 1.9 std::complex wrappers.
...
New native Ruby complex numbers are used.
2013-04-02 20:14:51 +01:00
William S Fulton
e13e1cba9e
Fix seg fault when using STL containers of generic Ruby types, GC_VALUE or LANGUAGE_OBJECT, on exit of the Ruby interpreter. Observed on 64 bit Linux in the std_li_set testcase. The global hash which is meant to hold GC references was being deleted by the interpreter on exit before the GC_VALUES destructors were being called.
2013-03-31 00:55:34 +00:00
William S Fulton
f42ac989a7
Add note about Python STL fixes
2013-03-29 09:20:17 +00:00
William S Fulton
2e0d1b12dc
Fix delete_if (reject!) for the STL container wrappers.
...
Previously they would sometimes seg fault or not work.
2013-03-29 06:28:15 +00:00
William S Fulton
e182b4844c
Fix seg fault in SWIG using directors when class and virtual method names are the same except being in different namespaces when the %nspace feature is not being used.
2013-03-19 19:50:44 +00:00
Karl Wette
52c754a22d
Minor fix to Octave autodoc generation for functions returning structs
...
Patch #27
- see also git commit 72ffdb930d
2013-03-09 00:10:41 +00:00
Karl Wette
ee2b46abe0
Fix SWIG's handling of qualified (e.g. const) variables of array type
2013-02-19 20:05:46 +00:00
William S Fulton
2435b98a24
Tweak to changes note
2013-02-18 22:39:48 +00:00
Karl Wette
70cd52f44d
Use "(void)" instead of "()" when wrapping no-argument extension functions.
2013-02-18 22:39:39 +00:00
William S Fulton
b80f4dc5e2
Restrict the name used in %extend to be just the struct/class name and not a typedef to a class/struct. Typedefs were only partially working anyway. Anonymous struct typedefs excluded. Deprecate with a warning for now.
2013-02-18 19:53:37 +00:00
tpapp
054f9dba1a
CFFI - Fix missing package before &body - patch #22
...
Should fix https://github.com/swig/swig/issues/21 .
2013-02-09 17:23:16 +00:00
William S Fulton
397409fbb1
Ensure 'javapackage' typemap is used as it stopped working from version 2.0.5
2013-01-30 22:18:13 +00:00
William S Fulton
d172e3d0ed
Apply patch SF #334 - Fix Python default value conversions TRUE->True, FALSE->False.
2013-01-29 07:31:11 +00:00
William S Fulton
38f37ef5ae
Apply patch SF #335 - Truly ignore constructors in directors with %ignore and correct testcase that tests this
2013-01-29 06:55:22 +00:00
William S Fulton
bd3e93ae61
Tidy up last few commits for Java new jniclasspackage pragma
2013-01-19 00:58:56 +00:00
William S Fulton
78cd350fe9
Fix Visual Studio examples to work when SWIG is unzipped into a directory containing spaces.
2013-01-15 07:18:20 +00:00
William S Fulton
0e6af5c0ea
Fix cstype typemap lookup for member variables so that a fully qualified variable name matches
2013-01-15 06:45:47 +00:00