2013年 6月 5日 星期三 16时52分43秒 CST 最新完整update的webkit代码。
cloc是开源的,下载地址 http://sourceforge.net/projects/cloc/
下载了perl版。
结果:
Cyan:Downloads liuhx$ perl cloc-1.58.pl /Users/liuhx/Desktop/webkit 135856 text files. 111069 unique files. 227132 files ignored. http://cloc.sourceforge.net v 1.58 T=3807.0 s (17.8 files/s, 2414.2 lines/s) -------------------------------------------------------------------------------- Language files blank comment code -------------------------------------------------------------------------------- HTML 34074 273621 40587 1724712 C/C++ Header 9011 181453 285532 1538489 D 4530 3 24 1329060 C++ 5820 270263 214291 1263832 Javascript 8057 163003 231674 715493 Objective C++ 1096 38579 33612 163705 PHP 684 23160 44583 108015 Perl 494 20881 25432 79936 Python 656 20195 36961 69780 CSS 768 8792 3744 43896 XML 1016 11177 6697 43616 IDL 806 4159 0 39247 C 66 5408 3158 25866 make 44 799 366 13958 Ruby 50 1874 1692 13186 Java 100 2060 3258 8427 Objective C 60 1808 1958 6410 yacc 5 733 305 5648 CMake 25 546 230 5536 Expect 4 128 0 4804 Assembly 5 788 46 4222 QML 48 720 436 3734 DTD 13 716 887 3667 m4 17 281 81 2036 XSLT 54 122 78 1632 Bourne Shell 82 358 977 1534 XSD 8 165 122 621 lex 2 115 46 544 Bourne Again Shell 4 38 65 224 YAML 6 42 36 156 Lisp 1 1 3 11 Teamcenter def 1 0 0 4 DOS Batch 1 0 0 1 -------------------------------------------------------------------------------- SUM: 67608 1031988 936881 7222002 --------------------------------------------------------------------------------
然后是iOS 6.1的Safari所使用的WebCore开源码:
Cyan:Downloads liuhx$ perl cloc-1.58.pl /Users/liuhx/Desktop/6.1WebCore-1640.27/ 7375 text files. 7357 unique files. 64 files ignored. http://cloc.sourceforge.net v 1.58 T=269.0 s (27.1 files/s, 4885.5 lines/s) ------------------------------------------------------------------------------- Language files blank comment code ------------------------------------------------------------------------------- C++ 3067 118956 113322 550657 C/C++ Header 3148 55519 97628 171333 Javascript 188 10954 13560 60158 Objective C++ 173 6969 6101 31191 IDL 606 2617 0 25715 Perl 26 2805 1487 12889 CSS 53 1947 1256 9259 make 4 188 261 7164 Python 10 856 1084 2567 CMake 1 170 16 2565 yacc 2 192 87 1987 C 3 239 242 1424 HTML 2 9 46 278 Bourne Shell 12 47 136 137 Objective C 1 13 24 28 Ruby 1 9 25 24 Assembly 1 11 20 19 ------------------------------------------------------------------------------- SUM: 7298 201501 235295 877395 -------------------------------------------------------------------------------