chk.proto

来自「mysql-5.0.33源码包」· PROTO 代码 · 共 46 行

PROTO
46
字号
#!/bin/sh -## $Id: chk.proto,v 1.8 2002/03/27 04:32:59 bostic Exp $## Check to make sure that prototypes are actually needed.d=../..[ -f $d/LICENSE ] || {	echo 'FAIL: cannot find source distribution directory.'	exit 1}t1=__1t2=__2t3=__3egrep '__P' $d/dbinc_auto/*.h |    sed -e 's/[	 ][	 ]*__P.*//' \    -e 's/^.*[	 *]//' \    -e '/__db_cprint/d' \    -e '/__db_lprint/d' \    -e '/__db_noop_log/d' \    -e '/__db_prnpage/d' \    -e '/__db_txnlist_print/d' \    -e '/__db_util_arg/d' \    -e '/__ham_func2/d' \    -e '/__ham_func3/d' \    -e '/_getpgnos/d' \    -e '/_print$/d' \    -e '/_read$/d' > $t1find $d -name '*.in' -o -name '*.[ch]' -o -name '*.cpp' > $t2for i in `cat $t1`; do	c=$(egrep -low $i $(cat $t2) | wc -l)	echo "$i: $c"done | egrep ' 1$' > $t3test -s $t3 && {	cat $t3	echo "FAIL: found unnecessary prototypes."	exit 1}exit 0

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?