koffi 1.3.10 → 1.3.11
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 +6 -0
- package/build/qemu/1.3.11/koffi_darwin_arm64.tar.gz +0 -0
- package/build/qemu/1.3.11/koffi_darwin_x64.tar.gz +0 -0
- package/build/qemu/1.3.11/koffi_freebsd_arm64.tar.gz +0 -0
- package/build/qemu/1.3.11/koffi_freebsd_ia32.tar.gz +0 -0
- package/build/qemu/1.3.11/koffi_freebsd_x64.tar.gz +0 -0
- package/build/qemu/1.3.11/koffi_linux_arm32hf.tar.gz +0 -0
- package/build/qemu/1.3.11/koffi_linux_arm64.tar.gz +0 -0
- package/build/qemu/1.3.11/koffi_linux_ia32.tar.gz +0 -0
- package/build/qemu/1.3.11/koffi_linux_riscv64hf64.tar.gz +0 -0
- package/build/qemu/1.3.11/koffi_linux_x64.tar.gz +0 -0
- package/build/qemu/1.3.11/koffi_openbsd_ia32.tar.gz +0 -0
- package/build/qemu/1.3.11/koffi_openbsd_x64.tar.gz +0 -0
- package/build/qemu/1.3.11/koffi_win32_arm64.tar.gz +0 -0
- package/build/qemu/1.3.11/koffi_win32_ia32.tar.gz +0 -0
- package/build/qemu/1.3.11/koffi_win32_x64.tar.gz +0 -0
- package/package.json +1 -1
- package/src/parser.cc +2 -1
- package/test/misc.c +1 -1
- package/test/sync.js +2 -2
- package/build/qemu/1.3.10/koffi_darwin_arm64.tar.gz +0 -0
- package/build/qemu/1.3.10/koffi_darwin_x64.tar.gz +0 -0
- package/build/qemu/1.3.10/koffi_freebsd_arm64.tar.gz +0 -0
- package/build/qemu/1.3.10/koffi_freebsd_ia32.tar.gz +0 -0
- package/build/qemu/1.3.10/koffi_freebsd_x64.tar.gz +0 -0
- package/build/qemu/1.3.10/koffi_linux_arm32hf.tar.gz +0 -0
- package/build/qemu/1.3.10/koffi_linux_arm64.tar.gz +0 -0
- package/build/qemu/1.3.10/koffi_linux_ia32.tar.gz +0 -0
- package/build/qemu/1.3.10/koffi_linux_riscv64hf64.tar.gz +0 -0
- package/build/qemu/1.3.10/koffi_linux_x64.tar.gz +0 -0
- package/build/qemu/1.3.10/koffi_openbsd_ia32.tar.gz +0 -0
- package/build/qemu/1.3.10/koffi_openbsd_x64.tar.gz +0 -0
- package/build/qemu/1.3.10/koffi_win32_arm64.tar.gz +0 -0
- package/build/qemu/1.3.10/koffi_win32_ia32.tar.gz +0 -0
- package/build/qemu/1.3.10/koffi_win32_x64.tar.gz +0 -0
package/ChangeLog.md
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
package/src/parser.cc
CHANGED
|
@@ -44,7 +44,8 @@ bool PrototypeParser::Parse(const char *str, FunctionInfo *out_func)
|
|
|
44
44
|
out_func->name = ParseIdentifier();
|
|
45
45
|
|
|
46
46
|
Consume("(");
|
|
47
|
-
|
|
47
|
+
offset += (offset + 1 < tokens.len && tokens[offset] == "void" && tokens[offset + 1] == ")");
|
|
48
|
+
if (offset < tokens.len && tokens[offset] != ")") {
|
|
48
49
|
for (;;) {
|
|
49
50
|
ParameterInfo param = {};
|
|
50
51
|
|
package/test/misc.c
CHANGED
package/test/sync.js
CHANGED
|
@@ -130,7 +130,7 @@ async function test() {
|
|
|
130
130
|
const GetMinusOne1 = lib.func('int8_t GetMinusOne1(void)');
|
|
131
131
|
const GetMinusOne2 = lib.func('int16_t GetMinusOne2(void)');
|
|
132
132
|
const GetMinusOne4 = lib.func('int32_t GetMinusOne4(void)');
|
|
133
|
-
const GetMinusOne8 = lib.func('int64_t GetMinusOne8(void)');
|
|
133
|
+
const GetMinusOne8 = lib.func('int64_t GetMinusOne8(void *dummy)');
|
|
134
134
|
const FillPack1 = lib.func('FillPack1', 'void', ['int', koffi.out(koffi.pointer(Pack1))]);
|
|
135
135
|
const RetPack1 = lib.func('RetPack1', Pack1, ['int']);
|
|
136
136
|
const AddPack1 = lib.fastcall('AddPack1', 'void', ['int', koffi.inout(koffi.pointer(Pack1))]);
|
|
@@ -187,7 +187,7 @@ async function test() {
|
|
|
187
187
|
assert.equal(GetMinusOne1(), -1);
|
|
188
188
|
assert.equal(GetMinusOne2(), -1);
|
|
189
189
|
assert.equal(GetMinusOne4(), -1);
|
|
190
|
-
assert.equal(GetMinusOne8(), -1);
|
|
190
|
+
assert.equal(GetMinusOne8(null), -1);
|
|
191
191
|
|
|
192
192
|
// Simple tests with Pack1
|
|
193
193
|
{
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|