changeset 363:3ff4a4ba7f0e

- changelog addition - sig string semantic/correctness fix in callf test
author Tassilo Philipp
date Tue, 14 Apr 2020 17:47:33 +0200
parents 78dfa2f9783a
children 3bdd326dc269
files ChangeLog test/callf/main.c
diffstat 2 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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)
 
--- 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