projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9782598
)
glib-mkenums.in: fix @ENUMPREFIX@ with /*< underscore_name=... >*/
author
Dan Winship
<danw@gnome.org>
Fri, 14 Oct 2011 18:32:11 +0000
(14:32 -0400)
committer
Dan Winship
<danw@gnome.org>
Fri, 28 Oct 2011 19:44:13 +0000
(15:44 -0400)
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
patch
|
blob
|
history
diff --git
a/gobject/glib-mkenums.in
b/gobject/glib-mkenums.in
index
6372245
..
af0304d
100755
(executable)
--- 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;