Simon Marchetto
f7fc09d025
scilab: fix enums test
2014-02-07 18:17:37 +01:00
Simon Marchetto
90c4cb2c26
scilab: small refactoring of scienum.swg
2014-02-07 17:29:18 +01:00
Simon Marchetto
3607b2db10
scilab: fix (check integer type) and optimize typecheck typemaps
2014-02-07 16:38:15 +01:00
Simon Marchetto
67aba0bfc2
scilab: move integer error tests in integers test
2014-02-07 15:42:58 +01:00
Simon Marchetto
c47456a9bb
scilab:implement li_typemaps test (library typemaps.i test)
2014-02-07 12:23:39 +01:00
Simon Marchetto
ccab675c57
scilab: check value and overflow errors in integer typemaps
2014-02-07 11:53:19 +01:00
Vladimir Kalinin
e9ecac9298
warnings suppressed for deeply nested classes
2014-02-07 07:39:07 +04:00
William S Fulton
b457f8f290
Changes entry for guile non-ascii strings fix
2014-02-06 20:02:05 +00:00
William S Fulton
09bdc5f353
Merge branch 'master' of https://github.com/gjanssens/swig into gjanssens-master
...
* 'master' of https://github.com/gjanssens/swig :
Guile: make scm to string conversion work with non-ascii strings
Guile: illustrate bug in non-ascii string handling
2014-02-06 19:58:09 +00:00
Vladimir Kalinin
6b5e366567
nested nested class warning filtered
2014-02-06 23:53:33 +04:00
Vladimir Kalinin
56cea1821d
warning filter fixed
2014-02-06 23:47:01 +04:00
William S Fulton
844695b674
Fix typedef_typedef test
2014-02-06 19:31:31 +00:00
Marvin Greenberg
fd85d12a2c
Allow csharp examples to run under mono
2014-02-05 15:31:57 -08:00
Marvin Greenberg
49d73c56d0
Move setting required -stdlib argument into configure.ac
2014-02-05 15:18:51 -08:00
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