Geert Janssens
c6d03a6a9f
Guile: make scm to string conversion work with non-ascii strings
2014-02-05 12:17:16 +01:00
Geert Janssens
a54674eeca
Guile: illustrate bug in non-ascii string handling
2014-02-05 12:17:05 +01:00
Vladimir Kalinin
54b2346c71
error order foxed
2014-02-05 02:30:48 +04:00
Marvin Greenberg
843aa7cd65
Work around differences in clang libc++ std::vector<bool>::const_reference
...
clang++ using -stdlib=libc++ defines const_reference as a class,
to map boolean vectors onto a bit set. Because swig does
not "see" the type as "const &" it generates incorrect code for this case,
generating a declaration like:
const_reference result;
When const_reference is a typedef to 'bool' as is the case with stdlibc++
this works. When this is actually a constant reference, this is clearly
invalid since it is not initialized. For libc++, this is a class
which cannot be default constructed, resulting in an error. The fix
is to explicitly define the various accessor extensions as having a
bool return type for this specialization.
2014-02-04 16:00:12 -05:00
Marvin Greenberg
213774e0b6
Fix issue on clang about implicit instantiation of undefined template
...
Generated code does not include <string>, which is referenced in templates.
Clang may be incorrectly or aggresively instantiating some template.
E.g.,
import_stl_b_wrap.cxx:3199:51: error: implicit instantiation of undefined template 'std::__1::basic_string<char, std::__1::char_traits<char>
2014-02-04 11:55:36 -05:00
Marvin Greenberg
c3eff9234c
Workaround for clang 3.2 libc++ empty struct bug.
...
Certain tests have empty structs or classes.
This encounters a bug with clang: http://llvm.org/bugs/show_bug.cgi?id=16764
This is fixed in later versions of clang, but not the version
currently bundled with Mavericks and XCode 5
2014-02-04 11:55:36 -05:00
William S Fulton
0383d08444
Add new swigtype_inout.i library containing SWIGTYPE *& OUTPUT typemaps.
2014-02-04 06:54:22 +00:00
William S Fulton
87c1e093ee
Travis display pcre version
2014-02-04 06:54:21 +00:00
Vladimir Kalinin
b7fd1eacb2
WARN_PARSE_UNNAMED_NESTED_CLASS check fixed
2014-02-03 02:50:19 +04:00
Vladimir Kalinin
0320378387
more warnings removed
2014-02-03 02:31:17 +04:00
Vladimir Kalinin
bda9c90e2b
warnfilter fixed
...
scoping for "anonymous forward declaration" fixed
2014-02-03 02:21:44 +04:00
Vladimir Kalinin
8fc4fd2893
%feature ("flatnested") is set for nested scope test
2014-02-03 01:15:05 +04:00
Vladimir Kalinin
4744ea8903
added forward declaration instead of ignored nested class (resurrected old code)
2014-02-03 01:03:37 +04:00
Vladimir Kalinin
69d849b56c
filtered warnings, turned on "flatnested" for nested template test
2014-02-02 23:38:23 +04:00
Vladimir Kalinin
2f3d93e93a
Nested classes support is diversified, depending on the language capability. If the language cannot support nested classes, they will be unconditionally moved to the global namespace. If language module does not override Language::nestedClassesSupport() function, nested classes will be ignored, unless "feature:flatnested" is used.
2014-02-02 22:38:13 +04:00
VZ
2c87cee65a
Merge pull request #129 from vadz/warn-fix
...
Fix gcc strict aliasing warnings with function pointers too.
2014-02-01 09:10:02 -08:00
Vadim Zeitlin
a1fe8a6501
Fix gcc strict aliasing warnings with function pointers too.
...
The commit 40bf877 fixed warnings about converting between function and object
pointers but introduced warnings about breaking strict-aliasing rules which
appear with -Wstrict-aliasing which is implicitly enabled by -O2.
Avoid these warnings as well by using an intermediate union for conversion
instead of casts trickery.
2014-02-01 15:00:15 +01:00
Simon Marchetto
e8fd0e506e
scilab: fix and optimize integer typemaps
2014-01-31 18:04:21 +01:00
Simon Marchetto
65621c988b
scilab: replace test scilab_typemaps by generic test primitive_types
2014-01-31 18:04:21 +01:00
Simon Marchetto
cfc9f1398e
scilab: put size_t & ptrdiff_t typemaps in separate file
2014-01-31 18:04:21 +01:00
Simon Marchetto
e9d36b6bc2
scilab: refactor runtime code
2014-01-31 18:04:21 +01:00
Simon Marchetto
0fdbd6b7a4
scilab: new test for size_t type
2014-01-31 18:04:20 +01:00
Simon Marchetto
530704486d
scilab: small clean
2014-01-31 18:04:20 +01:00
Simon Marchetto
9aa006e62b
scilab: remove typemap useless stuff
2014-01-31 18:03:52 +01:00
Simon Marchetto
7f14aa583a
scilab: optimize typemap AsInt
2014-01-31 18:03:52 +01:00
Simon Marchetto
a8d020f171
scilab: simplify 'from' integer typemaps: use createScalar* functions
2014-01-31 18:03:30 +01:00
Marvin Greenberg
9fd42e0e67
Work around clang bugs with symbol resolution
2014-01-30 16:18:21 -05:00
Marvin Greenberg
7c5275a0f1
Make sure tests are built with same stdlib flag as used to configure swig
2014-01-30 16:17:30 -05:00
Simon Marchetto
bca49968f1
scilab: fix ret_by_value test
2014-01-30 14:11:18 +01:00
Simon Marchetto
30f4336f59
scilab: use macro SWIG_NbInputArgument() instead of Rhs()
2014-01-30 11:58:02 +01:00
Simon Marchetto
a6f824a9a8
scilab: roll back on primitive typemaps: return Scilab double on signed integers
2014-01-30 11:00:47 +01:00
Simon Marchetto
ec2d851f4f
scilab: move scilab preprocessor directive before includes
2014-01-29 10:55:20 +01:00
Ian Lance Taylor
fa9a6d58ed
[Go] Fix handling of C type "long" on 32-bit systems. It was broken
...
for C++ long& and for big-endian systems in general.
2014-01-27 17:49:35 -08:00
Ian Lance Taylor
f2dc3a9c1f
[Go] Add %go_import directive.
2014-01-21 11:27:09 -08:00
Ian Lance Taylor
3785454a87
[Go] Add support for Go 1.3, not yet released.
2014-01-21 11:18:55 -08:00
William S Fulton
cc650e692e
Director exceptions now derive from std::exception
2014-01-20 19:40:52 +00:00
William S Fulton
af6bee1e8c
Travis build fixes for checking 'make install'
2014-01-19 22:09:52 +00:00
William S Fulton
e323d9d7b3
Add 'make install' to Travis testing
2014-01-19 20:45:22 +00:00
William S Fulton
d7e614f716
Remove debug output on 'Empty character constant' error
2014-01-19 00:23:42 +00:00
William S Fulton
3055a21505
Errors test-suite overhaul
...
Use makefiles instead of a make.sh script
Expected results are in individual .stderr files instead of the expected.log file
Add errors test-suite to Travis testing and 'make check'
2014-01-19 00:12:12 +00:00
William S Fulton
9d003ab362
Update errors expected results
2014-01-16 19:30:48 +00:00
William S Fulton
f068be89e5
Fix PHP compilation error in ZTS mode (64 bit windows) due to TSRMLS_FETCH() expansion
2014-01-16 06:48:35 +00:00
William S Fulton
9033b2de47
Merge branch 'diorcety-typedef-prefix'
...
* diorcety-typedef-prefix:
Modify typedef_typedef testcase to work for all languages
Add test for checking prefix resolving in typedef
Typedef typedef prefix test for templates
Resolve prefix when resolving typedef
Conflicts:
CHANGES.current
2014-01-14 07:31:40 +00:00
William S Fulton
e531578c54
Modify typedef_typedef testcase to work for all languages
...
Add CHANGES note
Closes #112 .
2014-01-14 07:21:40 +00:00
Yann Diorcet
2e186244d6
Add test for checking prefix resolving in typedef
2014-01-14 07:21:40 +00:00
William S Fulton
2f47bb8d67
Typedef typedef prefix test for templates
...
As given in Diorcet Yann's example in issue #50
2014-01-14 07:20:06 +00:00
Karl Wette
5b167cc12d
octave: update support to Octave version 3.8.0
2014-01-13 18:24:17 +13:00
Yann Diorcet
c319ad9dd6
Resolve prefix when resolving typedef
2014-01-12 00:17:16 +00:00
William S Fulton
5c6bc5db3e
Remove -nonaturalvar and nonaturalvar option in %module
...
These didn't work, were not documented and don't seem necessary
2014-01-11 19:34:44 +00:00
William S Fulton
07ce3fb746
Add testcase for %attributestring on shared_ptr
2014-01-11 19:34:22 +00:00