Commit graph

15,836 commits

Author SHA1 Message Date
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
Brant K. Kyser
25eaee49f3 Add check for smart pointer type in generated code for director connection. This fixes a crash in the generated code caused by the dynamic_cast returning 0 because the specified types are incorrect for smart pointer types.
Add runtime test to the C# test suite's director smartptr test that demonstrates crash in generated code when directors are used with smart pointer types.

Closes #34
2013-04-17 21:55:11 +01:00
Olly Betts
28c033dd90 Merge pull request #32 from kwwette/depend-phony
Add -MP option for generating phony targets for all dependencies
2013-04-15 18:24:38 -07: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
24ff00690f Use ZVAL_STRINGL instead of ZVAL_STRING to set funcname as we know the length at swig-time 2013-04-14 08:03:46 +12:00
Olly Betts
a16dc29046 Removed unused Printf parameter 2013-04-14 06:14:47 +12:00
Marvin Greenberg
d0202cbdac Fix typecheck OUTPUT typemaps for Java 2013-04-10 18:37:26 +01:00
William S Fulton
35ab209332 Travis build for top 10 target languages plus gcc and clang SWIG builds.
Travis builds patch developed in wsfulton/travis branch
2013-04-09 23:52:35 +01:00
William S Fulton
970c72b6da make check-csharp-version fix for MS compiler 2013-04-09 22:52:54 +01:00
William S Fulton
3e26318427 Add target language version display during make check. Individual language versions can be checked using 'make check-<lang>-version'. 2013-04-09 19:52:40 +01: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
1fce0bd2b4 Workaround to Octave seg fault on exit in imports testcase only seems to work in 3.1, not 3.2. Just ignore test now 2013-04-08 21:48:09 +01:00
Nishant Rodrigues
5fd059d80f Patch fixing warning 322 in rubycontainer_extended
'rubycontainer_extended.swg' generates warnings:

 Warning 322: Redundant redeclaration of 'map_bang',
 Warning 322: previous declaration of 'map_bang'.

The fix is to remove a redundant call to swig_container_extend for
swig::GC_VALUE.

Thanks

========================================================
2013-04-08 18:58:01 +01:00
William S Fulton
dd2cd0298c Work around Octave seg fault on exit in imports testcase on Octave 3.1 and 3.2 2013-04-08 18:32:33 +01:00
William S Fulton
5ae6ff404d Cosmetic - use C comments instead of C++ comments for recent Ruby change 2013-04-08 07:58:09 +01:00
William S Fulton
65b917dabb Some test-suite warning fixes 2013-04-06 16:19:17 -07:00
William S Fulton
bb3fe8c906 Rewrite Ruby's GC_VALUE without use of macros for easier debugging 2013-04-06 02:20:56 +01:00
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