William S Fulton
bf4174d121
Further additional Python builtin slots as features for user customization
...
Added:
- tp_flags
- was_sq_slice
- was_sq_ass_slice
2016-08-22 08:39:24 +01:00
William S Fulton
e5a09c4141
Add additional Python builtin slots as features for user customization
...
Added:
- tp_is_gc
- tp_bases
- tp_mro
- tp_cache
- tp_subclasses
- tp_weaklist
- tp_del
- tp_allocs
- tp_frees
- tp_maxalloc
- tp_prev
- tp_next
2016-08-22 07:51:42 +01:00
William S Fulton
3b6f4af15c
Set tp_new statically rather than during initialisation
2016-08-21 14:29:27 +01:00
William S Fulton
3744c45082
Customize slots tp_basicsize tp_methods tp_getset
2016-08-19 23:46:50 +01:00
William S Fulton
239785ce7d
Additional Python builtin slot overrides and slightly better formatted Python generated code
...
The following slots can now be overidden by users if they know what they
are doing:
- tp_dictoffset
- tp_init
- tp_new
- tp_as_number
- tp_as_sequence
- tp_as_mapping
- tp_as_buffer
2016-08-19 23:16:32 +01:00
William S Fulton
67ece1d2bf
Python getSlot() refactor
...
getSlot() now takes a default that can override "0" default - simpler
code and for future commits to override some currently non-overridable
slots.
2016-08-19 08:43:40 +01:00
William S Fulton
a3fc743f32
Add Python builtin closure method in comment
...
For less mystifying code and easier code searching
2016-08-18 08:41:07 +01:00
Andrey Starodubtsev
c7adb7901d
Merge branch 'master' into directorargout_and_java_typemaps
2016-08-05 11:20:01 +03:00
Olly Betts
a950d1309b
[xml] Fix how the output filename is built
...
Avoid problems when it contains the embedded strings ".c", ".cpp" or ".cxx".
Fixes #540 reported by djack42.
2016-08-05 11:52:35 +12:00
Simon Marchetto
d0a45be1eb
scilab: fix issue #746
2016-07-29 16:56:30 +02:00
Simon Marchetto
95a5def328
scilab: fix issue #755
2016-07-29 11:52:26 +02:00
Lior Goldberg
d0fc5b7b5b
Add C++11 alias templates
2016-07-06 00:31:04 +03:00
Vladimir Kalinin
91f29c09ae
#733 - wrong "override" calculation in import mode
2016-06-27 20:27:10 +03:00
William S Fulton
b24e970a28
Merge branch 'wkalinin-nested-ignore-fix'
...
* wkalinin-nested-ignore-fix:
renamed test module, in accordance with other tests
function body fixed
added foo() definition to satisfy some test linking fails
func() renamed to foo() for 'go'
fixed test-suite/nested_ignore.i
test for #662
fix for nested ignored types
Closes #662
2016-06-26 00:33:19 +01:00
William S Fulton
2da7e066b3
Merge branch 'avalluri-leaks'
...
* avalluri-leaks:
whitespace fix
memory leak improvements - delete at end of scope
CCache: Fix typo in null check
CCache: Fix memory/file descriptor leaks
scilab.cxx: Fix memory leaks
Fix leaked file descriptor
Lua: Fix possible memory leaks
go.cxx: Fix use of a freed variable
Closes #710
Closes #712
Closes #713
Closes #715
Closes #716
2016-06-26 00:16:30 +01:00
William S Fulton
7ec7cc63da
memory leak improvements - delete at end of scope
2016-06-26 00:06:01 +01:00
Alec Cooper
4f1c491090
Fixing implicitconv handling for fastdispatch and castmode
2016-06-23 08:06:14 -04:00
William S Fulton
38cda92938
smartptr inheritance fix when using templates and typedefs
...
Fixes SF bug 3333549 - %shared_ptr fixes when the type is a template using
template parameters that are typedef'd to another type.
Also fixes python -O optimization where the smart pointer conversion to the
base class needs to work because of the virtual methods that have been
optimized away.
2016-06-21 07:00:56 +01:00
Amarnath Valluri
9b371b48d1
scilab.cxx: Fix memory leaks
...
Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com>
2016-06-16 15:59:21 +03:00
Amarnath Valluri
08d5e19e6e
Lua: Fix possible memory leaks
...
Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com>
2016-06-16 15:51:50 +03:00
Amarnath Valluri
11b971f405
go.cxx: Fix use of a freed variable
...
Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com>
2016-06-16 15:47:12 +03:00
Andrey Starodubtsev
b2bcf040c0
java directorargout + java/typemaps.i fixes
...
- directorargout didn't work - it used string "jresult" instead of
argument name
- java/typemaps.i didn't work with directors
- test for using java/typemaps.i in directors added
2016-06-08 15:04:47 +03:00
William S Fulton
9b73cd036f
Avoid polluting global python namespace with version_info symbol
2016-06-07 08:12:48 +01:00
William S Fulton
81adedd7dd
Python: Do not import all of sys when using -relativeimport
2016-06-06 22:20:07 +01:00
Mike Romberg
d55151ac70
> to >=
2016-06-06 13:26:55 -06:00
Mike Romberg
9ce4b58df4
Make the check for python3 -relative does python runtime check.
2016-06-06 01:28:40 -06:00
Mike Romberg
1495313e53
fix for new split module test cases.
2016-06-02 23:56:15 -06:00
William S Fulton
b9ca9f5efc
Smart pointer to %ignored class doesn't expose inherited methods fix.
...
Regression introduced in swig-3.0.9 by 3efdbc8
Closes #690
2016-05-31 22:10:37 +01:00
William S Fulton
55fe53dc3f
Fix SWIG overloading warning display for R and allegrocl
...
Only half the warning would have been displayed due to missing if statement brackets.
Fixes gcc-6 warnings
2016-05-28 20:09:02 +01:00
William S Fulton
bee6964b48
Compile warning fix
2016-05-28 15:13:23 +01:00
William S Fulton
a91d1b5a42
Remove unused kwnames generated variable in Ruby wrappers
...
This seems to be from some left over Python kwargs / unfinished kwargs support
2016-05-28 00:45:24 +01:00
William S Fulton
7ead141aa9
Fix unused variable warning in Perl wrappers
2016-05-28 00:45:24 +01:00
William S Fulton
d01efd82e1
Merge branch 'mromberg-implpkg'
...
* mromberg-implpkg:
Minor edits to Python implicit namespace package docs
use %inline for test
use relative import for -builtin and python2
Python3 removes support for relative imports
Document implicit namespace packages for python
disable namespace package build
Attempt to calm the testing gods...
use whatever name winders uses for .so files.
Examples (and tests) for python namespace packages
disable namespace package build
spelling
Attempt to calm the testing gods...
use whatever name winders uses for .so files.
Don't run example for old pythons
Examples (and tests) for python namespace packages
use importlib to load C extension modules for python 2.7 and newer
2016-05-24 22:48:37 +01:00
Mike Romberg
10d71ca01a
use relative import for -builtin and python2
2016-05-24 22:46:35 +01:00
Vladimir Kalinin
0145a07cc3
fix for nested ignored types
2016-05-18 18:07:04 +03:00
William S Fulton
70f5a9ceed
Merge branch 'tamuratak-master'
...
* tamuratak-master:
Revert introduction of minor memory leak in Ruby wrappers
ruby: use nodeType attribute to determine whether functions are constructors. get return type each time.
2016-05-17 20:05:20 +01:00
William S Fulton
1330337491
Revert introduction of minor memory leak in Ruby wrappers
2016-05-17 20:04:24 +01:00
William S Fulton
38f8fd811c
Merge branch 'ruby-module-docstring'
...
* ruby-module-docstring:
Ruby module docstring avoid memory leak
Ruby add support for docstring option in %module()
2016-05-17 19:04:20 +01:00
William S Fulton
5e6ab1d61d
Merge branch 'ejulien-python_operator_overload_test_suite'
...
* ejulien-python_operator_overload_test_suite:
Add __str__ to operator_overload testcase for python builtin
Python operator_overload runtime testcase cleanup
Work around a limitation of the Python binding generator related to the += family of operators.
Fix Python 3 division member operator when -builtin is not used.
Fix class member division operator.
Remove the PY3BUILTIN switch as its behavior can be achieved with the existing SWIG_FEATURES=-builtin switch.
Implement the operator overload test suite for Python.
Conflicts:
Examples/test-suite/operator_overload.i
2016-05-05 23:01:35 +01:00
William S Fulton
3efdbc8f2e
Don't issue unnecessary base class ignored message
...
Don't warn about base class being ignored when the derived class is
itself ignored.
Closes #669
2016-05-02 22:50:09 +01:00
Ian Lance Taylor
ef4d7628a9
[Go] Fix use of goout typemap in non-cgo mode.
2016-04-18 20:35:29 -07:00
Ian Lance Taylor
0f54384ee3
[Go] Fix use of goout typemap when calling base method by
...
forcing the "type" attribute to the value we need.
2016-04-18 15:30:06 -07:00
Takashi Tamura
7ef1b04a86
ruby: use nodeType attribute to determine whether functions are constructors.
...
get return type each time.
2016-04-08 12:15:55 +09:00
Mike Romberg
ca63491d7a
Python3 removes support for relative imports
2016-04-05 11:10:04 -06:00
Mike Romberg
23d2eb555f
use importlib to load C extension modules for python 2.7 and newer
2016-04-05 10:58:50 -06:00
William S Fulton
a97441613e
Merge branch 'ahnolds-py_gettar'
...
* ahnolds-py_gettar:
update changes file for attribute fix
Add python AttributeError test for non-existent attribute
Fixing python attribute lookup
Conflicts:
CHANGES.current
2016-04-02 18:06:03 +01:00
Ling Li
79bb343ffe
Fix single arguments using python -builtin -O with %feature("compactdefaultargs")
...
Setattr argcount for non-default-args and non-varargs functions.
Fixes #607
Closes #610
2016-04-02 11:29:43 +01:00
William S Fulton
1d62790928
Fix assertion for some languages when wrapping a C++11 enum class that is private in a class.
...
Also don't wrap private enums for a few languages that attempted to do so.
Closes #594 .
2016-03-31 20:27:36 +01:00
Paweł Tomulik
174523aa80
fix handling of function pointers by %constant directive
2016-03-24 11:22:51 +01:00
Paweł Tomulik
0c819d1ba9
prevent _swigconstant boilerplate for non-class types
2016-03-15 10:27:13 +01:00