Mercurial > pub > dyncall > dyncall
comparison 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 |
comparison
equal
deleted
inserted
replaced
481:0fc22b5feac7 | 482:0f3b6898078d |
---|---|
44 #define p void* | 44 #define p void* |
45 #define f float | 45 #define f float |
46 #define d double | 46 #define d double |
47 #define a void* /* all generated aggregates */ | 47 #define a void* /* all generated aggregates */ |
48 | 48 |
49 #define AF(c,t,i,n) dcAggrField(at,c,offsetof(t,i),n); | |
50 #define AFa(t,i,n,f) dcAggrField(at,DC_SIGCHAR_AGGREGATE,offsetof(t,i),n,f_touchdcst##f()); | |
51 | |
49 #include "dyncall.h" | 52 #include "dyncall.h" |
53 #include <string.h> | |
54 | |
50 | 55 |
51 /* Plan9 pcc and MSVC (when using C) do not allow empty structs */ | 56 /* Plan9 pcc and MSVC (when using C) do not allow empty structs */ |
52 #if defined(DC__C_MSVC) || defined(DC__OS_Plan9) | 57 #if defined(DC__C_MSVC) || defined(DC__OS_Plan9) |
53 # include "nonemptystructs.h" | 58 # include "nonemptystructs.h" |
54 #else | 59 #else |