summaryrefslogtreecommitdiff
path: root/src/support
diff options
context:
space:
mode:
authorMichael Cahill <michael.cahill@wiredtiger.com>2013-11-05 09:47:47 +1100
committerMichael Cahill <michael.cahill@wiredtiger.com>2013-11-05 09:47:47 +1100
commitb73712ffacba582a0ee38eb9fa878f736f38a77b (patch)
tree67b8a358cfa9ea9cfce5361f1fd4a9c90f535ed5 /src/support
parentaa6c1500b2e3cb5369a646297bfaa3955f26758c (diff)
downloadmongo-b73712ffacba582a0ee38eb9fa878f736f38a77b.tar.gz
Create a Python pass for source code style checking (to eventually replace s_style).
Diffstat (limited to 'src/support')
-rw-r--r--src/support/global.c8
-rw-r--r--src/support/hash_fnv.c3
-rw-r--r--src/support/hex.c4
-rw-r--r--src/support/mutex.c2
-rw-r--r--src/support/pow.c5
-rw-r--r--src/support/scratch.c2
6 files changed, 21 insertions, 3 deletions
diff --git a/src/support/global.c b/src/support/global.c
index 807675bddf2..b365b9473eb 100644
--- a/src/support/global.c
+++ b/src/support/global.c
@@ -10,6 +10,10 @@
WT_PROCESS __wt_process; /* Per-process structure */
static int __wt_pthread_once_failed; /* If initialization failed */
+/*
+ * __system_is_little_endian --
+ * Check if the system is little endian.
+ */
static int
__system_is_little_endian(void)
{
@@ -28,6 +32,10 @@ __system_is_little_endian(void)
return (EINVAL);
}
+/*
+ * __wt_pthread_once --
+ * Global initialization, run once.
+ */
static void
__wt_pthread_once(void)
{
diff --git a/src/support/hash_fnv.c b/src/support/hash_fnv.c
index 111556b62a6..099dba1ec73 100644
--- a/src/support/hash_fnv.c
+++ b/src/support/hash_fnv.c
@@ -109,7 +109,8 @@
#define FNV1A_64_INIT ((uint64_t)0xcbf29ce484222325ULL)
/*
- * fnv_64a_buf - perform a 64 bit Fowler/Noll/Vo FNV-1a hash on a buffer
+ * fnv_64a_buf --
+ * Perform a 64 bit Fowler/Noll/Vo FNV-1a hash on a buffer
*
* input:
* buf - start of buffer to hash
diff --git a/src/support/hex.c b/src/support/hex.c
index 079260a4eab..3c220ad6ead 100644
--- a/src/support/hex.c
+++ b/src/support/hex.c
@@ -130,6 +130,10 @@ hex2byte(const u_char *from, u_char *to)
return (0);
}
+/*
+ * __hex_fmterr --
+ * Hex format error message.
+ */
static int
__hex_fmterr(WT_SESSION_IMPL *session)
{
diff --git a/src/support/mutex.c b/src/support/mutex.c
index b684fcf0299..8ed8f50322f 100644
--- a/src/support/mutex.c
+++ b/src/support/mutex.c
@@ -66,7 +66,7 @@ __wt_spin_lock_register(WT_SESSION_IMPL *session,
}
/*
- * __wt_statlog_spinlock_dump --
+ * __wt_statlog_dump_spinlock --
* Log the spin-lock statistics.
*/
int
diff --git a/src/support/pow.c b/src/support/pow.c
index 9ba22a53f8d..c01268245bb 100644
--- a/src/support/pow.c
+++ b/src/support/pow.c
@@ -28,6 +28,7 @@
#include "wt_internal.h"
#ifdef __WIREDTIGER_UNUSED__
+
/*
* __wt_nlpo2_round --
* Round up to the next-largest power-of-two for a 32-bit unsigned value.
@@ -63,6 +64,10 @@ __wt_nlpo2_round(uint32_t v)
return (v + 1);
}
+/*
+ * __wt_nlpo2 --
+ * Return the next largest power-of-two.
+ */
uint32_t
__wt_nlpo2(uint32_t v)
{
diff --git a/src/support/scratch.c b/src/support/scratch.c
index db731bf99de..5f4cab931d6 100644
--- a/src/support/scratch.c
+++ b/src/support/scratch.c
@@ -275,7 +275,7 @@ __wt_buf_catfmt(WT_SESSION_IMPL *session, WT_ITEM *buf, const char *fmt, ...)
}
/*
- * __wt_scr_alloc --
+ * __wt_scr_alloc_func --
* Scratch buffer allocation function.
*/
int