William S Fulton
8484c2de9b
More rb_protect rewrite to use rb_rescue for Ruby 1.9
2013-04-06 00:30:50 +01: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
ee92a26819
Fixes for out of source builds for Ruby test-suite
2013-04-02 22:21:48 +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
8801ea3f11
Fix incorrect assumptions in Ruby li_std_set test
2013-03-31 00:21:12 +00:00
William S Fulton
af859a1e2d
Fix Ruby documentation for %bang
2013-03-29 13:46:49 +00:00
William S Fulton
f42ac989a7
Add note about Python STL fixes
2013-03-29 09:20:17 +00:00
William S Fulton
5878ca5f1a
Fix autodoc test for python 2.4
2013-03-29 09:20:17 +00:00
William S Fulton
8381cc6b7d
Fix test suite lock initialisation leading to random seg faults in li_boost_shared_ptr
2013-03-29 06:31:26 +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
38b2b95c30
Fix some invalid iterator usage in Python when deleting/inserting slices from/into containers
2013-03-26 21:38:45 +00:00
William S Fulton
7eda619741
Fix invalid iterators used with -ve ranges - Python
...
Fixes li_std_containers_int testcase.
Valgrind reports no more problems for this testcase.
2013-03-26 21:38:44 +00:00
William S Fulton
b504b68a62
Fix erratically failing threads_exception python test
2013-03-26 20:57:41 +00:00
Olly Betts
1e00ce6bf9
Fix comment typo in typemap
2013-03-26 15:07:16 +13:00
William S Fulton
3abe3517f8
Don't test shared_ptr for languages that don't have support for shared_ptr
2013-03-23 18:22:20 +00:00
Olly Betts
5199a9002f
Correct comment about sys.lib
2013-03-22 11:16:48 +13:00
Olly Betts
f85a3b7756
Remove handling for Python <1.5 - we only support >=2.0 now
2013-03-22 10:46:44 +13:00
Olly Betts
250760daf4
Remove superfluous trailing semicolons
2013-03-22 10:43:19 +13:00
Olly Betts
2bbc52302c
Remove pointless assignments of variables to themselves
2013-03-22 09:37:02 +13:00
Olly Betts
9fbf771a00
Fix lack of indentation in ocaml and pike sections
2013-03-22 09:21:07 +13:00
Olly Betts
481ed3c578
Update lingering configure.in references to say configure.ac
2013-03-21 14:41:09 +13:00
Olly Betts
b132992b8a
Stop claiming that SWIG_exception() can be used in helper functions
2013-03-21 14:25:14 +13:00
Olly Betts
23bcc1c66b
Remove lingering relic of PHP4 support
2013-03-20 16:45:24 +13:00
Olly Betts
b72aca1d07
Fix typo in comment (swift->swig)
2013-03-20 15:39:03 +13:00
William S Fulton
7d083890e6
More Travis build experiments
2013-03-19 22:41:04 +00:00
William S Fulton
12ee3e9c4c
Fix Travis matrix
2013-03-19 22:15:07 +00:00
William S Fulton
6fecb05379
Fix director_nspace_director_name_collision test for languages that don't support %nspace
2013-03-19 19:50:44 +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
William S Fulton
9d0b20916f
Add ability to suppress some director warnings by their method name, not just the containing class name
2013-03-19 19:50:43 +00:00
William S Fulton
7b50640c05
More Travis attempts at controlling what is built
2013-03-19 19:50:43 +00:00
Olly Betts
7c80f007c4
Fix typo in Python docstring for acquire method
2013-03-19 18:38:45 +13:00
William S Fulton
4003f65a94
Try combinations of Java and Python Travis builds
2013-03-17 21:40:44 +00:00
William S Fulton
d2551e22e2
Try Python test-suite on Travis
2013-03-17 20:32:03 +00:00
William S Fulton
46523a074f
Travis CI only on master and silent builds
2013-03-17 19:44:28 +00:00
William S Fulton
9227604424
First attempt at Travis Continuous integration builds
2013-03-16 17:43:08 +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
William S Fulton
fdea8a8f51
More useless code removal as detected by scan-build (LLVM/Clang)
...
using scan-build ./configure && scan-build make
2013-03-08 22:19:07 +00:00
Sylvestre Ledru
e0b14786d6
Fix some useless code detected by scan-build (LLVM/Clang)
2013-03-08 20:53:18 +00:00
William S Fulton
670962cfe8
SWIG_TypeCompare was not working as commented - return values were 0,1 and not 1,0,-1. Although undocumented and not used anywhere within SWIG, it has been replaced with SWIG_TypeCmp to work as commented.
2013-03-04 07:32:40 +00:00
Olly Betts
df2388a459
Merge pull request #29 from xantares/master
...
Fix clang warning due to SWIG_AddCast macro (SF#1300).
2013-03-03 11:02:14 -08:00
Michel Zou
8155e14579
Macro expansion to self assign is effectively ignored.
2013-02-26 09:26:13 +01:00
Michel Zou
c23b7606cf
MOdified only no-cast-rank version of SWIG_AddCast.
2013-02-25 11:07:42 +01:00
Michel Zou
7acf6b5fef
Revert "Fixed #1300 clang warning in SWIG_Python_ConvertPtrAndOwn."
...
This reverts commit 8e340c158c .
2013-02-25 09:53:45 +01:00
Michel Zou
8e340c158c
Fixed #1300 clang warning in SWIG_Python_ConvertPtrAndOwn.
2013-02-22 10:11:50 +01:00
William S Fulton
de136ad6cf
Uncomment testing of overloading of const char arrays which was fixed in svn r12541 for swig-2.0.3.
2013-02-21 07:09:27 +00:00
William S Fulton
cfd8497f3e
Cosmetic changes in SwigType_add_qualifier
2013-02-21 07:00:25 +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
Karl Wette
9d330a9970
Fix qualifier parsing in SwigType_add_qualifier()
...
- use list to ensure qualifiers are unique and sorted
- now allows 'qual' to contain multiple qualifiers
2013-02-19 20:05:45 +00:00
William S Fulton
d1b40b468b
Fix C code where a typedef name was used for constructor and destructor names in %extend. Deprecate use of typedef names for constructor and destructor names going forwards.
2013-02-18 22:40:42 +00:00