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 /ffi.c | |
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 'ffi.c')
-rw-r--r-- | ffi.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |