diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2023-09-05 19:08:40 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2023-09-05 19:08:40 -0700 |
commit | 4cfe0b06693df6003c4d978fd2ed6924bb2345ba (patch) | |
tree | 3a8d0bd08660c63ebea88830c2d7e2e7628c3360 /struct.h | |
parent | ce7240c36c1f143812f86b01e05318474d569f1c (diff) | |
download | txr-4cfe0b06693df6003c4d978fd2ed6924bb2345ba.tar.gz txr-4cfe0b06693df6003c4d978fd2ed6924bb2345ba.tar.bz2 txr-4cfe0b06693df6003c4d978fd2ed6924bb2345ba.zip |
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.
Diffstat (limited to 'struct.h')
-rw-r--r-- | struct.h | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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); |