Mercurial > pub > dyncall > dyncall
diff test/suite_aggrs/main.c @ 454:68d98455a8bd
suite_aggrs: var scope change for older compilers; excluding msvc from tests with empty structs
author | Tassilo Philipp |
---|---|
date | Thu, 27 Jan 2022 14:48:51 +0100 |
parents | b15b979d9d2b |
children | 20fa684221a1 |
line wrap: on
line diff
--- a/test/suite_aggrs/main.c Thu Jan 27 12:58:50 2022 +0100 +++ b/test/suite_aggrs/main.c Thu Jan 27 14:48:51 2022 +0100 @@ -93,12 +93,13 @@ case '{': { /* find struct sig */ int len; + DCstruct *st; int i = find_agg_idx(&len, sig); if(i == -1) { printf("unknown sig at '%s' ;", sig); return 0; } - DCstruct *st = ((DCstruct*(*)())G_agg_touchdcstfuncs[i])(); + st = ((DCstruct*(*)())G_agg_touchdcstfuncs[i])(); dcArgStruct(p, st, K_a[pos]); sig += len-1; /* advance to next arg char */ break;