mirror of https://github.com/GNOME/gimp.git
synced with glib-mkenums (execept for the newly added template feature).
2004-07-28 Sven Neumann <sven@gimp.org> * tools/gimp-mkenums: synced with glib-mkenums (execept for the newly added template feature).
This commit is contained in:
parent
2adc9be23f
commit
613d89dbae
|
@ -1,3 +1,8 @@
|
|||
2004-07-28 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* tools/gimp-mkenums: synced with glib-mkenums (execept for the
|
||||
newly added template feature).
|
||||
|
||||
2004-07-28 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* libgimp/gimpbrushselect.c
|
||||
|
|
|
@ -11,6 +11,8 @@
|
|||
# gimp-mkenums
|
||||
# Information about the current enumeration
|
||||
my $flags; # Is enumeration a bitmask?
|
||||
my $option_lowercase_name; # A lower case name to use as part of the *_get_type() function, instead of the one that we guess.
|
||||
# For instance, when an enum uses abnormal capitalization and we can not guess where to put the underscores.
|
||||
my $seenbitshift; # Have we seen bitshift operators?
|
||||
my $enum_prefix; # Prefix for this enumeration
|
||||
my $enumname; # Name for this enumeration
|
||||
|
@ -26,7 +28,7 @@ sub parse_trigraph {
|
|||
for $opt (split /\s*,\s*/, $opts) {
|
||||
$opt =~ s/^\s*//;
|
||||
$opt =~ s/\s*$//;
|
||||
my ($key,$val) = $opt =~ /([-\w]+)(?:=(.+))?/;
|
||||
my ($key,$val) = $opt =~ /(\w+)(?:=(.+))?/;
|
||||
defined $val or $val = 1;
|
||||
push @opts, $key, $val;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue