C hackery [was Re: Some changes to autoconfiguration APIs]

2021-05-01 Thread Mouse
>> [...] statement expression [...] > I think statement expressions can be a rather "dangerous" > complication in C I am moderately sure statement expressions don't exist in C, at least as of C99; I believe them to be a gccism. (I have never seen a spec for any later C, though I have seen it sai

Re: Some changes to autoconfiguration APIs

2021-05-01 Thread Greg A. Woods
At Fri, 30 Apr 2021 23:05:48 -0400 (EDT), Mouse wrote: Subject: Re: Some changes to autoconfiguration APIs > > However, I see little reason to do the > statement expression rather than > > { static const struct cfargs foo = { ... }; > config_found(..., &foo); > } That's a v