cl-autowrap icon indicating copy to clipboard operation
cl-autowrap copied to clipboard

Empty enum handling

Open KislyjKisel opened this issue 1 year ago • 0 comments

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.

KislyjKisel avatar Jan 18 '24 14:01 KislyjKisel