GNOME Bugzilla – Bug 314959
Definition file generator (defgen.py)
Last modified: 2009-02-21 17:23:03 UTC
This is not a bug, this is just a contribution.
Created attachment 51619 [details] defgen source code This is the first version of defgen. Defgen is a new h2def.py implementation.
Hi Osvaldo, I had a look at your defgen but I couldn't figure out how this will improve h2defs or defsgen.py (which uses ctypes) already in codegen. Did you had the chance to do more work on it? Do you mind to spend a couple of words on the benefit of your defgen? Thanks a lot in advance.
Hi Gian, I've created this script a long time ago when I didn't know about h2def. But after knowing about h2def I've decided to put this file here because my implementation is a little bit better than h2def (with little modification we can generate other output formats). The defgen is older than defsgen.py and I don't know much about the later to make a good comparison. When I submited this file to the PyGTK maintainers they told me to take a look at the glib-introspection project and move the defgen.py to those project, but the glib-instrospection project didn't evolve much since them. I have no plans to maintain defgen.py because I believe that the defsgen+ctypes approach is better than code-generation and real improvements on h2def/defgen/defsgen can only be done with glib/gobject improvements (eg. glib-introspection or some kind of IDL).
Osvaldo, please accept my apologies for writing back after such a long time, now that gobject-introspection is going very well I guess we can close this bug, thanks for you contribution.