Commit graph

21,881 commits

Author SHA1 Message Date
William S Fulton
3231dd3619 Merge branch 'windows-cmake-doc'
* windows-cmake-doc:
  Remove duplicate and update to nuget installs
  Remove duplicate section
  Add link on main Contents page
  Add CMake build steps on Windows
2021-03-01 23:52:25 +00:00
William S Fulton
5329fdf7a1 Merge branch 'cmake-simple'
* cmake-simple:
  CMake test, run -swiglib
  Misc fixes
  Enable cmake build in CI
  Initial CMake configuration.
2021-03-01 23:44:01 +00:00
William S Fulton
4ba9d9a8ec CMake test, run -swiglib 2021-03-01 23:42:52 +00:00
William S Fulton
bff805dae5 Merge branch 'ignore-empty-doxygen-commands'
* ignore-empty-doxygen-commands:
  Fix incorrect warning "Unknown Doxygen command: ."
  Don't use invalid iterators in Doxygen command parsing code

Conflicts:
	CHANGES.current
2021-03-01 23:14:53 +00:00
William S Fulton
69f9509c2b Fix incorrect warning "Unknown Doxygen command: ." 2021-03-01 23:12:21 +00:00
William S Fulton
e74876f1b8 Add table of v8/node versions 2021-03-01 22:08:12 +00:00
Andy Polyakov
1abb726d69 configure.ac: pick up javascriptcoregtk-4.0,3.0 if available.
Ubuntu 20 doesn't have libwebkitgtk-dev/libjavascriptcoregtk-1.0-dev,
but it has 4.0. Ubuntu 18 provides 3.0 as option.
2021-03-01 15:51:12 +01:00
William S Fulton
4b64becbbb OUTPUT typemaps on methods that don't return void
SWIGJSC_ValueIsArray could be implemented by JSValueIsArray in later
versions of Javascript webkit, similar fix to previous commits for v8.

Enhance testing of OUTPUT typemaps to test more than one output.
2021-03-01 14:20:18 +00:00
William S Fulton
5ed74fd19b Add fix for bad constructor call crash to changes file 2021-02-28 22:05:03 +00:00
William S Fulton
1de4a3a8f6 Add Javascript test for missing new in constructor call
Testcase for issue #969 and issue #626
2021-02-28 22:01:32 +00:00
William S Fulton
30216c4fb8 Merge branch 'js-fix-626'
* js-fix-626:
  Added check to prevent crash on illegal constructor call
2021-02-28 22:00:55 +00:00
William S Fulton
00e64d7a49 Document Javascript OUTPUT typemap fix 2021-02-28 21:58:45 +00:00
William S Fulton
769dc27bcd Javascript: Add runtime tests for typemaps.i
Tests fix in previous couple of commits.
2021-02-28 21:01:56 +00:00
William S Fulton
7005b156cc Modify SWIGV8_AppendOutput to work with newer versions of node 2021-02-28 20:59:46 +00:00
Olegs Jeremejevs
f7756be391 Fix SWIGV8_AppendOutput for OUTPUT typemaps
Create array to append to if the existing return type is not void.

Closes #405
Closes #1121
2021-02-28 20:46:38 +00:00
William S Fulton
59b780efed Cosmetic whitespace 2021-02-28 20:26:03 +00:00
William S Fulton
11deb82354 Restore complex number support for ancient v8 versions 2021-02-27 22:18:47 +00:00
William S Fulton
0e36b5d6fd Fixes for node v12.0-12.5 2021-02-27 22:18:27 +00:00
William S Fulton
7cb719ee67 -Wunused-result fixes for Node < 12
Fix 0533fc26c which adds in calls to Check(), which was added in Node 12.
Also fix e6315eedd which calls the new Set() and Check() method.
2021-02-27 22:17:59 +00:00
William S Fulton
1d4ef62466 Node: Fix handling of large unsigned values
Closes #1269
2021-02-26 23:31:12 +00:00
William S Fulton
bcc0b6b616 Use SWIGV8_INTEGER_NEW_UNS always for unsigned long long 2021-02-26 23:24:49 +00:00
Sergio Garcia Murillo
355ef40bc1 Use SWIGV8_INTEGER_NEW_UNS always for unsigned values 2021-02-26 23:23:36 +00:00
William S Fulton
5f76f7e318 Travis testing node 12 now working 2021-02-26 22:45:06 +00:00
William S Fulton
e6315eedd0 Fix -Wunused-result warnings in node wrappers 2021-02-26 22:38:28 +00:00
William S Fulton
0533fc26ca Fix -Wunused-result warnings in node wrappers 2021-02-26 22:23:57 +00:00
William S Fulton
776917e43e Javascript: Stop using deprecated Array::Get method 2021-02-26 21:52:05 +00:00
Michel Zou
3d049f6b2a Misc fixes 2021-02-26 17:07:59 +01:00
Michel Zou
72aefd2207 Enable cmake build in CI 2021-02-25 10:50:41 +01:00
Oliver Buchtala
2981eda00d Initial CMake configuration.
Needs to be tested under OSX and Windows.
2021-02-25 10:50:41 +01:00
William S Fulton
7ba19e7586 Document node v12 support and minimum is now v6
Code to remove support for node v0.10 upto v6 is still to be removed.
2021-02-24 22:22:36 +00:00
William S Fulton
7b37c8cd02 Merge branch 'pr/new-node-fixes'
* pr/new-node-fixes:
  Travis testing: Node 12 support not fully working yet
  Revert "Merge pull request #3 from tungntpham/new-node-fixes-refactor"
  OPTIM: Restructured the code where it checks for V8 version, removing duplicate code and potentially improving the readability.
  Nodejs: run tests against Node.js v12
  Add support for Node.js v12
  Replace Handle with Local depending on Node.js version
  Introduce macros to support both Handle and Local types
2021-02-24 22:14:47 +00:00
William S Fulton
1edc58d8fe Travis testing: Node 12 support not fully working yet 2021-02-24 22:11:10 +00:00
William S Fulton
c3c4ec1e88 html link corrections 2021-02-24 22:07:36 +00:00
sethg
f0bf789db0 Remove duplicate and update to nuget installs 2021-02-23 13:16:07 +01:00
sethg
a1fdfe7d65 Remove duplicate section 2021-02-23 12:49:30 +01:00
sethg
da33383ea2 Add link on main Contents page 2021-02-23 00:38:41 +01:00
sethg
896e8d8654 Add CMake build steps on Windows 2021-02-23 00:34:55 +01:00
Vadim Zeitlin
8cbeb084c4 Don't use invalid iterators in Doxygen command parsing code
Check that the string is non-empty before dereferencing its begin()
iterator and avoid calling addDoxyCommand() with an empty string in the
first place.
2021-02-22 21:15:03 +01:00
William S Fulton
ac8de714af Travis testing tcl for MacOSX10.14 and later
Used suggestion from
https://www.postgresql-archive.org/PG-vs-macOS-Mojave-td6047357.html#a6056680
to add in sysroot.

Note that the examples failed at runtime unless tcl was installed from homebrew:
  brew install --cask tcl
2021-02-20 14:50:01 +00:00
William S Fulton
d344698934 Travis osx: install tcl 2021-02-20 14:49:52 +00:00
William S Fulton
38530af028 brew-install now handles more than one argument 2021-02-20 14:49:52 +00:00
William S Fulton
b58e44700a Travis: skip make check-maintainer-clean on osx
Often fails with: rm: Resource temporarily unavailable
2021-02-20 14:49:52 +00:00
William S Fulton
f7b5fea09f Travis osx: Disable octave testing
Octave 6.1 is installed and has a new non-backwards compatible API
2021-02-20 14:47:04 +00:00
William S Fulton
ad3f3b6ed5 Travis osx: perl needs installing now 2021-02-20 14:47:03 +00:00
William S Fulton
7d85efbf3c Lua example fix for newer osx 2021-02-20 14:47:03 +00:00
William S Fulton
33c547d079 Travis osx - guile is now pre-installed 2021-02-20 14:47:03 +00:00
William S Fulton
3716e7348e Travis: brew list versions 2021-02-20 14:46:48 +00:00
William S Fulton
b65ec5c369 Travis update to use newer macOS 10.15.7 xcode12.2 2021-02-20 14:45:38 +00:00
William S Fulton
6358510c57 Travis: disable MinGW testing
MinGW server seems to be offline
2021-02-19 21:50:43 +00:00
William S Fulton
1ec44da352
Merge pull request #1945 from ZackerySpytz/attribute-attribute2ref-typos
Fix typos in attribute2ref() in Lib/typemaps/attribute.swg
2021-02-17 17:57:34 +00:00