GNOME Bugzilla – Bug 98617
Latest h2defs.py produces is-constructor-of entries
Last modified: 2004-12-22 21:47:04 UTC
The latest h2defs.py from CVS produces defs files that contain the is-constructor-of parameter for functions that look like they are constructors. This produces warnings with the current GtkDefs.pm: GtkDefs.pm: Unhandled function parameter ( (is-constructor-of "GconfSchema") ) in gconf_schema_new
h2defs.py is not part of gtkmm. Reassigning.
Murray: when reassigning accross product boundaries, use "reassign bug to owner of selected component". Otherwise I get no notification (you still own the bug). Tassos: h2def.py is not intended to create a fully correct defs file. Quite often the resulting defs file will need some additional tweaking to add some information that could not be derived from the header. Working out what functions are constructors and what aren't is one such thing that can't always be deduced. It seems that the current heuristics result in more correct defs entries than incorrect ones. If your tools can't handle (is-constructor-of "...") lines, then that is a bug in your tools (it has been in all the drafts of the current defs spec). If the information is not of any use for you, then your tool should be ignoring it. I will leave it up to murray to close this if appropriate.
Fixed in cvs. We will just ignore those entries for now - maybe we could complain about unwrapped constructors in future.