New enum.pl script.
- From: Krzesimir Nowak <qdlacz gmail com>
- To: gtkmm-list <gtkmm-list gnome org>
- Subject: New enum.pl script.
- Date: Sun, 13 Dec 2009 20:20:54 +0100
I got annoyed with enum.pl generating broken modulemm_enums.defs and in
effect wrapped flags have often wrong values, but I did not feel to be
able to bake some completely new solution. So I rewritten most of the
I updated it to work with `use strict' and `use warnings', added
--with-typedefs (prints original enums in comments above every enum
defs) and --omit-deprecated (just omits everything deprecated) options,
handles most of enums and flags (especially flags!) properly, generates
proper nicks for enums with one value, prints warnings to stderr about
several stuff. It is a better hack, but still a hack.
I'm attaching a patch made against master branch of glibmm. Do I have to
file a bug in bugzilla? (In which category?)
I tested it a bit on master branches of glib (glib, gobject, gio),
pango, atk, gtk (gdk, gdk-pixbuf, gtk), vte and gtksourceview, but that
is so much of enums and flags that I could easily overlook something.
] [Thread Prev