running splint on the code.

This commit is contained in:
skarg
2007-11-28 23:02:32 +00:00
parent 4e98fc2b03
commit 97b19c07c8
3 changed files with 18 additions and 1 deletions
+10
View File
@@ -0,0 +1,10 @@
-Iinclude
-Idemo/handler
-Idemo/object
-Iports/linux
-castfcnptr
-fullinitblock
-weak
+posixlib
-skipposixheaders
+1
View File
@@ -25,3 +25,4 @@ O. Convert object methods to use an array of object methods
P. Convert datalink methods to use function pointers that can be
overridden in main.c.
Q. Create BACnet router code that uses more than one datalink.
R. splint the code. Make intelligent fixes.
+7 -1
View File
@@ -3,11 +3,17 @@
[ -x /usr/bin/splint ] || exit 0
INCLUDES="-Iinclude -Idemo/handler -Idemo/object -Iports/linux"
SETTINGS="-castfcnptr -fullinitblock -weak +posixlib"
if [ ! -x .splintrc ]
then
echo ${INCLUDES} ${SETTINGS} > .splintrc
fi
directory=${1-`pwd`}
for filename in $( find $directory -name '*.c' )
do
echo splinting ${filename}
/usr/bin/splint ${INCLUDES} ${filename}
/usr/bin/splint ${filename}
done