mirror of
				https://gitlab.gnome.org/GNOME/glib.git
				synced 2025-10-31 08:22:16 +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:
		| @@ -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; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user