From f18663d7840502b04842eddc887783d701465d62 Mon Sep 17 00:00:00 2001 From: Alexey Odinokov Date: Sat, 17 Aug 2024 19:10:47 -0500 Subject: [PATCH] removed linux debug --- examples/c_ffi_call/value_ffi.c | 12 ++++++------ examples/c_ffi_call/value_ffi_test.c | 16 ++++++++-------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/examples/c_ffi_call/value_ffi.c b/examples/c_ffi_call/value_ffi.c index 0425d91..0dfaf1b 100644 --- a/examples/c_ffi_call/value_ffi.c +++ b/examples/c_ffi_call/value_ffi.c @@ -464,14 +464,14 @@ int _call(metac_value_t * p_param_storage_val, void (*fn)(void), metac_value_t * assert(va_list_number_cur < va_list_number); assert(p_val_list_entries[va_list_number_cur].id == i); #if __linux__ - void **p1 = &p_val_list_entries[va_list_number_cur].va_list_c; - fprintf(stderr, "dbg:p1 %p: %p, %p p2\n", p1, *p1, *(p1+1)); + // void **p1 = &p_val_list_entries[va_list_number_cur].va_list_c; + // fprintf(stderr, "dbg:p1 %p: %p, %p p2\n", p1, *p1, *(p1+1)); pvalues[i] = &(p_val_list_entries[va_list_number_cur].va_list_c); values[i] = &pvalues[i]; - va_list cp; - va_copy(cp, p_val_list_entries[va_list_number_cur].va_list_c.parameters); - vfprintf(stderr, "dbg0: %x %x %x %x %x %x\n", cp); - va_end(cp); + // va_list cp; + // va_copy(cp, p_val_list_entries[va_list_number_cur].va_list_c.parameters); + // vfprintf(stderr, "dbg0: %x %x %x %x %x %x\n", cp); + // va_end(cp); // //va_list cp; // va_copy(cp, p_val_list_entries[va_list_number_cur].va_list_c.parameters); // vfprintf(stderr, "dbg1: %x %x %x %x %x %x\n", cp); diff --git a/examples/c_ffi_call/value_ffi_test.c b/examples/c_ffi_call/value_ffi_test.c index ed6bc70..7f9ae43 100644 --- a/examples/c_ffi_call/value_ffi_test.c +++ b/examples/c_ffi_call/value_ffi_test.c @@ -623,12 +623,12 @@ METAC_START_TEST(test_function_with_extra) { // variadic param tests int test_function_with_va_list(const char * format, va_list vl) { - void **p1 = &vl; - fprintf(stderr, "dbg:p1 %p: %p, %p p2\n", p1, *p1, *(p1+1)); - va_list l; - va_copy(l, vl); - int i = va_arg(l, int); - va_end(l); + // void **p1 = &vl; + // fprintf(stderr, "dbg:p1 %p: %p, %p p2\n", p1, *p1, *(p1+1)); + // va_list l; + // va_copy(l, vl); + // int i = va_arg(l, int); + // va_end(l); return vsnprintf(called, sizeof(called), format, vl); } @@ -637,8 +637,8 @@ METAC_GSYM_LINK(test_function_with_va_list); int test_function_with_va_args(const char * format, ...) { va_list l; va_start(l, format); - void **p1 = &l; - fprintf(stderr, "dbg:p1 %p: %p, %p p2\n", p1, *p1, *(p1+1)); + // void **p1 = &l; + // fprintf(stderr, "dbg:p1 %p: %p, %p p2\n", p1, *p1, *(p1+1)); int res = test_function_with_va_list(format, l);//vsnprintf(called, sizeof(called), format, l); va_end(l); return res;