Issue 30 in ctypesgen: logic of creating EnumDescription was reversed.

0 views
Skip to first unread message

codesite...@google.com

unread,
Feb 24, 2012, 7:00:45 AM2/24/12
to ctyp...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 30 by mozbug...@gmail.com: logic of creating EnumDescription was
reversed.
http://code.google.com/p/ctypesgen/issues/detail?id=30

The logic of creating EnumDescription inside handle_enum() was reversed.
The result was that enums always has no field members.

See the correct way of creating StructDescription in handle_struct().

Attached patch make it write out enum fields in json mode, similar to
struct.


Attachments:
ctypesgen-enum-fields.patch 2.6 KB

codesite...@google.com

unread,
Feb 24, 2012, 7:58:22 AM2/24/12
to ctyp...@googlegroups.com
Updates:
Status: Fixed

Comment #1 on issue 30 by r...@sc3d.org: logic of creating EnumDescription
was reversed.
http://code.google.com/p/ctypesgen/issues/detail?id=30

Thanks; applied.

Reply all
Reply to author
Forward
0 new messages