From ab127091d84336a851e0cec9cfdd0435065d9e2a Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Mon, 23 Nov 2009 10:52:09 -0500 Subject: Fix enum prefix stripping to work only up to word boundaries https://bugzilla.gnome.org/show_bug.cgi?id=602672 --- tests/scanner/foo-1.0-expected.gir | 5 +++++ tests/scanner/foo-1.0-expected.tgir | 5 +++++ tests/scanner/foo.h | 7 +++++++ 3 files changed, 17 insertions(+) (limited to 'tests/scanner') diff --git a/tests/scanner/foo-1.0-expected.gir b/tests/scanner/foo-1.0-expected.gir index 85c2322a..fa3d73cd 100644 --- a/tests/scanner/foo-1.0-expected.gir +++ b/tests/scanner/foo-1.0-expected.gir @@ -23,6 +23,11 @@ and/or use gtk-doc annotations. --> value="0" c:identifier="FOO_SOME_SINGLE_ENUM"/> + + + + + + + + + + diff --git a/tests/scanner/foo.h b/tests/scanner/foo.h index 7c2afe63..199d57a0 100644 --- a/tests/scanner/foo.h +++ b/tests/scanner/foo.h @@ -188,6 +188,13 @@ typedef enum FOO_ENUM_FULLNAME_THREE } FooEnumFullname; +typedef enum +{ + FOO_ADDRESS_INVALID, + FOO_ADDRESS_IPV4, + FOO_ADDRESS_IPV6 +} FooAddressType; + typedef struct _FooBoxed FooBoxed; GType foo_boxed_get_type (void) G_GNUC_CONST; -- cgit v1.2.1