add -DQT_NO_KEYWORDS to the statistic scripts, since that's what we use in

reality


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23722 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2008-03-14 19:48:58 +00:00
parent 09e90f10ae
commit afc94c736f
2 changed files with 6 additions and 5 deletions

View File

@ -2,7 +2,7 @@
for i in "$@" ; do
echo "#include <$i>" > 1.cpp
inc='-I. -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`
l=`g++ $inc -DQT_NO_KEYWORDS -DQT_NO_STL -E 1.cpp | wc -l`
printf "%-40s: %d\n" $i $l
done

View File

@ -21,12 +21,13 @@ t=0
#for i in `find ../../src/graphics -name '*.cpp'` ; do
#for i in `find ../../src/graphics -name '*.cpp'` ; do
#for i in `find ../../src/support/chdir.cpp` ; do
defines=-DQT_NO_STL -DQT_NO_KEYWORDS
for i in `find ../.. -name '*.cpp'` ; do
#echo $i
#echo "g++ $inc -DQT_NO_STL -E $i"
#g++ $inc -DQT_NO_STL -E $i > tmp/`basename $i`
g++ $inc -DQT_NO_STL -E $i > t
l=`g++ $inc -DQT_NO_STL -E $i | wc -l`
#echo "g++ $inc $defines -E $i"
#g++ $inc $defines -E $i > tmp/`basename $i`
g++ $inc $defines -E $i > t
l=`g++ $inc $defines -E $i | wc -l`
f=`cat $i | wc -l`
s=$[s + l]
t=$[t + f]