Thinking of removing Gtk enums and D aliases #23
Closed
elementgreen
started this conversation in
General
Replies: 1 comment
-
|
O, never mind. C types such as callback functions reference enums/flags. Now I see why they are aliased. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
While working on getting adrdox working with giD, I realized it isn't handling the current way that gidgen generates enums. Currently gidgen creates enums in the
c.typesmodule with the original name, such as GtkOrientation. The enum members are TitleCase, such as GtkOrientation.Horizontal, which is different than the underlying GIR API. There is then an alias created in thetypesmodule which removes the prefix, such asalias Orientation = GtkOrientation. I'm thinking of making it to where the enums are just defined directly in thetypesmodule with the D enum name, since I can't see a reason to have this extra layer. Just wanted to see if there were any objections to this.Beta Was this translation helpful? Give feedback.
All reactions