quote "true" to fix warning about reserved word.

2006-10-24  Michael Natterer  <mitch@gimp.org>

	* tools/gimp-mkenums (parse_trigraph): quote "true" to fix warning
	about reserved word.
This commit is contained in:
Michael Natterer
2006-10-24 13:26:35 +00:00
committed by Michael Natterer
parent 35e9cee09f
commit 41b1d526b8
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2006-10-24 Michael Natterer <mitch@gimp.org>
* tools/gimp-mkenums (parse_trigraph): quote "true" to fix warning
about reserved word.
2006-10-24 Manish Singh <yosh@gimp.org>
* plug-ins/pygimp/pygimp-vectors.c: Vector object wrapper API.

View File

@ -27,10 +27,10 @@ sub parse_trigraph {
my $opts = shift;
my @opts;
for $opt (quotewords(",", true, $opts)) {
for $opt (quotewords(",", "true", $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;
}