From d86a481b387b4e356cf4b5337434620efc99b1c6 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Thu, 21 Apr 2005 15:21:11 +0000 Subject: [PATCH] * parser/gapi_pp.pl: add "#if 0" to $eatit_regex svn path=/trunk/gtk-sharp/; revision=43407 --- ChangeLog | 2 ++ parser/gapi_pp.pl | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) 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) {