diff options
author | jbj <devnull@localhost> | 2003-12-15 21:42:09 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 2003-12-15 21:42:09 +0000 |
commit | 8960e3895f7af91126465368dff8fbb36ab4e853 (patch) | |
tree | 3c515e39dde0e88edeb806ea87d08524ba25c761 /db/test/scr003 | |
parent | 752cac72e220dcad4e6fce39508e714e59e3e0a1 (diff) | |
download | rpm-8960e3895f7af91126465368dff8fbb36ab4e853.tar.gz rpm-8960e3895f7af91126465368dff8fbb36ab4e853.tar.bz2 rpm-8960e3895f7af91126465368dff8fbb36ab4e853.zip |
- upgrade to db-4.2.52.
CVS patchset: 6972
CVS date: 2003/12/15 21:42:09
Diffstat (limited to 'db/test/scr003')
-rw-r--r-- | db/test/scr003/chk.define | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/db/test/scr003/chk.define b/db/test/scr003/chk.define index b4c4e4b10..9645470b1 100644 --- a/db/test/scr003/chk.define +++ b/db/test/scr003/chk.define @@ -1,8 +1,9 @@ #!/bin/sh - # -# Id: chk.define,v 1.21 2002/03/27 04:32:58 bostic Exp +# $Id: chk.define,v 1.23 2003/06/30 14:22:57 bostic Exp $ # # Check to make sure that all #defines are actually used. +# Check to make sure that all #defines start in column 1. d=../.. @@ -16,12 +17,19 @@ t1=__1 t2=__2 t3=__3 +find $d -name '*.c' -o -name '*.cpp' | + xargs egrep '^[ ][ ]*#' > $t1 +test -s $t1 && { + cat $t1 + echo "FAIL: found #defines with leading white space." + exit 1 +} + egrep '^#define' $d/dbinc/*.h $d/dbinc/*.in | - sed -e '/db_185.in/d' -e '/xa.h/d' | + sed -e '/db_185.in/d' -e '/queue.h/d' -e '/xa.h/d' | awk '{print $2}' | sed -e '/^B_DELETE/d' \ -e '/^B_MAX/d' \ - -e '/^CIRCLEQ_/d' \ -e '/^DB_BTREEOLDVER/d' \ -e '/^DB_HASHOLDVER/d' \ -e '/^DB_LOCKVERSION/d' \ @@ -31,7 +39,6 @@ egrep '^#define' $d/dbinc/*.h $d/dbinc/*.in | -e '/^DB_UNUSED/d' \ -e '/^DEFINE_DB_CLASS/d' \ -e '/^HASH_UNUSED/d' \ - -e '/^LIST_/d' \ -e '/^LOG_OP/d' \ -e '/^MINFILL/d' \ -e '/^MUTEX_FIELDS/d' \ @@ -45,9 +52,6 @@ egrep '^#define' $d/dbinc/*.h $d/dbinc/*.in | -e '/^QPAGE_CHKSUM/d' \ -e '/^QPAGE_NORMAL/d' \ -e '/^QPAGE_SEC/d' \ - -e '/^SH_CIRCLEQ_/d' \ - -e '/^SH_LIST_/d' \ - -e '/^SH_TAILQ_/d' \ -e '/^SIZEOF_PAGE/d' \ -e '/^TAILQ_/d' \ -e '/^WRAPPED_CLASS/d' \ |