Title: [89265] trunk/Source/WebCore
- Revision
- 89265
- Author
- [email protected]
- Date
- 2011-06-20 11:51:12 -0700 (Mon, 20 Jun 2011)
Log Message
2011-06-20 Andras Becsi <[email protected]>
Reviewed by Csaba Osztrogonác.
make-hash-tools.pl: Perl 5.14 compatibility
https://bugs.webkit.org/show_bug.cgi?id=61890
No new tests needed.
* make-hash-tools.pl: Use if/elsif instead of switch/case.
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (89264 => 89265)
--- trunk/Source/WebCore/ChangeLog 2011-06-20 18:30:42 UTC (rev 89264)
+++ trunk/Source/WebCore/ChangeLog 2011-06-20 18:51:12 UTC (rev 89265)
@@ -1,3 +1,14 @@
+2011-06-20 Andras Becsi <[email protected]>
+
+ Reviewed by Csaba Osztrogonác.
+
+ make-hash-tools.pl: Perl 5.14 compatibility
+ https://bugs.webkit.org/show_bug.cgi?id=61890
+
+ No new tests needed.
+
+ * make-hash-tools.pl: Use if/elsif instead of switch/case.
+
2011-06-20 Kevin Ollivier <[email protected]>
[wx] Unreviewed build fix, fix the codepaths run under each CPU type.
Modified: trunk/Source/WebCore/make-hash-tools.pl (89264 => 89265)
--- trunk/Source/WebCore/make-hash-tools.pl 2011-06-20 18:30:42 UTC (rev 89264)
+++ trunk/Source/WebCore/make-hash-tools.pl 2011-06-20 18:51:12 UTC (rev 89265)
@@ -20,7 +20,6 @@
# Boston, MA 02110-1301, USA.
use strict;
-use Switch;
use File::Basename;
my $outdir = $ARGV[0];
@@ -28,26 +27,22 @@
my $option = basename($ARGV[0],".gperf");
-switch ($option) {
+if ($option eq "DocTypeStrings") {
-case "DocTypeStrings" {
-
my $docTypeStringsGenerated = "$outdir/DocTypeStrings.cpp";
my $docTypeStringsGperf = $ARGV[0];
shift;
system("gperf --key-positions=\"*\" -s 2 $docTypeStringsGperf > $docTypeStringsGenerated") == 0 || die "calling gperf failed: $?";
-} # case "DocTypeStrings"
+} elsif ($option eq "ColorData") {
-case "ColorData" {
-
my $colorDataGenerated = "$outdir/ColorData.cpp";
my $colorDataGperf = $ARGV[0];
shift;
system("gperf --key-positions=\"*\" -D -s 2 $colorDataGperf > $colorDataGenerated") == 0 || die "calling gperf failed: $?";
-} # case "ColorData"
-
-} # switch ($option)
+} else {
+ die "Unknown option.";
+}
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes