mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-26 05:56:14 +01:00
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
This commit is contained in:
parent
9782598b81
commit
dd4a8d333d
@ -379,7 +379,7 @@ while (<>) {
|
|||||||
$enumshort =~ s/^[A-Z][A-Z0-9]*_//;
|
$enumshort =~ s/^[A-Z][A-Z0-9]*_//;
|
||||||
|
|
||||||
$enumname_prefix = $enumlong;
|
$enumname_prefix = $enumlong;
|
||||||
$enumname_prefix =~ s/$enumshort$//;
|
$enumname_prefix =~ s/_$enumshort$//;
|
||||||
} else {
|
} else {
|
||||||
# enumname is e.g. GMatchType
|
# enumname is e.g. GMatchType
|
||||||
$enspace = $enumname;
|
$enspace = $enumname;
|
||||||
|
Loading…
Reference in New Issue
Block a user