Commit graph

20,939 commits

Author SHA1 Message Date
William S Fulton
b463870b0c Add missing VOID definition to windows.i
Closes #358
2019-01-07 18:46:14 +00:00
William S Fulton
c4481362b1
Merge pull request #1396 from ZackerySpytz/OCaml-unused-_v-var
[OCaml] Don't generate unused _v variables
2019-01-07 08:24:33 +00:00
William S Fulton
0c4491eaae Add more tests for C++11 raw string literals
Test added to check fixes for:

- Issue #948 and issue #1019 and issue #1273 - raw string delimiters
  not being stripped off
- Issue #538 - Ruby support for "docstring" feature
2019-01-06 00:10:01 +00:00
William S Fulton
96d33287b4 Fix Ruby docstring feature.
The docstring was not encapsulated within /* */ comments.

The implementation had code for autodoc strings being either single or
multi-line and then adding extra newlines. However, in practice only multi-line
autodoc string are ever generated, so this bit of code handling was removed.
The docstring feature does not attempt to add newlines depending on the
existence of newlines in the docstring.

Closes #538
2019-01-05 19:21:04 +00:00
Zackery Spytz
fe85dd22d8 [OCaml] Don't generate unused _v variables 2019-01-05 11:17:06 -07:00
William S Fulton
a4e48b18e5 Merge branch 'baldurk-raw-strings-issue-948'
* baldurk-raw-strings-issue-948:
  Experimental fix for delimiter leakage in raw strings.
2019-01-04 19:32:45 +00:00
William S Fulton
c8a5ed151c Add changes entry for overloading fix 2019-01-03 20:11:32 +00:00
William S Fulton
6a80ec314a Merge branch 'typecheck-null-nonpointers'
* typecheck-null-nonpointers:
  Fix overloading for non-pointers and NULL - MzScheme
  Overloading for non-pointers and NULL - Chicken
  Fix overloading for non-pointers and NULL - Scilab
  Fix overloading for non-pointers and NULL - R
  Fix overloading for non-pointers and NULL - Php
  Fix overloading for non-pointers and NULL - Octave
  Fix overloading for non-pointers and NULL - Lua
  Overloading for non-pointers and NULL - Javascript
  Fix overloading for non-pointers and NULL - Guile
  Fix overloading for non-pointers and NULL - Tcl
  Fix overloading for non-pointers and NULL - Perl
  Fix overloading for non-pointers and NULL - Ruby
  Add test for overloading and NULL
  Correct Python implicitconv code
  Fix typecheck typemaps for non-pointers and NULL
2019-01-03 08:13:19 +00:00
William S Fulton
539d145b96 Add OCaml test-suite fixes to changes file 2019-01-03 08:09:00 +00:00
William S Fulton
e3d6c3c971
Merge pull request #1391 from ZackerySpytz/OCaml-replace-SWIGSTATIC-with-SWIGINTERN
[OCaml] Replace SWIGSTATIC with SWIGINTERN
2019-01-03 08:04:33 +00:00
William S Fulton
a3ec4e895e
Merge pull request #1392 from ZackerySpytz/OCaml-gitignore
[OCaml] Add an OCaml entry to .gitignore
2019-01-03 07:59:51 +00:00
William S Fulton
f17e993ed7 Remove some non-standard cruft from OCaml test-suite 2019-01-03 07:54:29 +00:00
William S Fulton
5be27fd69c Make OCaml configure output more consistent with other languages 2019-01-03 07:46:29 +00:00
William S Fulton
d247388fdf Merge branch 'ZackerySpytz-OCaml-out-of-source'
* ZackerySpytz-OCaml-out-of-source:
  Don't override SCRIPTDIR.
  Replace mv hack.
  [OCaml] Update OCaml for out-of-source builds
2019-01-03 07:12:31 +00:00
Zackery Spytz
f2a05bda8b Don't override SCRIPTDIR. 2019-01-02 05:01:54 -07:00
Zackery Spytz
5f941bc3c7 Replace mv hack. 2019-01-02 01:33:53 -07:00
William S Fulton
552760b84b Turn Travis OSX Python 3 testing back on
brew is working again with Python 3.7.1
2019-01-01 19:03:18 +00:00
Zackery Spytz
f682490ce9 [OCaml] Add an OCaml entry to .gitignore
[skip ci]
2019-01-01 09:22:36 -07:00
Zackery Spytz
5988c3bb24 [OCaml] Replace SWIGSTATIC with SWIGINTERN
Use SWIGINTERN to silence unused function warnings.

In addition, remove the declarations for SWIG_MustGetPtr(),
wrap_delete_void(), enum_to_int(), and int_to_enum() -- these
lacked definitions and caused compiler warnings.
2019-01-01 06:28:35 -07:00
William S Fulton
a0a1e4a7bf Merge branch 'ZackerySpytz-OCaml-test-suite-keyword-warnings'
* ZackerySpytz-OCaml-test-suite-keyword-warnings:
  [OCaml] Add missing warning filters for OCaml keywords in the test suite
2019-01-01 12:25:11 +00:00
William S Fulton
83b0111d53 Merge branch 'xantares-xml'
* xantares-xml:
  Install xml files

Closes #1388
2019-01-01 12:21:36 +00:00
William S Fulton
07884f10ee Python - remove duplicate proxy method definitions for global function wrappers.
Global functions previously generated two definitions, eg:

  def foo():
      return _example.foo()
  foo = _example.foo

The first definition is replaced by the second definition and so the second definition
is the one used when the method is actually called. Now just the first definition is
generated by default and if the -fastproxy command line option is used, just the second
definition is generated. The second definition is faster as it avoids the proxy Python
method as it calls the low-level C wrapper directly. Using both -fastproxy and -olddefs
command line options will restore the previously generated code as it will generate both
method definitions.

With this change, the wrappers for global C/C++ functions and C++ class methods now work
in the same way wrt to generating just a proxy method by default and control via
-fastproxy/-olddefs options.

Closes #639.
2019-01-01 12:12:56 +00:00
Michel Zou
3c2b8d23ef Install xml files 2018-12-31 15:55:59 +01:00
Zackery Spytz
5c19f4de2f [OCaml] Add missing warning filters for OCaml keywords in the test suite 2018-12-31 05:55:10 -07:00
William S Fulton
0078c7d84d Merge branch 'ZackerySpytz-OCaml-missing-keyword-warnings'
* ZackerySpytz-OCaml-missing-keyword-warnings:
  Update a dead link.
  [OCaml] Add missing keywords to ocamlkw.swg
2018-12-30 22:26:31 +00:00
William S Fulton
330201018a Fix overloading for non-pointers and NULL - MzScheme 2018-12-30 17:12:33 +00:00
William S Fulton
cbc1f7f171 Overloading for non-pointers and NULL - Chicken
Rework this to be consistent with other target languages
2018-12-30 17:03:26 +00:00
William S Fulton
b48339cfca Fix overloading for non-pointers and NULL - Scilab 2018-12-30 14:22:13 +00:00
William S Fulton
f181d20dd1 Fix overloading for non-pointers and NULL - R 2018-12-30 13:46:51 +00:00
William S Fulton
b7db45661a Fix overloading for non-pointers and NULL - Php 2018-12-30 12:00:49 +00:00
William S Fulton
e354ba8cdc Fix overloading for non-pointers and NULL - Octave 2018-12-30 11:25:41 +00:00
William S Fulton
cd7772a274 Fix overloading for non-pointers and NULL - Lua 2018-12-30 10:54:53 +00:00
William S Fulton
ec8d978995 Overloading for non-pointers and NULL - Javascript
Overloading support for Javascript is generally incomplete as there are
no typecheck typemaps, so the overloading and NULL support added here
doesn't work and won't work until the typecheck typemaps are
implemented.
2018-12-30 10:11:35 +00:00
Zackery Spytz
c74ef14bb2 Update a dead link. 2018-12-30 02:51:58 -07:00
Zackery Spytz
701dc125e1 [OCaml] Add missing keywords to ocamlkw.swg
The asr, land, lor, lsl, lsr, lxor, mod, and nonrec keywords were
missing from ocamlkw.swg.
2018-12-30 02:50:46 -07:00
William S Fulton
eb151e43be Fix overloading for non-pointers and NULL - Guile 2018-12-30 09:26:33 +00:00
Zackery Spytz
9973628268 [OCaml] Update OCaml for out-of-source builds
This is one of the steps needed to fix the OCaml test suite.

In addition, disable the creation of toplevels by default in the OCaml
examples (toplevels are currently broken).
2018-12-29 08:24:24 -07:00
William S Fulton
12eb0f81ae Fix overloading for non-pointers and NULL - Tcl 2018-12-29 14:55:43 +00:00
William S Fulton
b1178cf130 Fix overloading for non-pointers and NULL - Perl 2018-12-29 14:15:59 +00:00
William S Fulton
d14c97408d Fix overloading for non-pointers and NULL - Ruby 2018-12-29 14:15:51 +00:00
William S Fulton
2769a8763c Add test for overloading and NULL 2018-12-29 14:15:45 +00:00
William S Fulton
c459019814 .gitinit update
For Examples/python/import_packages
2018-12-29 13:32:19 +00:00
William S Fulton
ef8a92578b Correct Python implicitconv code
Py_None is only possible with implicitconv so move this block of code
into the implicitconv if block.
2018-12-29 12:09:04 +00:00
William S Fulton
3efea1f4ab Fix typecheck typemaps for non-pointers and NULL
The typecheck typemaps succeed for non pointers (SWIGTYPE, SWIGTYPE&,
SWIGTYPE&&) when the equivalent to C NULL is passed from the target
language. This commit implements a fix for Python to not accept a Python
None for non-pointer types.

Issue #1202
2018-12-29 11:45:46 +00:00
William S Fulton
315c7dab06 Remove debug display in python_pythoncode testcase 2018-12-22 18:47:34 +00:00
William S Fulton
f5d2e97228 Python documentation improvements for -olddefs and -builtin performance
The performance figures have been changed because the default options have
changed the performance.

Add some explanation for using -olddefs.
[skip ci]
2018-12-22 12:30:16 +00:00
William S Fulton
5a388863fa director_thread test fixes for MacOS
Add extra debugging and correctly detect MacOS using __APPLE__ macro
2018-12-21 19:08:15 +00:00
William S Fulton
1faf5a879f Avoid thread name checking testing on MacOS
It's not working!
2018-12-21 09:13:09 +00:00
William S Fulton
50f223f454 Fix director_thread test for MacOS
pthread_setname_np is defined differently on MacOS
2018-12-21 09:13:09 +00:00
William S Fulton
d835c69d65 Merge branch 'java-director-thread-name'
* java-director-thread-name:
  Add changes entry for setting Java thread name
  Increased Java thread name size.
  Java directors - more generic thread name setting
  Use prctl method to get thread names, which is available on all NDK versions
  Actually, pthread_getname_np is only available in recent versions of Android (API level >= 26).
  Set thread name when attaching to Android JVM in SWIG Java director
2018-12-20 21:23:29 +00:00