Mercurial > pub > dyncall > dyncall
comparison test/suite_aggrs/main.c @ 435:a29baee68340
- suite_aggrs: simplified nested struct handling given upcoming api simplification (still not in depo, though, so test is ahead)
author | Tassilo Philipp |
---|---|
date | Mon, 24 Jan 2022 12:41:27 +0100 |
parents | 3d2c5d156d78 |
children | b4ddad459690 |
comparison
equal
deleted
inserted
replaced
434:3d2c5d156d78 | 435:a29baee68340 |
---|---|
69 } | 69 } |
70 rtype = *sig; | 70 rtype = *sig; |
71 sig += len; | 71 sig += len; |
72 | 72 |
73 rtype_st_cmp = G_agg_cmpfuncs[i]; | 73 rtype_st_cmp = G_agg_cmpfuncs[i]; |
74 rtype_st = ((DCstruct*(*)())G_agg_newdcstfuncs[i])(NULL); | 74 rtype_st = ((DCstruct*(*)())G_agg_newdcstfuncs[i])(); |
75 dcBeginCallStruct(p, rtype_st, DC_FALSE); | 75 dcBeginCallStruct(p, rtype_st, DC_FALSE); |
76 } | 76 } |
77 else | 77 else |
78 rtype = *sig++; | 78 rtype = *sig++; |
79 | 79 |
96 int i = find_agg_idx(&len, sig); | 96 int i = find_agg_idx(&len, sig); |
97 if(i == -1) { | 97 if(i == -1) { |
98 printf("unknown sig at '%s' ;", sig); | 98 printf("unknown sig at '%s' ;", sig); |
99 return 0; | 99 return 0; |
100 } | 100 } |
101 DCstruct *st = ((DCstruct*(*)())G_agg_newdcstfuncs[i])(NULL); | 101 DCstruct *st = ((DCstruct*(*)())G_agg_newdcstfuncs[i])(); |
102 dcArgStruct(p, st, K_a[pos]); | 102 dcArgStruct(p, st, K_a[pos]); |
103 sig += len-1; /* advance to next arg char */ | 103 sig += len-1; /* advance to next arg char */ |
104 break; | 104 break; |
105 } | 105 } |
106 default: printf("unknown atype '%c' (1) ;", atype); return 0; | 106 default: printf("unknown atype '%c' (1) ;", atype); return 0; |