Commit graph

21,945 commits

Author SHA1 Message Date
William S Fulton
82fb0540ca Modernise C++11 compiler support detection in autotools
Replace AX_CXX_COMPILE_STDCXX_11 with AX_CXX_COMPILE_STDCXX
from autoconf archive.
2021-03-20 00:53:13 +00:00
William S Fulton
67cfaf5a80 Remove -ansi from default compilation flags
Closes #1610
2021-03-20 00:53:12 +00:00
William S Fulton
32df3a70ee Remove redundant Appveyor allow_failures 2021-03-20 00:53:05 +00:00
Erik Smistad
45c015b631 Added windows build instructions for MSYS2 2021-03-19 22:31:32 +00:00
William S Fulton
84259dfc6e Suppress Visual C++ warning in cpp_typedef testcase 2021-03-19 22:04:25 +00:00
William S Fulton
d8e167ad9c Changes file entry for Java long long arrays 2021-03-19 22:03:50 +00:00
William S Fulton
3163888c4b Merge branch 'java-jlong-cleanup'
* java-jlong-cleanup:
  Lib/java/arrays_java.i: use actual C/C++ type in JAVA_ARRAYS_TYPEMAPS.
  Lib/java/javahead.swg: clean up jlong handling.
2021-03-19 21:40:23 +00:00
William S Fulton
22e82c2111 Appveyor Windows testing changes
- Update jdk1.8->1.15 for x64 testing
- Add Visual Studio 2017 (vc++ 15) testing
- Add Visual Studio 2019 (vc++ 16) testing
- Add python-3.7 and python-3.8 testing
2021-03-19 21:28:08 +00:00
Andy Polyakov
1eebc2335a Lib/java/arrays_java.i: use actual C/C++ type in JAVA_ARRAYS_TYPEMAPS.
long long[] map was using JNI type as C/C++ type. General spirit of
JAVA_ARRAYS_TYPEMAPS is to cast individual array elements, not to
rely on potentially incompatible pointer casts.
2021-03-19 16:29:48 +01:00
Andy Polyakov
971e1154af Lib/java/javahead.swg: clean up jlong handling.
As for __int64 definition. __int64 is a non-standard Visual-C-specific
type used in win32/jni_md.h. It is defined by other Win32 compilers in
one way or another, obviously for compatibility. It's more appropriate
to give the compiler a chance to make necessary arrangements instead
of reinventing the wheel. This, giving a chance, can be achieved by
including virtually any standard header. Since jni.h includes stdio.h,
defining __int64 in javahead.swg is redundant. Since doing so actually
triggers compilation errors on MinGW if a system header is included
in the %begin section, it's arguably appropriate to omit it.

As for #undef _LP64 removal. Undefining a pre-defined macro, which
_LP64 is, is bad style, and if followed by inclusion of systems
headers, it's actually error-prone. Log suggests that it was added
to resolve a warning. I'm inclined to believe that it rather was a
misunderstanding of some kind. Or a bug in warning subsystem of
some particular compiler version, in which case it would have been
more appropriate to advise users to ignore the warning.
2021-03-19 16:29:48 +01:00
William S Fulton
2861f01e3d Restore MinGW testing on Appveyor
Replace Python-2.7 testing with Java testing on MinGW
2021-03-19 09:25:52 +00:00
William S Fulton
3b822ee60c Upgrade osx on Travis to fix unsupported platform errors 2021-03-18 23:42:09 +00:00
William S Fulton
cf639b2794
Merge pull request #1909 from treitmayr/ruby-additional-tests
Add and improve Ruby test cases in the context of nesting and namespaces
2021-03-18 23:09:20 +00:00
Olly Betts
71475b0af9 Improve PHP object creation
Reportedly the code we were using in the directorin case gave segfaults
in PHP 7.2 and later - we've been unable to reproduce these, but the new
approach is also simpler and should be bit faster too.

Fixes #1527, #1975
2021-03-19 08:45:33 +13:00
Olly Betts
b7dedecfdd php: Fix char* typecheck typemap to accept Null
The corresponding in typemap already does.

Fixes #1655, reported by CJSlominski.
2021-03-19 08:34:15 +13:00
William S Fulton
157465f65b Test latest Go 1.16 on Travis 2021-03-17 22:55:35 +00:00
William S Fulton
2504354489 Add ruby 3.0 testing
testflags tweak for C standard > c90

Only add -Wdeclaration-after-statement for > c90 as c99 allows
declarations after a statement.
2021-03-17 22:55:35 +00:00
William S Fulton
34acf2cea6 Travis: update ruby rvm installation for ruby-3.0 2021-03-17 22:55:35 +00:00
Olly Betts
2e7da86b2c php: Fix overloaded directed methods with non-void return
We were treating  such methods like constructors and assigning to the
internal _cPtr, which just seems bizarrely wrong.

Fixes #1900
2021-03-18 10:58:44 +13:00
Olly Betts
57cb95318a [ci] Remove PHP 7.2 from allow_failures
The comment says "seg fault in director_basic testcase" but the
this build is passing now.
2021-03-17 14:10:13 +13:00
Olly Betts
6b5b682eed Add php7.4 to list configure checks for 2021-03-17 12:40:14 +13:00
Olly Betts
1b9d51b925 [ci] Add build for PHP 7.4 2021-03-17 12:34:45 +13:00
Thomas Reitmayr
505ffde655 Add justification for suppressing warnings in Ruby test case
In the same file removed a useless class for comparing versions.
2021-03-16 22:09:50 +01:00
Olly Betts
4e0997cd5a Conditionalise math.i for PHP
PHP already provides all the wrapped constants and all the wrapped
functions except fabs() (PHP provides abs() instead).  Rewrapping
the constants causes warnings or errors (depending on PHP version)
and the rewrapped functions seem to be hidden by the built-in
versions, so only wrap fabs() for PHP.

(Even a wrapper for fabs() seems of little use since abs() is already
provided, but really math.i seems of little use more generally since
any general purpose programming language will provide its own maths
functions and constants - the key motivation here is to eliminate
warnings and errors from running the testsuite.)
2021-03-17 09:43:15 +13:00
Olly Betts
6afc3e3504 Update PHP director_basic expected classes+funcs
Fixes warnings from test suite introduced in
c259702314.
2021-03-17 09:35:39 +13:00
William S Fulton
3f391478c4 Merge branch 'v8-context-aware-race-free-preparation'
* v8-context-aware-race-free-preparation:
  Lib/javascript/v8: use ::Cast instead of To* when possible.
  Lib/javascript/v8/javascriptrun.swg: clean up pre-processor conditions.
  Lib/javascript/jsc/javascriptinit.swg: shortcut JSGlobalContextRef casts.
  Examples/test-suite/grouping.i: resolve compiler warning.
2021-03-11 22:48:38 +00:00
William S Fulton
6aef217438 Add Javascript (JSC) support for type conversion
Fix types_directive testcase to ensure the %types code is actually
called and not just cast from one type to the other.
2021-03-11 20:18:58 +00:00
William S Fulton
9739be60d0 Add two Javascript testcases converted from Python 2021-03-11 20:10:18 +00:00
William S Fulton
04b46cc8a3 Javascript type conversion support
Add testcase for previous commit.
Add missing assert for future type conversions support that will use
the heap instead of pointer casts (for smart pointer type conversions).

Closes #1963
2021-03-11 20:10:13 +00:00
Andy Polyakov
2870e750f0 Lib/javascript/v8: use ::Cast instead of To* when possible.
If type is checked with Is*, it's safe to use corresponding ::Cast,
which is more optimal.
2021-03-10 14:51:08 +01:00
Andy Polyakov
b56814ce08 Lib/javascript/v8/javascriptrun.swg: clean up pre-processor conditions.
Harmonize javascriptcode.swg javascripthelpers.swg and clarify
documentation.
2021-03-10 14:51:08 +01:00
Andy Polyakov
0c10c0596f Lib/javascript/jsc/javascriptinit.swg: shortcut JSGlobalContextRef casts. 2021-03-10 14:48:18 +01:00
Andy Polyakov
3edccb615d Examples/test-suite/grouping.i: resolve compiler warning. 2021-03-10 14:48:18 +01:00
Sergio Garcia Murillo
fee5e239ec Use SWIG_TypeCast in SWIG_V8_ConvertInstancePtr if types don't match (#3)
Use SWIG_TypeCast in SWIG_V8_ConvertInstancePtr if types don't match
2021-03-10 08:34:45 +00:00
William S Fulton
dff8c395fe Add node 14 testing on Travis 2021-03-07 11:42:59 +00:00
William S Fulton
d16d6054b5 Appveyor - show cmake version 2021-03-07 11:42:59 +00:00
William S Fulton
bbe9807d86 Travis cmake tweaks
Reduce amount of testing.
Display cmake version used.
2021-03-07 11:42:59 +00:00
Michel Zou
167164885d CI: Warnings as errors 2021-03-07 11:20:39 +00:00
Michel Zou
ee8d47cec4 Fix few unused variable warnings 2021-03-07 11:20:31 +00:00
Michel Zou
c6af0c5a67 CMake: Escape backslashes in SWIG_LIB_WIN_UNIX 2021-03-06 19:52:44 +01:00
William S Fulton
513ea736d3 Merge branch 'array_fix'
* array_fix:
  add javascript_arays.i fix to changes file
  Convert javascript_arrays.i example into testcase
  Update .gitignore for java doxygen output
  Javascript code formatting corrections
  Fix Javascript arrays for modern node versions
  Fix for new SWIGV8_ARRAY_NEW definition
  Proper array typemaps in Javascript
2021-03-06 11:08:58 +00:00
William S Fulton
d007f35e05 add JSC SetModule/GetModule enhancement to changes file 2021-03-06 11:07:39 +00:00
William S Fulton
0b2d5ffa6e add javascript_arays.i fix to changes file 2021-03-06 11:06:12 +00:00
William S Fulton
227614056b Convert javascript_arrays.i example into testcase 2021-03-06 10:55:47 +00:00
William S Fulton
22c8b33edd Update .gitignore for java doxygen output 2021-03-06 10:54:36 +00:00
William S Fulton
db175f76c1
Merge pull request #1957 from dot-asm/v8-context-aware
Lib/javascript/v8: use context-aware initialization.
2021-03-05 22:28:42 +00:00
William S Fulton
b6aa39b82a Javascript code formatting corrections 2021-03-03 22:22:47 +00:00
William S Fulton
c4d003e442 Fix Javascript arrays for modern node versions 2021-03-03 22:19:29 +00:00
William S Fulton
53bdc3964d Fix for new SWIGV8_ARRAY_NEW definition 2021-03-03 22:19:22 +00:00
William S Fulton
1a4dc82931
Merge branch 'master' into array_fix 2021-03-03 21:54:30 +00:00