Commit graph

18,427 commits

Author SHA1 Message Date
William S Fulton
37bd50ddf9 Guile - fix generated code for static const char member variables when defined and declared inline. 2015-02-11 23:34:23 +00:00
William S Fulton
2947b711d9 Warning fixes in Go cdata library
GCC warnings -Wpointer-to-int-cast and -Wdeclaration-after-statement
2015-02-11 23:34:16 +00:00
William S Fulton
1ef899a57b Merge branch 'stricter-warnings'
* stricter-warnings:
  Go changes for wrappers to compile as ISO C90
  Scilab typecheck typemaps fix for C90
  No error for one Javascript node warning
  Warning fix in testcase for Javascript node
  nested_extend_c testcase fix when compiled by C++ target languages
  Temporarily remove -Werror for Scilab testing
  C90 fixes for Javascript JSC
  There are a couple of testcases that aren't compliant and supression via pragmas doesn't work for gcc < 4.8
  Warning suppression change
  Scilab typemap fixes for C89
  compiler warning suppression correction in testcase
  Suppress pedantic warnings in C# testcases
  Suppress pedantic warnings in testcases
  Pedantic warning fix in testcase
  pedantic warning fix for D wrappers
  Travis testing to use testflags.py for setting CFLAGS and CXXFLAGS
  Add travis build for error-declaration-after-statement branch
2015-02-11 23:33:26 +00:00
William S Fulton
e3a8ee1927 Go changes for wrappers to compile as ISO C90
Fixes:
ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement]
2015-02-11 23:32:46 +00:00
William S Fulton
4e86210e74 Scilab typecheck typemaps fix for C90
Fix mix of mixed declarations and code.
Also redo these typemaps so that the SWIG preprocessor comments don't appear
in the generated code.
2015-02-11 23:32:45 +00:00
William S Fulton
7b8d1a18a6 No error for one Javascript node warning
until overload_rename testcase is fixed for -Werror=unused-function
2015-02-11 23:32:45 +00:00
William S Fulton
ec9e347a07 Warning fix in testcase for Javascript node
Fix warning when using node to compile Javascript wrappers:
warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
2015-02-11 23:32:45 +00:00
William S Fulton
ed084f30f2 nested_extend_c testcase fix when compiled by C++ target languages
Javascript v8 and node compiles the wrappers as C++, fix this warning:
anonymous type with no linkage used to declare variable ‘<anonymous struct> THING’ with linkage
2015-02-11 23:32:45 +00:00
William S Fulton
213058de01 Temporarily remove -Werror for Scilab testing
Until STL container wrappers are fixed.
2015-02-11 23:32:45 +00:00
William S Fulton
59ff3e6a3a C90 fixes for Javascript JSC 2015-02-11 23:32:45 +00:00
William S Fulton
9e56ae10cf There are a couple of testcases that aren't compliant and supression via
pragmas doesn't work for gcc < 4.8

No languages can work with -pedantic in the test-suite
2015-02-11 23:32:44 +00:00
William S Fulton
a73a783fcd Warning suppression change
Earlier gcc (4.7) will warn about unknown warning pragmas!
-Wpedantic suppression is only available in 4.8 and later
2015-02-11 23:32:29 +00:00
William S Fulton
0236435c48 Scilab typemap fixes for C89 2015-02-11 23:24:40 +00:00
William S Fulton
9402f14393 compiler warning suppression correction in testcase 2015-02-11 23:24:40 +00:00
William S Fulton
3a10bba9ee Suppress pedantic warnings in C# testcases 2015-02-11 23:24:40 +00:00
William S Fulton
ec1eac5b72 Suppress pedantic warnings in testcases 2015-02-11 23:24:40 +00:00
William S Fulton
a4ba9528b4 Pedantic warning fix in testcase 2015-02-11 23:24:39 +00:00
William S Fulton
ef75735e9b pedantic warning fix for D wrappers 2015-02-11 23:24:39 +00:00
William S Fulton
3d34b369fa Travis testing to use testflags.py for setting CFLAGS and CXXFLAGS
Added flags include -Wreturn-type and -Wdeclaration-after-statement to
prevent mixed declaration and code and missing return statements which
other compilers require.
2015-02-11 23:21:25 +00:00
William S Fulton
c5409c28f6 Add travis build for error-declaration-after-statement branch 2015-02-11 23:05:20 +00:00
Olly Betts
57e3bf72c6 Merge pull request #335 from besser82/bugfix/apple_deprecated_macros
Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework
2015-02-12 10:24:51 +13:00
Björn Esser
4490f19dcc Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework 2015-02-10 16:40:56 +01:00
Ian Lance Taylor
1863b191bf [Go] Refactor some functions to make it easier to move to a new
approach for generating Go interfaces.  No functional changes.
2015-02-09 11:21:58 -08:00
Ian Lance Taylor
0a021a938e [Go] Remove all generated calls to _swig_makegostring, as it will no
longer as of Go 1.5.  In Go 1.5 or later user calls to
_swig_makegostring will fail at link time.

Instead, use goout and godirectorin typemaps to allocate strings in Go
code.

Change the Go typemaps support to ignore empty strings, so that we can
define empty strings for regular types so that %apply will override
the definitions for string types.

Fix the gccgo code to wrap SwigCgoCallback around all godirectorin
typemaps.

Add a few newlines after typemap code so that the typemaps don't have
to include them.
2015-02-05 10:15:37 -08:00
Ian Lance Taylor
603e3b49b3 Merge branch 'master' of git://github.com/swig/swig 2015-02-04 16:09:51 -08:00
Ian Lance Taylor
2562c1eb41 [Go] Remove all calls to _swig_goallocate in the Go runtime, except
for the one from _swig_makegostring.  _swig_goallocate can not work
with the future Go 1.5 release.  When using Go 1.5 attempts to call
_swig_goallocate will fail at link time.
2015-02-04 16:08:44 -08:00
William S Fulton
2f22e9c889 Typo fix in error messages from swigarch.i 2015-02-04 23:07:18 +00:00
William S Fulton
a33eb5a34a Merge pull request #323 from wolski/patch-1
add @SuppressWarnings("unused") to constructors generated using SWIG_JAVABODY_TYPEWRAPPER macro
2015-02-04 22:43:21 +00:00
Ian Lance Taylor
2752d78ce6 [Go] Use a unique name for the wrapper functions, since they are
publicly visible.  This permits linking together different SWIG
wrappers in the same program if they wrap the same function.  The
unique name is generated by hashing the .swig file.
2015-02-04 13:18:00 -08:00
Witold Wolski
70cccf38fd add @SuppressWarnings("unused") to constructors generated using SWIG_JAVABODY_TYPEWRAPPER macro 2015-02-04 10:12:37 +01:00
Ian Lance Taylor
96134c65a8 Change Go test case to compile with current compiler.
Recent changes caused this to give an error about an unused variable.
2015-02-03 13:55:41 -08:00
William S Fulton
7c2ed7eae5 Python html doc cosmetic tweaks
[skip ci]
2015-02-02 20:00:07 +00:00
William S Fulton
76d813f321 Python director documentation correction
Fixes #https://github.com/swig/www/issues/2
[skip ci]
2015-02-02 19:52:07 +00:00
William S Fulton
7c3eca368b Add Scilab to ANNOUNCE
[skip ci]
2015-02-01 01:05:34 +00:00
William S Fulton
e44e3d3e39 Sun studio workaround for callback testcase 2015-02-01 00:56:28 +00:00
William S Fulton
d834202695 Bump version to 3.0.6
[skip ci]
2015-02-01 00:55:35 +00:00
William S Fulton
939dd5e1c8 Add Scilab to README file 2015-01-31 17:51:17 +00:00
William S Fulton
dbd446f806 C++11 mention in doc Introduction 2015-01-31 17:49:11 +00:00
William S Fulton
72c78591df html fixes 2015-01-31 17:39:37 +00:00
William S Fulton
85145302be Add release info for 3.0.5 2015-01-31 17:39:37 +00:00
William S Fulton
3555842c45 Update changes file 2015-01-31 17:39:37 +00:00
William S Fulton
f1213809a2 Fix python tests for old versions of Python 2015-01-31 17:39:36 +00:00
William S Fulton
76bcec1d87 Test-suite fixes for python -classic
These are mostly workarounds for static class members not being supported for
old style classes, as documented in Python.html, "C++ classes".
2015-01-31 15:04:35 +00:00
William S Fulton
39a75442a1 Fix Python -classic and property setting
Setting properties on classic classes was broken in swig-3.0.3 by attempting to use __setattr__. This regression is fixed now by using __dict__ again when using -classic.

Fixes patch #232.
2015-01-30 23:27:22 +00:00
William S Fulton
727d74f6be Python C89 fix mixed code and declarations compiler error in constants code from patch #250 2015-01-28 08:09:06 +00:00
William S Fulton
625fb309a3 Corrections to changes file 2015-01-27 19:31:59 +00:00
William S Fulton
760d603918 Warning and error fixes for Solaris Sun Studio compiler 2015-01-27 19:30:24 +00:00
William S Fulton
2e8dfbcc3e Add Scilab to html docs 2015-01-27 19:30:24 +00:00
William S Fulton
5dba60943c Scilab html fixes 2015-01-27 19:30:24 +00:00
William S Fulton
75e33bb750 Re-organise .gitignore a bit 2015-01-27 19:30:24 +00:00