From 4cfe0b06693df6003c4d978fd2ed6924bb2345ba Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Tue, 5 Sep 2023 19:08:40 -0700 Subject: Use vargs typedef instead of struct args *. The vargs typedef is underused. Let's use it consistently everywhere. * args.c, * args.h, * args.c, * args.h, * arith.c, * eval.c * ffi.c, * gc.c, * hash.c, * lib.c, * lib.h, * parser.c, * stream.c, * struct.c, * struct.h, * syslog.c, * syslog.h, * unwind.c, * vm.c, * vm.h: All "struct args * declarations replaced with existing "varg" typedef that comes from lib.h. --- ffi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ffi.c') diff --git a/ffi.c b/ffi.c index dae972b1..0a858f7a 100644 --- a/ffi.c +++ b/ffi.c @@ -5472,7 +5472,7 @@ val ffi_make_call_desc(val ntotal, val nfixed, val rettype, val argtypes, return obj; } -val ffi_call_wrap(val fptr, val ffi_call_desc, struct args *args) +val ffi_call_wrap(val fptr, val ffi_call_desc, varg args) { val real_self = lit("ffi-call"); struct txr_ffi_call_desc *tfcd = ffi_call_desc_checked(real_self, ffi_call_desc); @@ -7187,7 +7187,7 @@ val union_out(val uni, val memb, val memb_obj) return memb_obj; } -val make_zstruct(val type, struct args *args) +val make_zstruct(val type, varg args) { val self = lit("make-zstruct"); struct txr_ffi_type *tft = ffi_type_struct_checked(self, type); -- cgit v1.2.3