From 34f33df1b1ffc6f8a84bd9721a7ba6d1960359b8 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. --- struct.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'struct.h') diff --git a/struct.h b/struct.h index 213a4b91..557b29da 100644 --- a/struct.h +++ b/struct.h @@ -53,9 +53,9 @@ val struct_set_initfun(val type, val fun); val struct_get_postinitfun(val type); val struct_set_postinitfun(val type, val fun); val super(val type, val idx); -val make_struct(val type, val plist, struct args *); -val struct_from_plist(val type, struct args *plist); -val struct_from_args(val type, struct args *boa); +val make_struct(val type, val plist, varg ); +val struct_from_plist(val type, varg plist); +val struct_from_args(val type, varg boa); val make_lazy_struct(val type, val argfun); val make_struct_lit(val type, val plist); val allocate_struct(val type); @@ -82,10 +82,10 @@ val struct_type(val strct); val struct_type_name(val stype); val struct_subtype_p(val sub, val sup); val method(val strct, val slotsym); -val method_args(val strct, val slotsym, struct args *); +val method_args(val strct, val slotsym, varg ); val super_method(val strct, val slotsym); val uslot(val slot); -val umethod(val slot, struct args *); +val umethod(val slot, varg ); val method_name(val fun); val slot_types(val slot); val static_slot_types(val slot); -- cgit v1.2.3