Empty enums by themselves cause errors in C compiler. But for enum used in a typedef before its definition (typedef enum SomeFlags SomeFlags;) c2ffi produces enum declaration with "fields": []. cl-autowrap then fails with "invalid index 0..." in find-prefix (elt sorted-fields 0), which is used in parse-enum-fields I think.
Empty enums by themselves cause errors in C compiler. But for enum used in a typedef before its definition (
typedef enum SomeFlags SomeFlags;
)c2ffi
produces enum declaration with"fields": []
.cl-autowrap
then fails with "invalid index 0..." infind-prefix
(elt sorted-fields 0
), which is used inparse-enum-fields
I think.