| OLD | NEW |
| 1 #! /usr/bin/perl | 1 #! /usr/bin/perl |
| 2 # | 2 # |
| 3 # This file is part of the WebKit project | 3 # This file is part of the WebKit project |
| 4 # | 4 # |
| 5 # Copyright (C) 1999 Waldo Bastian (bastian@kde.org) | 5 # Copyright (C) 1999 Waldo Bastian (bastian@kde.org) |
| 6 # Copyright (C) 2007, 2012 Apple Inc. All rights reserved. | 6 # Copyright (C) 2007, 2012 Apple Inc. All rights reserved. |
| 7 # Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) | 7 # Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) |
| 8 # Copyright (C) 2010 Andras Becsi (abecsi@inf.u-szeged.hu), University of Szeg
ed | 8 # Copyright (C) 2010 Andras Becsi (abecsi@inf.u-szeged.hu), University of Szeg
ed |
| 9 # | 9 # |
| 10 # This library is free software; you can redistribute it and/or | 10 # This library is free software; you can redistribute it and/or |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 if (@duplicates > 0) { | 56 if (@duplicates > 0) { |
| 57 die 'Duplicate CSS value keywords values: ', join(', ', @duplicates) . "\n"
; | 57 die 'Duplicate CSS value keywords values: ', join(', ', @duplicates) . "\n"
; |
| 58 } | 58 } |
| 59 | 59 |
| 60 open GPERF, ">CSSValueKeywords.gperf" || die "Could not open CSSValueKeywords.gp
erf for writing"; | 60 open GPERF, ">CSSValueKeywords.gperf" || die "Could not open CSSValueKeywords.gp
erf for writing"; |
| 61 print GPERF << "EOF"; | 61 print GPERF << "EOF"; |
| 62 %{ | 62 %{ |
| 63 /* This file is automatically generated from CSSValueKeywords.in by makevalues,
do not edit */ | 63 /* This file is automatically generated from CSSValueKeywords.in by makevalues,
do not edit */ |
| 64 | 64 |
| 65 #include \"CSSValueKeywords.h\" | 65 #include \"CSSValueKeywords.h\" |
| 66 #include \"HashTools.h\" | 66 #include \"core/platform/HashTools.h\" |
| 67 #include <string.h> | 67 #include <string.h> |
| 68 | 68 |
| 69 namespace WebCore { | 69 namespace WebCore { |
| 70 %} | 70 %} |
| 71 %struct-type | 71 %struct-type |
| 72 struct Value; | 72 struct Value; |
| 73 %omit-struct-type | 73 %omit-struct-type |
| 74 %language=C++ | 74 %language=C++ |
| 75 %readonly-tables | 75 %readonly-tables |
| 76 %compare-strncmp | 76 %compare-strncmp |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 | 155 |
| 156 } // namespace WebCore | 156 } // namespace WebCore |
| 157 | 157 |
| 158 #endif // CSSValueKeywords_h | 158 #endif // CSSValueKeywords_h |
| 159 | 159 |
| 160 EOF | 160 EOF |
| 161 close HEADER; | 161 close HEADER; |
| 162 | 162 |
| 163 my $gperf = $ENV{GPERF} ? $ENV{GPERF} : "gperf"; | 163 my $gperf = $ENV{GPERF} ? $ENV{GPERF} : "gperf"; |
| 164 system("\"$gperf\" --key-positions=\"*\" -D -n -s 2 CSSValueKeywords.gperf --out
put-file=CSSValueKeywords.cpp") == 0 || die "calling gperf failed: $?"; | 164 system("\"$gperf\" --key-positions=\"*\" -D -n -s 2 CSSValueKeywords.gperf --out
put-file=CSSValueKeywords.cpp") == 0 || die "calling gperf failed: $?"; |
| OLD | NEW |