Commit graph

18,464 commits

Author SHA1 Message Date
William S Fulton
7fa1058a8a Configure fix and warning fix for Go 2015-03-14 23:40:30 +00:00
Ian Lance Taylor
32bb4dcd6d Merge branch 'master' of git://github.com/swig/swig 2015-03-12 08:14:17 -07:00
Ian Lance Taylor
eccfa288b8 [Go] Consistently use the same type when dispatching to an overloaded
function.
2015-03-12 08:13:16 -07:00
Olly Betts
7ba0652677 Create director_common.swg for language-indep code
Move -DSWIG_DIRECTOR_STATIC handling there, so this is now supported for
all languages with director support, not just Python and PHP.
2015-03-12 19:51:11 +13:00
Olly Betts
c4268c369b Fix cut-and-paste typo 2015-03-12 17:50:52 +13:00
Olly Betts
09b5ea542b Merge pull request #352 from ibell/patch-6
Added some information on manually compiling for R
2015-03-11 12:43:20 +13:00
Ian Bell
a2513b083a Added some information on manually compiling for R
This was the root of my problem, and it would have been good to have this clearly explained before.
2015-03-10 10:07:05 -06:00
William S Fulton
95cc6c9561 .travis.yml branch builds correction
[skip ci]
2015-03-10 07:25:23 +00:00
Ian Lance Taylor
4c399718d0 [Go] Add -I $(SRCDIR) to CGO_CPPFLAGS. 2015-03-09 10:06:04 -07:00
Ian Lance Taylor
b1311b0d88 [Go] Use -I ../../.. instead of -I $(pwd) to see if this helps with
Travis.  (Travis is reporting failures that I can not recreate.)
2015-03-08 20:30:47 -07:00
Ian Lance Taylor
a6a9a89524 [Go] Fix overloading on an undefined type. 2015-03-06 17:51:30 -08:00
Ian Lance Taylor
b15a66f2ab [Go] Use imtype when checking for pointer in cgo type. Permit func,
map, chan values to be converted to pointers when using cgo.
2015-03-04 14:25:10 -08:00
Ian Lance Taylor
9ad497c08e [Go] Add -cgo option, required for Go version 1.5 and later. 2015-03-02 14:03:33 -08:00
Olly Betts
df36d84f1b Avoid debug code segfaults when top==NULL 2015-02-26 14:59:49 +13:00
Olly Betts
de1cae9319 Fix segmentation fault when top==NULL
Introduced by nested class handling (reported in issue#346 by Paweł Tomulik).
2015-02-26 14:57:19 +13:00
Ian Lance Taylor
1dd401899f [Go] Change SWIG directors to use a handle instead of a Go pointer.
In future releases of Go it will not be possible to pass Go pointers
into C/C++ code.  The handle is automatically translated back to the
Go value using a Go map.  Since directors must be explicitly deleted,
we can reliably use that call to remove the handle from the map.
2015-02-22 11:09:58 -08:00
Ian Lance Taylor
40f5b1ecc6 [Go] Fixes so that the go_subdir_import test will work with gccgo. 2015-02-22 11:01:24 -08:00
Ian Lance Taylor
6866c96348 Merge pull request #331 from mishas/go-subimports
Fixed SWIG go for cases when SWIG %import-s another package which is located in a subdirectory.
2015-02-17 06:48:32 -08:00
Misha Seltzer
beed5f3479 Changed to using $() instead of ${} in the makefile for consistancy 2015-02-17 10:27:45 +02:00
Misha Seltzer
9e2c75c2a8 Fix running tests when the test build outputs are generated in a different folder. (Fixes Travis' test runs). 2015-02-17 10:27:45 +02:00
Misha Seltzer
fcf2b68e84 Fixed errors due to last sync. 2015-02-17 10:27:45 +02:00
Misha Seltzer
8da4d20308 Fixed SWIG go for cases when SWIG %import-s another package which is located in a subdirectory. 2015-02-17 10:27:45 +02:00
Olly Betts
ece9854e8f Give more helpful message for "make dist" 2015-02-17 16:00:22 +13:00
Olly Betts
9842bada7c Fix typo 2015-02-15 18:56:02 +13:00
Simon Marchetto
4b2ccd2892 scilab: fix compilation error on Windows 2015-02-13 12:07:27 +01:00
William S Fulton
ec4b711d70 Merge branch 'besser82-bugfix/build-on-s390-arch'
* besser82-bugfix/build-on-s390-arch:
  Fix build on S390(x)-architecture
2015-02-11 23:55:16 +00:00
William S Fulton
60aecaba58 Restore some incorrectly commented out lines in .travis.yml 2015-02-11 23:50:29 +00:00
William S Fulton
f8491f8ab0 Merge branch 'clang-warning-fixes'
* clang-warning-fixes:
  Correct Examples makefile for guile
  Suppress clang warning in testcase
  preproc_constants warning suppression when using clang
  Warning suppression in li_std_vector_extra testcase for clang
  preproc_constants warning suppression when using clang
  Modify preproc testcase to remove clang warning
  Rename test warning suppressions when using clang
  primitive_types testcase improvement
2015-02-11 23:44:20 +00:00
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
Jitka Plesnikova
60f2640087 Fix build on S390(x)-architecture 2015-02-11 22:26:00 +01: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