cl-autowrap
cl-autowrap copied to clipboard
Empty enum handling
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.