]> git.lyx.org Git - features.git/commitdiff
numbers...
authorAndré Pönitz <poenitz@gmx.net>
Sun, 4 Nov 2007 09:38:51 +0000 (09:38 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Sun, 4 Nov 2007 09:38:51 +0000 (09:38 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21416 a592a061-630c-0410-9148-cb99ea01b6c8

development/tools/count_lines_of_included_code.sh
development/tools/numbers

index 01516b9b3d66eb9e0fc8565058f6e62e70067913..e8fa78344a19999346dd3264dacc3e8548f6f164 100644 (file)
@@ -1,37 +1,5 @@
-
-for i in \
-       boost/bind.hpp \
-       boost/array.hpp \
-       boost/assert.hpp \
-       boost/crc.hpp \
-       boost/cregex.hpp \
-       boost/current_function.hpp \
-       boost/function.hpp \
-       boost/iterator/indirect_iterator.hpp \
-       boost/scoped_array.hpp \
-       boost/scoped_ptr.hpp \
-       boost/shared_ptr.hpp \
-       boost/signal.hpp \
-       boost/signals/connection.hpp \
-       boost/signals/trackable.hpp \
-       boost/tokenizer.hpp \
-       boost/tuple/tuple.hpp \
-       boost/utility.hpp \
-       boost/version.hpp \
-       boost/signals/trackable.hpp \
-       string \
-       vector \
-       map \
-       list \
-       deque \
-       QObject \
-       QString \
-       QList \
-       QVector \
-       QMap \
-       QHash \
-       QRegExp
-do
+#!/bin/bash
+for i in "$@" ; do
        echo "#include <$i>"  > 1.cpp
        inc='-I/suse/usr/src/lyx/trunk/boost -I/usr/include/qt4/QtCore -I/usr/include/qt4'
        l=`g++ $inc -DQT_NO_STL -E 1.cpp | wc -l`
index 626a7bf6df5482cec4a522e9e8724828fee82a91..e5f6611cb79f1e1e5501466e24fdd320bd2903e6 100644 (file)
@@ -1,36 +1,38 @@
 Some results on running  'g++ -E | wc -l' with the appropriate
 includes/defines and a single #include in a compilation unit:
 
-boost/signal.hpp                        : 62141
-boost/signals/trackable.hpp             : 40849
-boost/tokenizer.hpp                     : 39490
-boost/iterator/indirect_iterator.hpp    : 36922
-boost/signals/connection.hpp            : 34957
-boost/function.hpp                      : 31379
-boost/array.hpp                         : 30205
-boost/utility.hpp                       : 30063
-boost/cregex.hpp                        : 21575
-boost/shared_ptr.hpp                    : 17469
-boost/scoped_ptr.hpp                    : 11411
-boost/crc.hpp                           : 5851
-boost/tuple/tuple.hpp                   : 4927
-boost/scoped_array.hpp                  : 3029
-boost/assert.hpp                        : 52
-boost/current_function.hpp              : 21
+boost/signal.hpp                 : 62141
+boost/signals/trackable.hpp      : 40849
+boost/tokenizer.hpp              : 39490
+boost/iterator/indirect_iterator : 36922
+boost/signals/connection.hpp     : 34957
+boost/function.hpp               : 31379
+boost/array.hpp                  : 30205
+boost/utility.hpp                : 30063
+boost/cregex.hpp                 : 21575
+boost/shared_ptr.hpp             : 17469
+boost/scoped_ptr.hpp             : 11411
+boost/crc.hpp                    : 5851
+boost/tuple/tuple.hpp            : 4927
+boost/scoped_array.hpp           : 3029
+boost/assert.hpp                 : 52
+boost/current_function.hpp       : 21
 
-string                                  : 18781
-vector                                  : 11994
-map                                     : 12467
-list                                    : 11134
-deque                                   : 11805
-iosfwd                                  : 6462
-iostream                                : 29529
+string                           : 18781
+vector                           : 11994
+map                              : 12467
+list                             : 11134
+deque                            : 11805
+iosfwd                           : 6462
+iostream                         : 29529
+
+QObject                          : 5601
+QString                          : 3876
+QList                            : 1931
+QVector                          : 4165
+QMap                             : 2831
+QHash                            : 7098
+QRegExp                          : 3959   (boost/cregex.hpp     : 21575 
+QSharedData                      : 838    (boost/shared_ptr.hpp : 17469)
 
-QObject                                 : 5601
-QString                                 : 3876
-QList                                   : 1931
-QVector                                 : 4165
-QMap                                    : 2831
-QHash                                   : 7098
-QRegExp                                 : 3959