| 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, 2008, 2012 Apple Inc. All rights reserved. | 6 # Copyright (C) 2007, 2008, 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 if (@duplicates > 0) { | 59 if (@duplicates > 0) { |
| 60 die 'Duplicate CSS property names: ', join(', ', @duplicates) . "\n"; | 60 die 'Duplicate CSS property names: ', join(', ', @duplicates) . "\n"; |
| 61 } | 61 } |
| 62 | 62 |
| 63 open GPERF, ">CSSPropertyNames.gperf" || die "Could not open CSSPropertyNames.gp
erf for writing"; | 63 open GPERF, ">CSSPropertyNames.gperf" || die "Could not open CSSPropertyNames.gp
erf for writing"; |
| 64 print GPERF << "EOF"; | 64 print GPERF << "EOF"; |
| 65 %{ | 65 %{ |
| 66 /* This file is automatically generated from CSSPropertyNames.in by makeprop, do
not edit */ | 66 /* This file is automatically generated from CSSPropertyNames.in by makeprop, do
not edit */ |
| 67 #include "config.h" | 67 #include "config.h" |
| 68 #include \"CSSPropertyNames.h\" | 68 #include \"CSSPropertyNames.h\" |
| 69 #include \"HashTools.h\" | 69 #include \"core/platform/HashTools.h\" |
| 70 #include <string.h> | 70 #include <string.h> |
| 71 | 71 |
| 72 #include <wtf/ASCIICType.h> | 72 #include <wtf/ASCIICType.h> |
| 73 #include <wtf/text/AtomicString.h> | 73 #include <wtf/text/AtomicString.h> |
| 74 #include <wtf/text/WTFString.h> | 74 #include <wtf/text/WTFString.h> |
| 75 | 75 |
| 76 namespace WebCore { | 76 namespace WebCore { |
| 77 EOF | 77 EOF |
| 78 | 78 |
| 79 print GPERF "const char* const propertyNameStrings[numCSSProperties] = {\n"; | 79 print GPERF "const char* const propertyNameStrings[numCSSProperties] = {\n"; |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 248 } | 248 } |
| 249 | 249 |
| 250 #endif // CSSPropertyNames_h | 250 #endif // CSSPropertyNames_h |
| 251 | 251 |
| 252 EOF | 252 EOF |
| 253 | 253 |
| 254 close HEADER; | 254 close HEADER; |
| 255 | 255 |
| 256 my $gperf = $ENV{GPERF} ? $ENV{GPERF} : "gperf"; | 256 my $gperf = $ENV{GPERF} ? $ENV{GPERF} : "gperf"; |
| 257 system("\"$gperf\" --key-positions=\"*\" -D -n -s 2 CSSPropertyNames.gperf --out
put-file=CSSPropertyNames.cpp") == 0 || die "calling gperf failed: $?"; | 257 system("\"$gperf\" --key-positions=\"*\" -D -n -s 2 CSSPropertyNames.gperf --out
put-file=CSSPropertyNames.cpp") == 0 || die "calling gperf failed: $?"; |
| OLD | NEW |