diff --git a/ChangeLog b/ChangeLog index 92bee7b2e..a6e19572f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2005-04-21 Dan Winship + * parser/gapi_pp.pl: add "#if 0" to $eatit_regex + * gdk/EventClient.cs (gtksharp_gdk_event_client_get_time): * glib/Object.cs (gtksharp_get_type_id): * glib/Value.cs (gtksharp_object_get_ref_count, diff --git a/parser/gapi_pp.pl b/parser/gapi_pp.pl index 96cec5738..65b7b6c04 100755 --- a/parser/gapi_pp.pl +++ b/parser/gapi_pp.pl @@ -24,8 +24,8 @@ # Free Software Foundation, Inc., 59 Temple Place - Suite 330, # Boston, MA 02111-1307, USA. -$private_regex = "^#if.*(ENABLE_BACKEND|ENABLE_ENGINE)"; -$eatit_regex = "^#if.*(__cplusplus|DEBUG|DISABLE_COMPAT|ENABLE_BROKEN)"; +$private_regex = '^#if.*(ENABLE_BACKEND|ENABLE_ENGINE)'; +$eatit_regex = '^#if(.*(__cplusplus|DEBUG|DISABLE_COMPAT|ENABLE_BROKEN)|\s+0\s*$)'; $ignoreit_regex = '^\s+\*|#ident|#error|#\s*include|#\s*else|#\s*undef|G_(BEGIN|END)_DECLS|GDKVAR|GTKVAR|GTKMAIN_C_VAR|GTKTYPEUTILS_VAR|VARIABLE|GTKTYPEBUILTIN'; foreach $arg (@ARGV) {