summaryrefslogtreecommitdiff
path: root/dist/s_style
diff options
context:
space:
mode:
authorKeith Bostic <keith@wiredtiger.com>2014-10-02 19:58:07 -0400
committerKeith Bostic <keith@wiredtiger.com>2014-10-02 19:58:07 -0400
commitf2c75a3060b572d0fc42c8aaddf915ba38f38bd9 (patch)
tree6371bf53a1591ff46c8e153e8a074356a8f870e3 /dist/s_style
parent50b1e57a98b068a7c1147d44647dd504f719fe2d (diff)
downloadmongo-f2c75a3060b572d0fc42c8aaddf915ba38f38bd9.tar.gz
Minor cleanups: complain if we see off_t from now, hardwire tests for the
size of size_t and off_t before we compile.
Diffstat (limited to 'dist/s_style')
-rw-r--r--dist/s_style5
1 files changed, 3 insertions, 2 deletions
diff --git a/dist/s_style b/dist/s_style
index 09b1b9460d2..9238acbbe2a 100644
--- a/dist/s_style
+++ b/dist/s_style
@@ -58,9 +58,9 @@ for f in \
cat $t
fi
- egrep 'u_quad' $f | sed '/@u_quad_decl@/d' > $t
+ egrep -w 'off_t' $f > $t
test -s $t && {
- echo "$f: old-style type declaration: u_XXX_t or u_quad"
+ echo "$f: off_t type declaration, use wt_off_t"
cat $t
}
@@ -130,6 +130,7 @@ for f in \
-e 's/\([ ,]\)u_int16_t\([ ,]\)/\1uint16_t\2/g' \
-e 's/\([ ,]\)u_int32_t\([ ,]\)/\1uint32_t\2/g' \
-e 's/\([ ,]\)u_int64_t\([ ,]\)/\1uint64_t\2/g' \
+ -e 's/\([ ,]\)u_quad\([ ,]\)/\1uint64_t\2/g' \
-e 's/\([|&=+-]\) *\([^*]\)/\1 \2/' \
-e 's/(void) \([a-zA-Z_]\)/(void)\1/' \
-e '/for /!s/;;$/;/' \