diff options
author | The Android Open Source Project <initial-contribution@android.com> | 2009-03-03 18:28:41 -0800 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2009-03-03 18:28:41 -0800 |
commit | 648161bb0edfc3d43db63caed5cc5213bc6cb78f (patch) | |
tree | 4b825dc642cb6eb9a060e54bf8d69288fbee4904 /WebKitTools/android/flex-2.5.4a/MISC/fastwc/wc2.l | |
parent | a65af38181ac7d34544586bdb5cd004de93897ad (diff) | |
download | external_webkit-648161bb0edfc3d43db63caed5cc5213bc6cb78f.zip external_webkit-648161bb0edfc3d43db63caed5cc5213bc6cb78f.tar.gz external_webkit-648161bb0edfc3d43db63caed5cc5213bc6cb78f.tar.bz2 |
auto import from //depot/cupcake/@135843
Diffstat (limited to 'WebKitTools/android/flex-2.5.4a/MISC/fastwc/wc2.l')
-rw-r--r-- | WebKitTools/android/flex-2.5.4a/MISC/fastwc/wc2.l | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/WebKitTools/android/flex-2.5.4a/MISC/fastwc/wc2.l b/WebKitTools/android/flex-2.5.4a/MISC/fastwc/wc2.l deleted file mode 100644 index bd63cd4..0000000 --- a/WebKitTools/android/flex-2.5.4a/MISC/fastwc/wc2.l +++ /dev/null @@ -1,20 +0,0 @@ -/* Somewhat faster "wc" tool: match more text with each rule */ - -ws [ \t] -nonws [^ \t\n] -word {ws}*{nonws}+ - -%% - int cc = 0, wc = 0, lc = 0; - -{word}{ws}* cc += yyleng; ++wc; -{word}{ws}*\n cc += yyleng; ++wc; ++lc; - -{ws}+ cc += yyleng; - -\n+ cc += yyleng; lc += yyleng; - -<<EOF>> { - printf( "%8d %8d %8d\n", lc, wc, cc ); - yyterminate(); - } |