From: Duncan C. <dun...@us...> - 2005-03-25 19:15:23
|
Update of /cvsroot/gtk2hs/gtk2hs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26330 Modified Files: ChangeLog Log Message: Various changes to the code generator: ModuleScan.hs: match up against existing .hs modules if there is no .chs or .chs.pp files. ApiGen.hs: minor knock-on change from above. MarshalFixup.hs: more fixup info. CodeGen.hs: pass whether the function is a constructor on to the marshaling functions. This allows them to add castPtr for constructors. Output the constructors in the same order as they occur in the original module (same as we do for functions). Change KnownSymbols map to include the full chaing of parents of each class rather than just a clasification of whether they inherit from GObject or GtkObject. For leaf classes, generate the properties with the specific type rather than it's corresponding typeclass. Marshal.hs: The KnownSymbols map change described above. Add castPtr for constructors and include the specific types that we are casting from and to, just for safty in case the code generator gets it wrong and disagrees with c2hs on types. Add marshaling for gunichar. Makefile: add gobject-api.xml to the --includeapi list so we don't need a special case for GObject in the code generator. glib-sources.xml: make this into glib not gobject. gobject-sources.xml: add gobject seperately. Index: ChangeLog =================================================================== RCS file: /cvsroot/gtk2hs/gtk2hs/ChangeLog,v retrieving revision 1.397 retrieving revision 1.398 diff -u -d -r1.397 -r1.398 --- ChangeLog 24 Mar 2005 17:30:50 -0000 1.397 +++ ChangeLog 25 Mar 2005 19:14:35 -0000 1.398 @@ -1,3 +1,34 @@ +2005-03-25 Duncan Coutts <du...@co...> + + * tools/apiGen/ModuleScan.hs: match up against existing .hs modules if + there is no .chs or .chs.pp files. + + * tools/apiGen/ApiGen.hs: minor knock-on change from above. + + * tools/apiGen/MarshalFixup.hs: more fixup info. + + * tools/apiGen/CodeGen.hs: pass whether the function is a constructor + on to the marshaling functions. This allows them to add castPtr for + constructors. Output the constructors in the same order as they occur + in the original module (same as we do for functions). Change + KnownSymbols map to include the full chaing of parents of each class + rather than just a clasification of whether they inherit from GObject + or GtkObject. For leaf classes, generate the properties with the + specific type rather than it's corresponding typeclass. + + * tools/apiGen/Marshal.hs: The KnownSymbols map change described + above. Add castPtr for constructors and include the specific types + that we are casting from and to, just for safty in case the code + generator gets it wrong and disagrees with c2hs on types. Add + marshaling for gunichar. + + * tools/apiGen/Makefile: add gobject-api.xml to the --includeapi list + so we don't need a special case for GObject in the code generator. + + * tools/apiGen/glib-sources.xml: make this into glib not gobject. + + * tools/apiGen/gobject-sources.xml: add gobject seperately. + 2005-03-24 Duncan Coutts <du...@co...> * gtk/Graphics/UI/Gtk/Scrolling/HScrollbar.chs, |