From 56c6e3058b8eb3fb2fe9523287e8a614b7339def Mon Sep 17 00:00:00 2001 From: kusumotonorio <47816570+kusumotonorio@users.noreply.github.com> Date: Sun, 19 Jan 2020 22:30:48 +0900 Subject: [PATCH] put alien.factor, ffi_test.* back --- vm/ffi_test.c | 21 --------------------- vm/ffi_test.h | 21 --------------------- 2 files changed, 42 deletions(-) diff --git a/vm/ffi_test.c b/vm/ffi_test.c index f2dbd2bd50..1927a8d988 100644 --- a/vm/ffi_test.c +++ b/vm/ffi_test.c @@ -357,27 +357,6 @@ double ffi_test_65(int n, ...) { return sum; } -unsigned long ffi_test_66(unsigned long a, unsigned long b, unsigned long c, - struct test_struct_66 d, struct test_struct_66 e) { - unsigned long x; - x = a + b + c + d.mem1 + d.mem2 + e.mem1 + e.mem2; - return x; -} - -unsigned long ffi_test_67(unsigned long a, unsigned long b, unsigned long c, - struct test_struct_66 d, struct test_struct_66 e, - unsigned long f) { - unsigned long x; - x = a + b + c + d.mem1 + d.mem2 + e.mem1 + e.mem2 + f*2; - return x; -} - -unsigned long ffi_test_68(unsigned long a, unsigned long b, unsigned long c, - struct test_struct_66 d, struct test_struct_68 e, struct test_struct_66 f) { - unsigned long x; - x = a + b + c + d.mem1 + d.mem2 + e.mem1 + e.mem2 + e.mem3 + f.mem1 + f.mem2; - return x; -} void* bug1021_test_1(void* x, int y) { return (void*)(y * y + (size_t)x); diff --git a/vm/ffi_test.h b/vm/ffi_test.h index 97ee793302..1c7ae7ddb3 100644 --- a/vm/ffi_test.h +++ b/vm/ffi_test.h @@ -232,27 +232,6 @@ FACTOR_EXPORT struct ulonglong_pair ffi_test_63(void); FACTOR_EXPORT int ffi_test_64(int n, ...); FACTOR_EXPORT double ffi_test_65(int n, ...); - -struct test_struct_66 { - unsigned long mem1; - unsigned long mem2; -}; - -struct test_struct_68 { - unsigned long mem1; - unsigned long mem2; - unsigned long mem3; -}; - -FACTOR_EXPORT unsigned long ffi_test_66(unsigned long a, unsigned long b, unsigned long c, - struct test_struct_66 d, struct test_struct_66 e); - -FACTOR_EXPORT unsigned long ffi_test_67(unsigned long a, unsigned long b, unsigned long c, - struct test_struct_66 d, struct test_struct_66 e, unsigned long f); - -FACTOR_EXPORT unsigned long ffi_test_68(unsigned long a, unsigned long b, unsigned long c, - struct test_struct_66 d, struct test_struct_68 e, struct test_struct_66 f); - FACTOR_EXPORT void* bug1021_test_1(void* x, int y); FACTOR_EXPORT int bug1021_test_2(int x, char* y, void *z); FACTOR_EXPORT void* bug1021_test_3(int x); -- 2.34.1