Mercurial > pub > dyncall > dyncall
diff test/suite_aggrs/main.c @ 434:3d2c5d156d78
- test/suite_aggrs: support for nested structs, now
author | Tassilo Philipp |
---|---|
date | Sun, 23 Jan 2022 23:20:02 +0100 |
parents | 45662241d9cd |
children | a29baee68340 |
line wrap: on
line diff
--- a/test/suite_aggrs/main.c Sat Jan 22 16:07:57 2022 +0100 +++ b/test/suite_aggrs/main.c Sun Jan 23 23:20:02 2022 +0100 @@ -44,7 +44,7 @@ return -1; } -int invoke(char const* signature, void* t) +static int invoke(char const* signature, void* t) { DCCallVM * p = (DCCallVM*) G_callvm; char const * sig = signature; @@ -71,7 +71,7 @@ sig += len; rtype_st_cmp = G_agg_cmpfuncs[i]; - rtype_st = ((DCstruct*(*)())G_agg_newdcstfuncs[i])(); + rtype_st = ((DCstruct*(*)())G_agg_newdcstfuncs[i])(NULL); dcBeginCallStruct(p, rtype_st, DC_FALSE); } else @@ -98,7 +98,7 @@ printf("unknown sig at '%s' ;", sig); return 0; } - DCstruct *st = ((DCstruct*(*)())G_agg_newdcstfuncs[i])(); + DCstruct *st = ((DCstruct*(*)())G_agg_newdcstfuncs[i])(NULL); dcArgStruct(p, st, K_a[pos]); sig += len-1; /* advance to next arg char */ break;