Added splint script, and started splinting...
This commit is contained in:
Executable
+13
@@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
# splint is a static code checker
|
||||
[ -x /usr/bin/splint ] || exit 0
|
||||
|
||||
INCLUDES="-Iinclude -Idemo/handler -Idemo/object -Iports/linux"
|
||||
|
||||
directory=${1-`pwd`}
|
||||
for filename in $( find $directory -name '*.c' )
|
||||
do
|
||||
echo splinting ${filename}
|
||||
/usr/bin/splint ${INCLUDES} ${filename}
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user