[gtk-doc] Special case for FOO = '}' in enumerations
- From: Stefan Kost <stefkost src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-doc] Special case for FOO = '}' in enumerations
- Date: Mon, 29 Dec 2014 14:51:20 +0000 (UTC)
commit fb2f1b99a8be6b42abefcd4829e4e8839ab1663c
Author: Xavier Claessens <xavier claessens collabora com>
Date: Fri Dec 12 16:00:43 2014 -0500
Special case for FOO = '}' in enumerations
https://bugzilla.gnome.org/show_bug.cgi?id=741305
gtkdoc-common.pl.in | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/gtkdoc-common.pl.in b/gtkdoc-common.pl.in
index 5175473..efc2a6b 100644
--- a/gtkdoc-common.pl.in
+++ b/gtkdoc-common.pl.in
@@ -277,6 +277,12 @@ sub ParseEnumDeclaration {
$declaration =~ s/\([^)\n]+\)//g;
+ # Remove apostrophed characters (e.g. '}' or ',') values to avoid getting
+ # confused with end of enumeration.
+ # See https://bugzilla.gnome.org/show_bug.cgi?id=741305
+
+ $declaration =~ s/\'.\'//g;
+
# Remove comma from comma - possible whitespace - closing brace sequence
# since it is legal in GNU C and C99 to have a trailing comma but doesn't
# result in an actual enum member
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]