jwiegley / c2hsc

Utility for creating .hsc files from C API header files
BSD 3-Clause "New" or "Revised" License
26 stars 15 forks source link

Fixed issue #12 #13

Closed cap11235 closed 10 years ago

cap11235 commented 10 years ago

Now non-typedefed types should have the correct tag in their hsc files

cap11235 commented 10 years ago

In retrospect, I realize that I should have done these on a seperate branch. In any case, the new commit makes it so that enum {CONST}; doesn't generate

#integral_t 
#num CONST
cap11235 commented 10 years ago

I think that issue #10 then become irrelevant. We get this:

{- typedef struct Foo_ Foo; -}
#opaque_t struct Foo_
#synonym_t Foo , <struct Foo_>
{- typedef enum Bar_ {
            CONST
        } Bar; -}
#integral_t enum Bar_
#num CONST
#synonym_t Bar , <enum Bar_>

which appears to work perfectly well.