Am 22.10.25 um 19:49 schrieb Michael Hawkins:
Please excuse my luddite question but, why would anyone do any of that? Some
kind of syntactical thing perhaps?
I don't know.
WG14 making is a constraint violation without anyone voting against that
(17 in favor, 2 abstinations) for C2y strongly indicates that there is
no good use-case for it in standard C. AFAIK, no one has spoken up since
protesting that decision either.
However, historically some compilers allowed it in function
declarations: SDCC (all, except for register void), MSVC (all
qualifiers, but not named void), GCC (named void param only, with a
warning), clang (register void). For SDCC, I suspect that this might
just be an artifact of how the parameter-handling in the front-end was
implemented.
Note that named void was never allowed in function definitions in
standard C, since void is an incomplete type (but SDCC currently allows
that, too).
Philipp
_______________________________________________
Sdcc-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sdcc-user