[glib/glib-2-30] glib-mkenums.in: fix @ENUMPREFIX@ with /*< underscore_name=... >*/
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/glib-2-30] glib-mkenums.in: fix @ENUMPREFIX@ with /*< underscore_name=... >*/
- Date: Fri, 11 Nov 2011 21:22:45 +0000 (UTC)
commit d3da689c4c3dbeee92ff5c5a3407cb078a2ab546
Author: Dan Winship <danw gnome org>
Date: Fri Oct 14 14:32:11 2011 -0400
glib-mkenums.in: fix @ENUMPREFIX@ with /*< underscore_name=... >*/
For enums defined with an underscore_name override, @ENUMPREFIX@
would include a trailing "_". Fix.
https://bugzilla.gnome.org/show_bug.cgi?id=661797
gobject/glib-mkenums.in | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gobject/glib-mkenums.in b/gobject/glib-mkenums.in
index 6372245..af0304d 100755
--- a/gobject/glib-mkenums.in
+++ b/gobject/glib-mkenums.in
@@ -379,7 +379,7 @@ while (<>) {
$enumshort =~ s/^[A-Z][A-Z0-9]*_//;
$enumname_prefix = $enumlong;
- $enumname_prefix =~ s/$enumshort$//;
+ $enumname_prefix =~ s/_$enumshort$//;
} else {
# enumname is e.g. GMatchType
$enspace = $enumname;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]