Commit graph

21,382 commits

Author SHA1 Message Date
William S Fulton
6489730892 Fix Octave detection for non-GNU sed on MacOS 2019-05-24 19:30:47 +01:00
Orion Poplawski
ae7c04e204 Adapt OCTAVE_LDFLAGS for Octave 5.1 2019-05-24 19:30:47 +01:00
William S Fulton
e23ae76159 Ruby 1.9 and later testing on Travis xenial
There were (a few) failures using 1.8.7, so document 1.9 and later as
working in SWIG 4.0.
Trusty failure in 2.3.0 was fixed in later versions of Ruby 2.3.x
(expansion of RARRAY_PTR).
2019-05-24 19:30:47 +01:00
Olly Betts
8cae5989b2 Add CHANGES entry for previous commit
Closes https://github.com/swig/swig/pull/1528
2019-05-22 11:38:10 +12:00
Frederik Schubert
b3a3c4f09e Don't add a closing php-tag
This PR removes the closing `?>` PHP tag from generated files. [PSR-2](https://www.php-fig.org/psr/psr-2/) states:

> The closing `?>` tag MUST be omitted from files containing only PHP.

A problem might occur if files with any character after the closing tag are used with `include` or `require`. It might trigger an output and disallow HTTP header manipulation. See the popular [_headers already sent_](https://stackoverflow.com/a/8028987/1847340) debate on SO.
2019-05-22 11:35:08 +12:00
Olly Betts
e87811223c [php] Update docs about undefined constants
PHP 7.2 made these a warning instead of just a notice, and apparently it
will throw an Error in a future version of PHP.
2019-05-22 11:13:55 +12:00
Olly Betts
1dd5d50c99 Fix details of ZEND_MODULE_GLOBALS_ACCESSOR change
This is actually needed when using a ZTS build of any PHP 7.x
release, nothing specific to PHP 7.2 at all.
2019-05-22 11:02:29 +12:00
Zackery Spytz
f042543c6f
Merge pull request #1474 from ZackerySpytz/OCaml-INPUT-OUTPUT-INOUT-primitives
[OCaml] Add missing INPUT, OUTPUT, and INOUT typemaps for primitives
2019-05-13 21:44:02 -06:00
William S Fulton
6a127b75f1 Travis Go testing moved to xenial
The default Go 1.11 version on Travis doesn't work with C++11/C++14:

  gcc_libinit.c:110:3: error: implicit declaration of function ‘nanosleep’

so switch to another gimme version of Go.
2019-05-09 07:41:17 +01:00
William S Fulton
3ccc904b06 Fix php pragmas example include path
Was not working for out of source builds
2019-05-09 07:35:24 +01:00
Zackery Spytz
2f48bec666 Merge remote-tracking branch 'upstream/master' into OCaml-INPUT-OUTPUT-INOUT-primitives 2019-05-08 14:05:02 -06:00
William S Fulton
f06330e720 Move Scilab Travis testing from trusty to xenial 2019-05-07 23:05:53 +01:00
William S Fulton
ed1fabe867 Switch php 7.2 testing to xenial 2019-05-07 19:42:07 +01:00
William S Fulton
ccbc451c7c Disable Travis php 7.2 testing
There is a certificate error on the unsupported Ubuntu Trusty machines.
Php 7.2 is segfaulting on Ubuntu Xenial, so there is work to be done.
2019-05-07 19:38:37 +01:00
William S Fulton
49195c5361 Specify Go version to test with c++11
Default version of Go 1.11.1 on Travis is broken for c++11 testing.

gcc_libinit.c: In function ‘_cgo_try_pthread_create’:
gcc_libinit.c:110:3: error: implicit declaration of function ‘nanosleep’ [-Werror=implicit-function-declaration]
   nanosleep(&ts, nil);
2019-05-04 22:47:19 +01:00
William S Fulton
32c9e2ada8 Travis testing GCC=5 not needed for xenial.
Default compiler is gcc 5 on xenial.
2019-05-04 22:31:48 +01:00
William S Fulton
0cf01afc54 Windows documentation minor improvement 2019-05-04 22:28:35 +01:00
William S Fulton
4539041c50 Travis output optimisation during configure 2019-05-02 21:57:58 +01:00
William S Fulton
00fb2e5629 Travis output optimisation 2019-05-02 21:57:58 +01:00
William S Fulton
25c0397ec4 Travis testing gcc versions
gcc-4.5 has package dependency problems
Add gcc-4.9
2019-05-02 21:57:58 +01:00
William S Fulton
256446d290 Expand Travis testing of core SWIG compilation to include more gcc versions 2019-05-02 21:57:58 +01:00
William S Fulton
48e61eea1d Travis gcc version refactor
Use GCC env variable to hold gcc version to install instead of SWIG_CC
and SWIG_CXX.
2019-05-02 21:57:53 +01:00
William S Fulton
be019a03ce Appveyor testing - make sure language tests are not mistakenly skipped 2019-05-02 19:15:49 +01:00
William S Fulton
78a1515f46 OCaml testing requires camlp4 2019-05-02 07:41:35 +01:00
William S Fulton
dbb5fdda01 Fix php pragmas example
. is not always in the include_path by default
2019-04-30 23:44:41 +01:00
William S Fulton
5d976b0ebe Fix php testcase warning 2019-04-30 23:44:41 +01:00
William S Fulton
9d0cf2ce61 Remove duplicate Travis xenial Octave testing 2019-04-30 23:44:41 +01:00
William S Fulton
6606a164f0 Migrate Travis tests from trusty to xenial
Ubuntu trusty 14.04 is end of life April 2019.
Ubuntu xenial 16.04 is the main platform for Travis now.
Some languages are not working on xenial, so I've left them on trusty
for now.
2019-04-30 23:44:33 +01:00
William S Fulton
6a91723fcf Bump version to 4.0.1 2019-04-28 21:01:21 +01:00
William S Fulton
9c3faeb0ee Travis testing of Go changes
Use gimme to install a version of Go to test. Travis already uses gimme
to pre-install a version of Go.
Switch some of the Go testing from travis to xenial.
2019-04-26 19:48:33 +01:00
William S Fulton
2937f05296 Add 4.0.0 release date 2019-04-26 19:21:40 +01:00
William S Fulton
11b54b0cbd Fix command line error handling to work like in 3.0.12
Output is once again:

  $ swig -versioon
  Unable to find option or file '-versioon', Use 'swig -help' for more information.

instead of

  $ swig -versioon
  No target language specified
2019-04-25 23:13:51 +01:00
Ian Lance Taylor
8a1c09e280 Fix Go tests to run in module mode
Stop using relative imports and add a go.mod file.

Tested against Go 1.6 through Go pre-1.13, and gccgo.
2019-04-24 21:43:38 -07:00
William S Fulton
b04cc850ab Add recent doxygen fixes to changes file 2019-04-24 08:13:19 +01:00
William S Fulton
fbed720b98 Merge branch 'enum-trailing-comma-doxygen'
* enum-trailing-comma-doxygen:
  Fix parsing of enums with trailing comma with -doxygen
2019-04-24 08:08:18 +01:00
William S Fulton
8df627eab8 HTML section numbering update 2019-04-24 08:06:10 +01:00
William S Fulton
fb0adb14c3 Documentation: terminology consistency for command line options plus Doxygen tweaks. 2019-04-24 08:04:15 +01:00
William S Fulton
7bb7ff6f95 Merge branch 'markok314-master'
* markok314-master:
  markok314: fixed section numbering because of inserted Doxygen troubleshooting section
  updated troubleshooting section
  improved section 'troubleshooting', moved before 'Developr info'
  added section 'troubleshooting'
2019-04-24 07:56:01 +01:00
William S Fulton
154b50d925 Merge branch 'pydoc-return-crash'
* pydoc-return-crash:
  Don't crash if type is not available in Python Doxygen code
2019-04-24 07:52:20 +01:00
William S Fulton
03030e98a1 Add -cgo as default to changes file 2019-04-24 07:32:50 +01:00
William S Fulton
8212473b93 Add missing issue number 2019-04-24 07:26:15 +01:00
Marko Klopcic
453fe4cda8 markok314: fixed section numbering because of inserted Doxygen troubleshooting section 2019-04-23 12:24:12 +02:00
Marko Klopcic
57965e29f6 updated troubleshooting section 2019-04-23 11:34:25 +02:00
Marko Klopcic
4c6f33b1c9 improved section 'troubleshooting', moved before 'Developr info' 2019-04-23 10:25:35 +02:00
Marko Klopcic
c3a2b7524e added section 'troubleshooting' 2019-04-23 10:07:42 +02:00
Vadim Zeitlin
74adaa5738 Fix parsing of enums with trailing comma with -doxygen
To correctly parse Doxygen post-comments after the trailing comma,
switch to right recursion in "enumlist" production rule definition: this
does consume more stack space when parsing, but makes the rules much
easier to write and to understand and hopefully shouldn't result in any
problems with real code (which shouldn't have thousands of enums items
in it).

Closes #1514.
2019-04-20 13:52:56 +02:00
Vadim Zeitlin
01a2cd27e7 Don't crash if type is not available in Python Doxygen code
Fix crash if "@return" Doxygen tag was used on a node without any return
type (such as a class, for example). Ignoring it might not be the best
thing to do, but it's definitely better than crashing and it's not
really clear what else could be done anyhow.

Closes #1516.
2019-04-20 13:52:05 +02:00
William S Fulton
d67c133c4a Java/C# std::vector<bool> workarounds for clang
Workaround clang++ 9.1.0 error not knowing std::vector<bool>::const_reference
is actually typedef to bool:

  li_std_vector_wrap.cxx:1838:40: error: no matching constructor for initialization of 'std::vector<bool>::const_reference'

Workaround is use

  const value_type& getitem(int index) throw (std::out_of_range) { ...
  // bool specialization:
  bool getitem(int index) throw (std::out_of_range) { ...

instead of

  const_reference_type getitem(int index) throw (std::out_of_range) { ...

Although the following would be better, it would require a more
complicated implementation:

  const_reference_type getitem(int index) throw (std::out_of_range) { ...
  // bool specialization:
  bool getitem(int index) throw (std::out_of_range) { ...
2019-04-20 11:32:42 +01:00
Ian Lance Taylor
77f075b6e8 When generating Go code, make -cgo the default.
Add new -no-cgo option to disable the default.
Keep -cgo as a no-op for existing users.
2019-04-19 12:49:56 -07:00
William S Fulton
545ab8af08 Fix Visual Studio 2015 and later compilation errors due to snprintf macro definition.
Closes #1508
2019-04-19 11:33:02 +01:00