koffi 2.2.3 → 2.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{ChangeLog.md → CHANGELOG.md} +19 -3
- package/LICENSE.txt +160 -656
- package/README.md +1 -1
- package/doc/calls.md +277 -0
- package/doc/changes.md +1 -1
- package/doc/functions.md +17 -275
- package/doc/index.rst +4 -2
- package/doc/misc.md +97 -0
- package/doc/pointers.md +135 -0
- package/doc/static/custom.css +3 -3
- package/doc/types.md +3 -193
- package/package.json +4 -4
- package/src/cnoke/LICENSE.txt +160 -656
- package/src/cnoke/assets/FindCNoke.cmake +3 -3
- package/src/cnoke/assets/win_delay_hook.c +3 -3
- package/src/cnoke/cnoke.js +3 -3
- package/src/cnoke/package.json +2 -2
- package/src/core/libcc/libcc.cc +4 -4
- package/src/core/libcc/libcc.hh +3 -3
- package/src/koffi/CMakeLists.txt +3 -3
- package/src/koffi/benchmark/CMakeLists.txt +3 -3
- package/src/koffi/benchmark/atoi_koffi.js +3 -3
- package/src/koffi/benchmark/atoi_napi.cc +3 -3
- package/src/koffi/benchmark/atoi_napi.js +3 -3
- package/src/koffi/benchmark/atoi_node_ffi.js +3 -3
- package/src/koffi/benchmark/benchmark.js +3 -3
- package/src/koffi/benchmark/rand_koffi.js +3 -3
- package/src/koffi/benchmark/rand_napi.cc +3 -3
- package/src/koffi/benchmark/rand_napi.js +3 -3
- package/src/koffi/benchmark/rand_node_ffi.js +3 -3
- package/src/koffi/benchmark/raylib_cc.cc +3 -3
- package/src/koffi/benchmark/raylib_cc.js +3 -3
- package/src/koffi/benchmark/raylib_koffi.js +3 -3
- package/src/koffi/benchmark/raylib_node_ffi.js +3 -3
- package/src/koffi/benchmark/raylib_node_raylib.js +3 -3
- package/src/koffi/build/2.2.5/koffi_darwin_arm64.tar.gz +0 -0
- package/src/koffi/build/2.2.5/koffi_darwin_x64.tar.gz +0 -0
- package/src/koffi/build/2.2.5/koffi_freebsd_arm64.tar.gz +0 -0
- package/src/koffi/build/2.2.5/koffi_freebsd_ia32.tar.gz +0 -0
- package/src/koffi/build/2.2.5/koffi_freebsd_x64.tar.gz +0 -0
- package/src/koffi/build/2.2.5/koffi_linux_arm32hf.tar.gz +0 -0
- package/src/koffi/build/2.2.5/koffi_linux_arm64.tar.gz +0 -0
- package/src/koffi/build/2.2.5/koffi_linux_ia32.tar.gz +0 -0
- package/src/koffi/build/2.2.5/koffi_linux_riscv64hf64.tar.gz +0 -0
- package/src/koffi/build/2.2.5/koffi_linux_x64.tar.gz +0 -0
- package/src/koffi/build/2.2.5/koffi_openbsd_ia32.tar.gz +0 -0
- package/src/koffi/build/2.2.5/koffi_openbsd_x64.tar.gz +0 -0
- package/src/koffi/build/2.2.5/koffi_win32_arm64.tar.gz +0 -0
- package/src/koffi/build/2.2.5/koffi_win32_ia32.tar.gz +0 -0
- package/src/koffi/build/2.2.5/koffi_win32_x64.tar.gz +0 -0
- package/src/koffi/src/abi_arm32.cc +3 -3
- package/src/koffi/src/abi_arm32_fwd.S +3 -3
- package/src/koffi/src/abi_arm64.cc +3 -3
- package/src/koffi/src/abi_arm64_fwd.S +3 -3
- package/src/koffi/src/abi_arm64_fwd.asm +3 -3
- package/src/koffi/src/abi_riscv64.cc +3 -3
- package/src/koffi/src/abi_riscv64_fwd.S +3 -3
- package/src/koffi/src/abi_trampolines.inc +3 -3
- package/src/koffi/src/abi_x64_sysv.cc +3 -3
- package/src/koffi/src/abi_x64_sysv_fwd.S +3 -3
- package/src/koffi/src/abi_x64_win.cc +3 -3
- package/src/koffi/src/abi_x64_win_fwd.asm +3 -3
- package/src/koffi/src/abi_x86.cc +3 -3
- package/src/koffi/src/abi_x86_fwd.S +3 -3
- package/src/koffi/src/abi_x86_fwd.asm +3 -3
- package/src/koffi/src/call.cc +3 -3
- package/src/koffi/src/call.hh +3 -3
- package/src/koffi/src/ffi.cc +5 -5
- package/src/koffi/src/ffi.hh +3 -7
- package/src/koffi/src/index.js +3 -3
- package/src/koffi/src/parser.cc +3 -3
- package/src/koffi/src/parser.hh +3 -3
- package/src/koffi/src/util.cc +3 -3
- package/src/koffi/src/util.hh +3 -3
- package/src/koffi/src/win32.hh +3 -3
- package/src/koffi/test/CMakeLists.txt +3 -3
- package/src/koffi/test/async.js +3 -3
- package/src/koffi/test/callbacks.js +3 -3
- package/src/koffi/test/misc.c +3 -3
- package/src/koffi/test/raylib.js +3 -3
- package/src/koffi/test/sqlite.js +3 -3
- package/src/koffi/test/sync.js +3 -3
- package/src/koffi/test/win32.c +3 -3
- package/src/koffi/test/win32.js +3 -3
- package/src/koffi/tools/qemu.js +4 -4
- package/src/koffi/tools/write_trampolines.py +3 -3
- package/doc/memory.md +0 -33
- package/src/koffi/build/2.2.3/koffi_darwin_arm64.tar.gz +0 -0
- package/src/koffi/build/2.2.3/koffi_darwin_x64.tar.gz +0 -0
- package/src/koffi/build/2.2.3/koffi_freebsd_arm64.tar.gz +0 -0
- package/src/koffi/build/2.2.3/koffi_freebsd_ia32.tar.gz +0 -0
- package/src/koffi/build/2.2.3/koffi_freebsd_x64.tar.gz +0 -0
- package/src/koffi/build/2.2.3/koffi_linux_arm32hf.tar.gz +0 -0
- package/src/koffi/build/2.2.3/koffi_linux_arm64.tar.gz +0 -0
- package/src/koffi/build/2.2.3/koffi_linux_ia32.tar.gz +0 -0
- package/src/koffi/build/2.2.3/koffi_linux_riscv64hf64.tar.gz +0 -0
- package/src/koffi/build/2.2.3/koffi_linux_x64.tar.gz +0 -0
- package/src/koffi/build/2.2.3/koffi_openbsd_ia32.tar.gz +0 -0
- package/src/koffi/build/2.2.3/koffi_openbsd_x64.tar.gz +0 -0
- package/src/koffi/build/2.2.3/koffi_win32_arm64.tar.gz +0 -0
- package/src/koffi/build/2.2.3/koffi_win32_ia32.tar.gz +0 -0
- package/src/koffi/build/2.2.3/koffi_win32_x64.tar.gz +0 -0
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
// This program is free software: you can redistribute it and/or modify
|
|
2
|
-
// it under the terms of the GNU
|
|
2
|
+
// it under the terms of the GNU Lesser General Public License as published by
|
|
3
3
|
// the Free Software Foundation, either version 3 of the License, or
|
|
4
4
|
// (at your option) any later version.
|
|
5
5
|
//
|
|
6
6
|
// This program is distributed in the hope that it will be useful,
|
|
7
7
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
8
8
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
9
|
-
// GNU
|
|
9
|
+
// GNU Lesser General Public License for more details.
|
|
10
10
|
//
|
|
11
|
-
// You should have received a copy of the GNU
|
|
11
|
+
// You should have received a copy of the GNU Lesser General Public License
|
|
12
12
|
// along with this program. If not, see https://www.gnu.org/licenses/.
|
|
13
13
|
|
|
14
14
|
extern "C" int Trampoline0; extern "C" int TrampolineX0;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
// This program is free software: you can redistribute it and/or modify
|
|
2
|
-
// it under the terms of the GNU
|
|
2
|
+
// it under the terms of the GNU Lesser General Public License as published by
|
|
3
3
|
// the Free Software Foundation, either version 3 of the License, or
|
|
4
4
|
// (at your option) any later version.
|
|
5
5
|
//
|
|
6
6
|
// This program is distributed in the hope that it will be useful,
|
|
7
7
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
8
8
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
9
|
-
// GNU
|
|
9
|
+
// GNU Lesser General Public License for more details.
|
|
10
10
|
//
|
|
11
|
-
// You should have received a copy of the GNU
|
|
11
|
+
// You should have received a copy of the GNU Lesser General Public License
|
|
12
12
|
// along with this program. If not, see https://www.gnu.org/licenses/.
|
|
13
13
|
|
|
14
14
|
#if defined(__x86_64__) && !defined(_WIN32)
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
# This program is free software: you can redistribute it and/or modify
|
|
2
|
-
# it under the terms of the GNU
|
|
2
|
+
# it under the terms of the GNU Lesser General Public License as published by
|
|
3
3
|
# the Free Software Foundation, either version 3 of the License, or
|
|
4
4
|
# (at your option) any later version.
|
|
5
5
|
#
|
|
6
6
|
# This program is distributed in the hope that it will be useful,
|
|
7
7
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
8
8
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
9
|
-
# GNU
|
|
9
|
+
# GNU Lesser General Public License for more details.
|
|
10
10
|
#
|
|
11
|
-
# You should have received a copy of the GNU
|
|
11
|
+
# You should have received a copy of the GNU Lesser General Public License
|
|
12
12
|
# along with this program. If not, see https://www.gnu.org/licenses/.
|
|
13
13
|
|
|
14
14
|
#ifdef __APPLE__
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
// This program is free software: you can redistribute it and/or modify
|
|
2
|
-
// it under the terms of the GNU
|
|
2
|
+
// it under the terms of the GNU Lesser General Public License as published by
|
|
3
3
|
// the Free Software Foundation, either version 3 of the License, or
|
|
4
4
|
// (at your option) any later version.
|
|
5
5
|
//
|
|
6
6
|
// This program is distributed in the hope that it will be useful,
|
|
7
7
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
8
8
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
9
|
-
// GNU
|
|
9
|
+
// GNU Lesser General Public License for more details.
|
|
10
10
|
//
|
|
11
|
-
// You should have received a copy of the GNU
|
|
11
|
+
// You should have received a copy of the GNU Lesser General Public License
|
|
12
12
|
// along with this program. If not, see https://www.gnu.org/licenses/.
|
|
13
13
|
|
|
14
14
|
#if defined(_WIN32) && (defined(__x86_64__) || defined(_M_AMD64))
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
; This program is free software: you can redistribute it and/or modify
|
|
2
|
-
; it under the terms of the GNU
|
|
2
|
+
; it under the terms of the GNU Lesser General Public License as published by
|
|
3
3
|
; the Free Software Foundation, either version 3 of the License, or
|
|
4
4
|
; (at your option) any later version.
|
|
5
5
|
;
|
|
6
6
|
; This program is distributed in the hope that it will be useful,
|
|
7
7
|
; but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
8
8
|
; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
9
|
-
; GNU
|
|
9
|
+
; GNU Lesser General Public License for more details.
|
|
10
10
|
;
|
|
11
|
-
; You should have received a copy of the GNU
|
|
11
|
+
; You should have received a copy of the GNU Lesser General Public License
|
|
12
12
|
; along with this program. If not, see https://www.gnu.org/licenses/.
|
|
13
13
|
|
|
14
14
|
; Forward
|
package/src/koffi/src/abi_x86.cc
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
// This program is free software: you can redistribute it and/or modify
|
|
2
|
-
// it under the terms of the GNU
|
|
2
|
+
// it under the terms of the GNU Lesser General Public License as published by
|
|
3
3
|
// the Free Software Foundation, either version 3 of the License, or
|
|
4
4
|
// (at your option) any later version.
|
|
5
5
|
//
|
|
6
6
|
// This program is distributed in the hope that it will be useful,
|
|
7
7
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
8
8
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
9
|
-
// GNU
|
|
9
|
+
// GNU Lesser General Public License for more details.
|
|
10
10
|
//
|
|
11
|
-
// You should have received a copy of the GNU
|
|
11
|
+
// You should have received a copy of the GNU Lesser General Public License
|
|
12
12
|
// along with this program. If not, see https://www.gnu.org/licenses/.
|
|
13
13
|
|
|
14
14
|
#if defined(__i386__) || defined(_M_IX86)
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
# This program is free software: you can redistribute it and/or modify
|
|
2
|
-
# it under the terms of the GNU
|
|
2
|
+
# it under the terms of the GNU Lesser General Public License as published by
|
|
3
3
|
# the Free Software Foundation, either version 3 of the License, or
|
|
4
4
|
# (at your option) any later version.
|
|
5
5
|
#
|
|
6
6
|
# This program is distributed in the hope that it will be useful,
|
|
7
7
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
8
8
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
9
|
-
# GNU
|
|
9
|
+
# GNU Lesser General Public License for more details.
|
|
10
10
|
#
|
|
11
|
-
# You should have received a copy of the GNU
|
|
11
|
+
# You should have received a copy of the GNU Lesser General Public License
|
|
12
12
|
# along with this program. If not, see https://www.gnu.org/licenses/.
|
|
13
13
|
|
|
14
14
|
.global ForwardCallG
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
; This program is free software: you can redistribute it and/or modify
|
|
2
|
-
; it under the terms of the GNU
|
|
2
|
+
; it under the terms of the GNU Lesser General Public License as published by
|
|
3
3
|
; the Free Software Foundation, either version 3 of the License, or
|
|
4
4
|
; (at your option) any later version.
|
|
5
5
|
;
|
|
6
6
|
; This program is distributed in the hope that it will be useful,
|
|
7
7
|
; but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
8
8
|
; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
9
|
-
; GNU
|
|
9
|
+
; GNU Lesser General Public License for more details.
|
|
10
10
|
;
|
|
11
|
-
; You should have received a copy of the GNU
|
|
11
|
+
; You should have received a copy of the GNU Lesser General Public License
|
|
12
12
|
; along with this program. If not, see https://www.gnu.org/licenses/.
|
|
13
13
|
|
|
14
14
|
; Forward
|
package/src/koffi/src/call.cc
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
// This program is free software: you can redistribute it and/or modify
|
|
2
|
-
// it under the terms of the GNU
|
|
2
|
+
// it under the terms of the GNU Lesser General Public License as published by
|
|
3
3
|
// the Free Software Foundation, either version 3 of the License, or
|
|
4
4
|
// (at your option) any later version.
|
|
5
5
|
//
|
|
6
6
|
// This program is distributed in the hope that it will be useful,
|
|
7
7
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
8
8
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
9
|
-
// GNU
|
|
9
|
+
// GNU Lesser General Public License for more details.
|
|
10
10
|
//
|
|
11
|
-
// You should have received a copy of the GNU
|
|
11
|
+
// You should have received a copy of the GNU Lesser General Public License
|
|
12
12
|
// along with this program. If not, see https://www.gnu.org/licenses/.
|
|
13
13
|
|
|
14
14
|
#include "src/core/libcc/libcc.hh"
|
package/src/koffi/src/call.hh
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
// This program is free software: you can redistribute it and/or modify
|
|
2
|
-
// it under the terms of the GNU
|
|
2
|
+
// it under the terms of the GNU Lesser General Public License as published by
|
|
3
3
|
// the Free Software Foundation, either version 3 of the License, or
|
|
4
4
|
// (at your option) any later version.
|
|
5
5
|
//
|
|
6
6
|
// This program is distributed in the hope that it will be useful,
|
|
7
7
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
8
8
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
9
|
-
// GNU
|
|
9
|
+
// GNU Lesser General Public License for more details.
|
|
10
10
|
//
|
|
11
|
-
// You should have received a copy of the GNU
|
|
11
|
+
// You should have received a copy of the GNU Lesser General Public License
|
|
12
12
|
// along with this program. If not, see https://www.gnu.org/licenses/.
|
|
13
13
|
|
|
14
14
|
#pragma once
|
package/src/koffi/src/ffi.cc
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
// This program is free software: you can redistribute it and/or modify
|
|
2
|
-
// it under the terms of the GNU
|
|
2
|
+
// it under the terms of the GNU Lesser General Public License as published by
|
|
3
3
|
// the Free Software Foundation, either version 3 of the License, or
|
|
4
4
|
// (at your option) any later version.
|
|
5
5
|
//
|
|
6
6
|
// This program is distributed in the hope that it will be useful,
|
|
7
7
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
8
8
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
9
|
-
// GNU
|
|
9
|
+
// GNU Lesser General Public License for more details.
|
|
10
10
|
//
|
|
11
|
-
// You should have received a copy of the GNU
|
|
11
|
+
// You should have received a copy of the GNU Lesser General Public License
|
|
12
12
|
// along with this program. If not, see https://www.gnu.org/licenses/.
|
|
13
13
|
|
|
14
14
|
#include "src/core/libcc/libcc.hh"
|
|
@@ -1723,8 +1723,8 @@ void FunctionInfo::Unref() const
|
|
|
1723
1723
|
InstanceMemory::~InstanceMemory()
|
|
1724
1724
|
{
|
|
1725
1725
|
#ifdef _WIN32
|
|
1726
|
-
if (
|
|
1727
|
-
|
|
1726
|
+
if (stack.ptr) {
|
|
1727
|
+
VirtualFree(stack.ptr, 0, MEM_RELEASE);
|
|
1728
1728
|
}
|
|
1729
1729
|
if (heap.ptr) {
|
|
1730
1730
|
VirtualFree(heap.ptr, 0, MEM_RELEASE);
|
package/src/koffi/src/ffi.hh
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
// This program is free software: you can redistribute it and/or modify
|
|
2
|
-
// it under the terms of the GNU
|
|
2
|
+
// it under the terms of the GNU Lesser General Public License as published by
|
|
3
3
|
// the Free Software Foundation, either version 3 of the License, or
|
|
4
4
|
// (at your option) any later version.
|
|
5
5
|
//
|
|
6
6
|
// This program is distributed in the hope that it will be useful,
|
|
7
7
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
8
8
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
9
|
-
// GNU
|
|
9
|
+
// GNU Lesser General Public License for more details.
|
|
10
10
|
//
|
|
11
|
-
// You should have received a copy of the GNU
|
|
11
|
+
// You should have received a copy of the GNU Lesser General Public License
|
|
12
12
|
// along with this program. If not, see https://www.gnu.org/licenses/.
|
|
13
13
|
|
|
14
14
|
#pragma once
|
|
@@ -232,10 +232,6 @@ struct InstanceMemory {
|
|
|
232
232
|
|
|
233
233
|
int16_t depth;
|
|
234
234
|
bool temporary;
|
|
235
|
-
|
|
236
|
-
#ifdef _WIN32
|
|
237
|
-
void *fiber;
|
|
238
|
-
#endif
|
|
239
235
|
};
|
|
240
236
|
|
|
241
237
|
struct InstanceData {
|
package/src/koffi/src/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
// This program is free software: you can redistribute it and/or modify
|
|
2
|
-
// it under the terms of the GNU
|
|
2
|
+
// it under the terms of the GNU Lesser General Public License as published by
|
|
3
3
|
// the Free Software Foundation, either version 3 of the License, or
|
|
4
4
|
// (at your option) any later version.
|
|
5
5
|
//
|
|
6
6
|
// This program is distributed in the hope that it will be useful,
|
|
7
7
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
8
8
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
9
|
-
// GNU
|
|
9
|
+
// GNU Lesser General Public License for more details.
|
|
10
10
|
//
|
|
11
|
-
// You should have received a copy of the GNU
|
|
11
|
+
// You should have received a copy of the GNU Lesser General Public License
|
|
12
12
|
// along with this program. If not, see https://www.gnu.org/licenses/.
|
|
13
13
|
|
|
14
14
|
'use strict';
|
package/src/koffi/src/parser.cc
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
// This program is free software: you can redistribute it and/or modify
|
|
2
|
-
// it under the terms of the GNU
|
|
2
|
+
// it under the terms of the GNU Lesser General Public License as published by
|
|
3
3
|
// the Free Software Foundation, either version 3 of the License, or
|
|
4
4
|
// (at your option) any later version.
|
|
5
5
|
//
|
|
6
6
|
// This program is distributed in the hope that it will be useful,
|
|
7
7
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
8
8
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
9
|
-
// GNU
|
|
9
|
+
// GNU Lesser General Public License for more details.
|
|
10
10
|
//
|
|
11
|
-
// You should have received a copy of the GNU
|
|
11
|
+
// You should have received a copy of the GNU Lesser General Public License
|
|
12
12
|
// along with this program. If not, see https://www.gnu.org/licenses/.
|
|
13
13
|
|
|
14
14
|
#include "src/core/libcc/libcc.hh"
|
package/src/koffi/src/parser.hh
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
// This program is free software: you can redistribute it and/or modify
|
|
2
|
-
// it under the terms of the GNU
|
|
2
|
+
// it under the terms of the GNU Lesser General Public License as published by
|
|
3
3
|
// the Free Software Foundation, either version 3 of the License, or
|
|
4
4
|
// (at your option) any later version.
|
|
5
5
|
//
|
|
6
6
|
// This program is distributed in the hope that it will be useful,
|
|
7
7
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
8
8
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
9
|
-
// GNU
|
|
9
|
+
// GNU Lesser General Public License for more details.
|
|
10
10
|
//
|
|
11
|
-
// You should have received a copy of the GNU
|
|
11
|
+
// You should have received a copy of the GNU Lesser General Public License
|
|
12
12
|
// along with this program. If not, see https://www.gnu.org/licenses/.
|
|
13
13
|
|
|
14
14
|
#pragma once
|
package/src/koffi/src/util.cc
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
// This program is free software: you can redistribute it and/or modify
|
|
2
|
-
// it under the terms of the GNU
|
|
2
|
+
// it under the terms of the GNU Lesser General Public License as published by
|
|
3
3
|
// the Free Software Foundation, either version 3 of the License, or
|
|
4
4
|
// (at your option) any later version.
|
|
5
5
|
//
|
|
6
6
|
// This program is distributed in the hope that it will be useful,
|
|
7
7
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
8
8
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
9
|
-
// GNU
|
|
9
|
+
// GNU Lesser General Public License for more details.
|
|
10
10
|
//
|
|
11
|
-
// You should have received a copy of the GNU
|
|
11
|
+
// You should have received a copy of the GNU Lesser General Public License
|
|
12
12
|
// along with this program. If not, see https://www.gnu.org/licenses/.
|
|
13
13
|
|
|
14
14
|
#include "src/core/libcc/libcc.hh"
|
package/src/koffi/src/util.hh
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
// This program is free software: you can redistribute it and/or modify
|
|
2
|
-
// it under the terms of the GNU
|
|
2
|
+
// it under the terms of the GNU Lesser General Public License as published by
|
|
3
3
|
// the Free Software Foundation, either version 3 of the License, or
|
|
4
4
|
// (at your option) any later version.
|
|
5
5
|
//
|
|
6
6
|
// This program is distributed in the hope that it will be useful,
|
|
7
7
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
8
8
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
9
|
-
// GNU
|
|
9
|
+
// GNU Lesser General Public License for more details.
|
|
10
10
|
//
|
|
11
|
-
// You should have received a copy of the GNU
|
|
11
|
+
// You should have received a copy of the GNU Lesser General Public License
|
|
12
12
|
// along with this program. If not, see https://www.gnu.org/licenses/.
|
|
13
13
|
|
|
14
14
|
#pragma once
|
package/src/koffi/src/win32.hh
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
// This program is free software: you can redistribute it and/or modify
|
|
2
|
-
// it under the terms of the GNU
|
|
2
|
+
// it under the terms of the GNU Lesser General Public License as published by
|
|
3
3
|
// the Free Software Foundation, either version 3 of the License, or
|
|
4
4
|
// (at your option) any later version.
|
|
5
5
|
//
|
|
6
6
|
// This program is distributed in the hope that it will be useful,
|
|
7
7
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
8
8
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
9
|
-
// GNU
|
|
9
|
+
// GNU Lesser General Public License for more details.
|
|
10
10
|
//
|
|
11
|
-
// You should have received a copy of the GNU
|
|
11
|
+
// You should have received a copy of the GNU Lesser General Public License
|
|
12
12
|
// along with this program. If not, see https://www.gnu.org/licenses/.
|
|
13
13
|
|
|
14
14
|
#pragma once
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
# This program is free software: you can redistribute it and/or modify
|
|
2
|
-
# it under the terms of the GNU
|
|
2
|
+
# it under the terms of the GNU Lesser General Public License as published by
|
|
3
3
|
# the Free Software Foundation, either version 3 of the License, or
|
|
4
4
|
# (at your option) any later version.
|
|
5
5
|
#
|
|
6
6
|
# This program is distributed in the hope that it will be useful,
|
|
7
7
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
8
8
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
9
|
-
# GNU
|
|
9
|
+
# GNU Lesser General Public License for more details.
|
|
10
10
|
#
|
|
11
|
-
# You should have received a copy of the GNU
|
|
11
|
+
# You should have received a copy of the GNU Lesser General Public License
|
|
12
12
|
# along with this program. If not, see https://www.gnu.org/licenses/.
|
|
13
13
|
|
|
14
14
|
cmake_minimum_required(VERSION 3.6)
|
package/src/koffi/test/async.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
// This program is free software: you can redistribute it and/or modify
|
|
4
|
-
// it under the terms of the GNU
|
|
4
|
+
// it under the terms of the GNU Lesser General Public License as published by
|
|
5
5
|
// the Free Software Foundation, either version 3 of the License, or
|
|
6
6
|
// (at your option) any later version.
|
|
7
7
|
//
|
|
8
8
|
// This program is distributed in the hope that it will be useful,
|
|
9
9
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
10
10
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
11
|
-
// GNU
|
|
11
|
+
// GNU Lesser General Public License for more details.
|
|
12
12
|
//
|
|
13
|
-
// You should have received a copy of the GNU
|
|
13
|
+
// You should have received a copy of the GNU Lesser General Public License
|
|
14
14
|
// along with this program. If not, see https://www.gnu.org/licenses/.
|
|
15
15
|
|
|
16
16
|
const koffi = require('./build/koffi.node');
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
// This program is free software: you can redistribute it and/or modify
|
|
4
|
-
// it under the terms of the GNU
|
|
4
|
+
// it under the terms of the GNU Lesser General Public License as published by
|
|
5
5
|
// the Free Software Foundation, either version 3 of the License, or
|
|
6
6
|
// (at your option) any later version.
|
|
7
7
|
//
|
|
8
8
|
// This program is distributed in the hope that it will be useful,
|
|
9
9
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
10
10
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
11
|
-
// GNU
|
|
11
|
+
// GNU Lesser General Public License for more details.
|
|
12
12
|
//
|
|
13
|
-
// You should have received a copy of the GNU
|
|
13
|
+
// You should have received a copy of the GNU Lesser General Public License
|
|
14
14
|
// along with this program. If not, see https://www.gnu.org/licenses/.
|
|
15
15
|
|
|
16
16
|
const koffi = require('./build/koffi.node');
|
package/src/koffi/test/misc.c
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
// This program is free software: you can redistribute it and/or modify
|
|
2
|
-
// it under the terms of the GNU
|
|
2
|
+
// it under the terms of the GNU Lesser General Public License as published by
|
|
3
3
|
// the Free Software Foundation, either version 3 of the License, or
|
|
4
4
|
// (at your option) any later version.
|
|
5
5
|
//
|
|
6
6
|
// This program is distributed in the hope that it will be useful,
|
|
7
7
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
8
8
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
9
|
-
// GNU
|
|
9
|
+
// GNU Lesser General Public License for more details.
|
|
10
10
|
//
|
|
11
|
-
// You should have received a copy of the GNU
|
|
11
|
+
// You should have received a copy of the GNU Lesser General Public License
|
|
12
12
|
// along with this program. If not, see https://www.gnu.org/licenses/.
|
|
13
13
|
|
|
14
14
|
#include <stdlib.h>
|
package/src/koffi/test/raylib.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
// This program is free software: you can redistribute it and/or modify
|
|
4
|
-
// it under the terms of the GNU
|
|
4
|
+
// it under the terms of the GNU Lesser General Public License as published by
|
|
5
5
|
// the Free Software Foundation, either version 3 of the License, or
|
|
6
6
|
// (at your option) any later version.
|
|
7
7
|
//
|
|
8
8
|
// This program is distributed in the hope that it will be useful,
|
|
9
9
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
10
10
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
11
|
-
// GNU
|
|
11
|
+
// GNU Lesser General Public License for more details.
|
|
12
12
|
//
|
|
13
|
-
// You should have received a copy of the GNU
|
|
13
|
+
// You should have received a copy of the GNU Lesser General Public License
|
|
14
14
|
// along with this program. If not, see https://www.gnu.org/licenses/.
|
|
15
15
|
|
|
16
16
|
const koffi = require('./build/koffi.node');
|
package/src/koffi/test/sqlite.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
// This program is free software: you can redistribute it and/or modify
|
|
4
|
-
// it under the terms of the GNU
|
|
4
|
+
// it under the terms of the GNU Lesser General Public License as published by
|
|
5
5
|
// the Free Software Foundation, either version 3 of the License, or
|
|
6
6
|
// (at your option) any later version.
|
|
7
7
|
//
|
|
8
8
|
// This program is distributed in the hope that it will be useful,
|
|
9
9
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
10
10
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
11
|
-
// GNU
|
|
11
|
+
// GNU Lesser General Public License for more details.
|
|
12
12
|
//
|
|
13
|
-
// You should have received a copy of the GNU
|
|
13
|
+
// You should have received a copy of the GNU Lesser General Public License
|
|
14
14
|
// along with this program. If not, see https://www.gnu.org/licenses/.
|
|
15
15
|
|
|
16
16
|
const crypto = require('crypto');
|
package/src/koffi/test/sync.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
// This program is free software: you can redistribute it and/or modify
|
|
4
|
-
// it under the terms of the GNU
|
|
4
|
+
// it under the terms of the GNU Lesser General Public License as published by
|
|
5
5
|
// the Free Software Foundation, either version 3 of the License, or
|
|
6
6
|
// (at your option) any later version.
|
|
7
7
|
//
|
|
8
8
|
// This program is distributed in the hope that it will be useful,
|
|
9
9
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
10
10
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
11
|
-
// GNU
|
|
11
|
+
// GNU Lesser General Public License for more details.
|
|
12
12
|
//
|
|
13
|
-
// You should have received a copy of the GNU
|
|
13
|
+
// You should have received a copy of the GNU Lesser General Public License
|
|
14
14
|
// along with this program. If not, see https://www.gnu.org/licenses/.
|
|
15
15
|
|
|
16
16
|
const koffi = require('./build/koffi.node');
|
package/src/koffi/test/win32.c
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
// This program is free software: you can redistribute it and/or modify
|
|
2
|
-
// it under the terms of the GNU
|
|
2
|
+
// it under the terms of the GNU Lesser General Public License as published by
|
|
3
3
|
// the Free Software Foundation, either version 3 of the License, or
|
|
4
4
|
// (at your option) any later version.
|
|
5
5
|
//
|
|
6
6
|
// This program is distributed in the hope that it will be useful,
|
|
7
7
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
8
8
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
9
|
-
// GNU
|
|
9
|
+
// GNU Lesser General Public License for more details.
|
|
10
10
|
//
|
|
11
|
-
// You should have received a copy of the GNU
|
|
11
|
+
// You should have received a copy of the GNU Lesser General Public License
|
|
12
12
|
// along with this program. If not, see https://www.gnu.org/licenses/.
|
|
13
13
|
|
|
14
14
|
#include <stdlib.h>
|
package/src/koffi/test/win32.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
// This program is free software: you can redistribute it and/or modify
|
|
4
|
-
// it under the terms of the GNU
|
|
4
|
+
// it under the terms of the GNU Lesser General Public License as published by
|
|
5
5
|
// the Free Software Foundation, either version 3 of the License, or
|
|
6
6
|
// (at your option) any later version.
|
|
7
7
|
//
|
|
8
8
|
// This program is distributed in the hope that it will be useful,
|
|
9
9
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
10
10
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
11
|
-
// GNU
|
|
11
|
+
// GNU Lesser General Public License for more details.
|
|
12
12
|
//
|
|
13
|
-
// You should have received a copy of the GNU
|
|
13
|
+
// You should have received a copy of the GNU Lesser General Public License
|
|
14
14
|
// along with this program. If not, see https://www.gnu.org/licenses/.
|
|
15
15
|
|
|
16
16
|
const koffi = require('./build/koffi.node');
|
package/src/koffi/tools/qemu.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
// This program is free software: you can redistribute it and/or modify
|
|
4
|
-
// it under the terms of the GNU
|
|
4
|
+
// it under the terms of the GNU Lesser General Public License as published by
|
|
5
5
|
// the Free Software Foundation, either version 3 of the License, or
|
|
6
6
|
// (at your option) any later version.
|
|
7
7
|
//
|
|
8
8
|
// This program is distributed in the hope that it will be useful,
|
|
9
9
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
10
10
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
11
|
-
// GNU
|
|
11
|
+
// GNU Lesser General Public License for more details.
|
|
12
12
|
//
|
|
13
|
-
// You should have received a copy of the GNU
|
|
13
|
+
// You should have received a copy of the GNU Lesser General Public License
|
|
14
14
|
// along with this program. If not, see https://www.gnu.org/licenses/.
|
|
15
15
|
|
|
16
16
|
'use strict';
|
|
@@ -492,7 +492,7 @@ async function prepare() {
|
|
|
492
492
|
fs.unlinkSync(dist_dir + '/src/koffi/.gitignore');
|
|
493
493
|
fs.renameSync(dist_dir + '/src/koffi/README.md', dist_dir + '/README.md');
|
|
494
494
|
fs.renameSync(dist_dir + '/src/koffi/LICENSE.txt', dist_dir + '/LICENSE.txt');
|
|
495
|
-
fs.renameSync(dist_dir + '/src/koffi/
|
|
495
|
+
fs.renameSync(dist_dir + '/src/koffi/CHANGELOG.md', dist_dir + '/CHANGELOG.md');
|
|
496
496
|
fs.renameSync(dist_dir + '/web/koffi.dev', dist_dir + '/doc');
|
|
497
497
|
fs.rmdirSync(dist_dir + '/web');
|
|
498
498
|
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env python3
|
|
2
2
|
|
|
3
3
|
# This program is free software: you can redistribute it and/or modify
|
|
4
|
-
# it under the terms of the GNU
|
|
4
|
+
# it under the terms of the GNU Lesser General Public License as published by
|
|
5
5
|
# the Free Software Foundation, either version 3 of the License, or
|
|
6
6
|
# (at your option) any later version.
|
|
7
7
|
#
|
|
8
8
|
# This program is distributed in the hope that it will be useful,
|
|
9
9
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
10
10
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
11
|
-
# GNU
|
|
11
|
+
# GNU Lesser General Public License for more details.
|
|
12
12
|
#
|
|
13
|
-
# You should have received a copy of the GNU
|
|
13
|
+
# You should have received a copy of the GNU Lesser General Public License
|
|
14
14
|
# along with this program. If not, see https://www.gnu.org/licenses/.
|
|
15
15
|
|
|
16
16
|
import argparse
|