defcenum with non-integer base-type
Attila Lendvai
attila at lendvai.name
Wed Feb 24 19:29:46 UTC 2016
the situation:
some projects out in the wild use DEFCENUM with e.g. :DOUBLE
base-type. this is not in adherence with the C standard (only integer
types are valid enum types, and it's at least int sized). my
refactoring of enums introduced an explicit check for this, and it
broke some projects in ql. to alleviate that i've commented out this
new check in master.
the question:
should we roll with this? does anyone see any problems or potentially
surprising behavior? e.g. with the semantics of the enum increments
and the double base type? or something else?
--
• attila lendvai
• PGP: 963F 5D5F 45C7 DFCD 0A39
--
“There is nothing sacrosanct about the majority; the lynch mob, too,
is the majority in its own domain.”
— Murray N. Rothbard (1926–1995), 'For a New Liberty' (1973)
More information about the cffi-devel
mailing list