Mercurial > pub > dyncall > dyncall
diff test/suite_aggrs/cases.c @ 482:0f3b6898078d
suite_aggrs (still ahead of checked in version of dyncall, sorry):
- renaming struct -> aggr
- added knobs to:
* control struct packing
* whether to test immutability of aggr-by-val params
* how to copy aggrs (field by field or via = op (which might do a memcpy and thus copy padding garbage, also))
- some macros to reduce file sizes of generated cases
- setting default misalignment to 1
author | Tassilo Philipp |
---|---|
date | Wed, 16 Mar 2022 16:27:50 +0100 |
parents | 236015fdf7a8 |
children |
line wrap: on
line diff
--- a/test/suite_aggrs/cases.c Wed Mar 02 17:30:51 2022 +0100 +++ b/test/suite_aggrs/cases.c Wed Mar 16 16:27:50 2022 +0100 @@ -46,7 +46,12 @@ #define d double #define a void* /* all generated aggregates */ +#define AF(c,t,i,n) dcAggrField(at,c,offsetof(t,i),n); +#define AFa(t,i,n,f) dcAggrField(at,DC_SIGCHAR_AGGREGATE,offsetof(t,i),n,f_touchdcst##f()); + #include "dyncall.h" +#include <string.h> + /* Plan9 pcc and MSVC (when using C) do not allow empty structs */ #if defined(DC__C_MSVC) || defined(DC__OS_Plan9)