From: Duncan C. <dun...@us...> - 2004-08-01 16:16:59
|
Update of /cvsroot/gtk2hs/gtk2hs/tools/apicoverage In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19692/tools/apicoverage Modified Files: gtk.ignore Makefile Log Message: Updated api ignore stuff. Some added, some moved elsewhere. New apicvocerage Makefile target 'summary' to list the number of unbound gtk functions, grouped by namespace prefix. Index: Makefile =================================================================== RCS file: /cvsroot/gtk2hs/gtk2hs/tools/apicoverage/Makefile,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- Makefile 30 Jul 2004 16:46:57 -0000 1.2 +++ Makefile 1 Aug 2004 16:16:50 -0000 1.3 @@ -53,8 +53,16 @@ @echo " total gtk functions :" $(gtk_total) @echo " total gtk2hs functions :" $(gtk2hs_total) @echo " difference :" `echo $(gtk_total) - $(gtk2hs_total) | bc` - @echo; echo "run 'diff gtk.def.filtered gtk.coverage' to see in detail" + @echo + @echo "run 'make summary' to get a list of groups of unbound functions" + @echo " on 'diff gtk.def.filtered gtk.coverage' to see in detail" @echo " or 'diff gtk.def.filtered gtk.coverage.filtered' for less noise" +summary : gtk.def.filtered gtk.coverage.filtered + @echo "**** unbound gtk functions by group ****" + @diff gtk.def.filtered gtk.coverage.filtered | \ + awk '$$1 == "<" { print $$2 }' | \ + awk -F _ '{ printf("%s_%s\n", $$1, $$2) }' | uniq -c | sort -n + debug: @echo GTK_IGNORE_FILES = $(GTK_IGNORE_FILES) Index: gtk.ignore =================================================================== RCS file: /cvsroot/gtk2hs/gtk2hs/tools/apicoverage/gtk.ignore,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- gtk.ignore 29 Jul 2004 14:33:18 -0000 1.1 +++ gtk.ignore 1 Aug 2004 16:16:50 -0000 1.2 @@ -19,19 +19,11 @@ exclude gtk_pixmap exclude gtk_item_factory +exclude gtk_item_factories exclude gtk_old_editable exclude gtk_preview exclude gtk_progress -do not exclude gtk_progress_bar_new -do not exclude gtk_progress_bar_pulse -do not exclude gtk_progress_bar_set_text -do not exclude gtk_progress_bar_set_fraction -do not exclude gtk_progress_bar_set_pulse_step -do not exclude gtk_progress_bar_set_orientation -do not exclude gtk_progress_bar_get_text -do not exclude gtk_progress_bar_get_fraction -do not exclude gtk_progress_bar_get_pulse_step -do not exclude gtk_progress_bar_get_orientation +do not exclude gtk_progress_bar exclude gtk_text do not exclude gtk_text_iter @@ -49,11 +41,15 @@ exclude gtk_idle exclude gtk_timeout exclude gtk_input +do not exclude gtk_input_dialog exclude gtk_exit exclude gtk_type exclude gtk_color_selection_set_update_policy +exclude gtk_signal + + #deprecated as of 2.4 exclude gtk_combo do not exclude gtk_combo_box @@ -74,6 +70,10 @@ exclude gtk_true exclude gtk_.*_version exclude gtk_requisition +exclude gtk_main_do_event +exclude gtk_propagate_event +exclude gtk_get_current_event +exclude gtk_get_event_widget #for gtk extensions & widget implementations exclude gtk_draw @@ -87,33 +87,42 @@ exclude gtk_invisible exclude gtk_widget_realize exclude gtk_widget_unrealize +exclude gtk_accessible_connect_widget_destroyed + +#GtkItem abstract base class has no useful methods +exclude gtk_item_select +exclude gtk_item_deselect +exclude gtk_item_toggle #sometimes there are several ways of doing the same thing #so lets ignore the other ways of doing it exclude gtk_init do not exclude gtk_init_check$ +do not exclude gtk_init_add #dont think we need these ? TODO check this exclude gtk_gc exclude gtk_key_snooper exclude gtk_rc +exclude gtk_disable_setlocale +exclude gtk_set_locale +exclude gtk_parse_args #allows to init gtk without opening an X display +exclude stock_add_static #comment in StockItems.hsc says this might be useful #appear to be internal, they're not well documented exclude gtk_binding exclude gtk_debug - -#stuff that we do not call directly, but instead simulate -#usually because the function is varargs -exclude gtk_file_chooser_dialog_new +exclude gtk_rgb_to_hsv +exclude gtk_hsv +exclude gtk_theme_engine #these are sometimes bound if necessary but otherwise we can ignore them always exclude _get_type$ always exclude _valist$ -always exclude _newv$ always exclude _copy$ always exclude _free$ exclude _ref$ |