# HG changeset patch # User Tassilo Philipp # Date 1586879253 -7200 # Node ID 3ff4a4ba7f0eb3a529fab4f584c77b938a1803e8 # Parent 78dfa2f9783a53848a86c8daf05ad12e305ce17a - changelog addition - sig string semantic/correctness fix in callf test diff -r 78dfa2f9783a -r 3ff4a4ba7f0e ChangeLog --- a/ChangeLog Tue Apr 14 16:56:57 2020 +0200 +++ b/ChangeLog Tue Apr 14 17:47:33 2020 +0200 @@ -13,7 +13,9 @@ bindings: o python: Python 3 support, Python 2 unicode support, added get_path function, changing 'Z' conversions to only immutable types and 'p' to mutable types (and handles), bytearray - support, support to specify calling convention + support, support to specify calling convention + o shell: can reference own executable now and support for more calling conventions + o shell: syscall support tests: o extended callf testcode to test callconv mode switch signature chars (including syscalls) diff -r 78dfa2f9783a -r 3ff4a4ba7f0e test/callf/main.c --- a/test/callf/main.c Tue Apr 14 16:56:57 2020 +0200 +++ b/test/callf/main.c Tue Apr 14 17:47:33 2020 +0200 @@ -135,9 +135,9 @@ #if defined(DC_UNIX) /* testing syscall using calling convention prefix - not available on all platforms */ dcReset(vm); - printf("\ncallf _$ipi)i"); + printf("\ncallf _$iZi)i"); fflush(NULL); /* needed before syscall write as it's immediate, or order might be incorrect */ - dcCallF(vm, &ret, (DCpointer)(ptrdiff_t)SYS_write, "_$ipi)i", 1/*stdout*/, " = syscall: 1", 13); + dcCallF(vm, &ret, (DCpointer)(ptrdiff_t)SYS_write, "_$iZi)i", 1/*stdout*/, " = syscall: 1", 13); r = ret.i == 13 && r; #endif