summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Bostic <keith@wiredtiger.com>2013-11-16 15:32:43 -0500
committerKeith Bostic <keith@wiredtiger.com>2013-11-16 15:32:43 -0500
commit3a809091d6394b9ed69ebf811b65ca4b7eab18f6 (patch)
tree22eacd54b13b4a51f2ab9ab2fc212380fd540522
parent31b30a8d5cbd0e3860c41c17a0d371455ea7c50a (diff)
downloadmongo-3a809091d6394b9ed69ebf811b65ca4b7eab18f6.tar.gz
enum don't need forward declarations.
-rw-r--r--dist/s_typedef4
-rw-r--r--src/include/wt_internal.h6
2 files changed, 6 insertions, 4 deletions
diff --git a/dist/s_typedef b/dist/s_typedef
index 067ae7b93a9..5f81b555284 100644
--- a/dist/s_typedef
+++ b/dist/s_typedef
@@ -24,6 +24,10 @@ build() {
sed -e 's/^[ ]*//' -e 's/[ ]*{$//' | sort | \
while read t n; do
upper=`echo $n | sed -e 's/^__//' | tr a-z A-Z`
+ test "$t" = "enum" && {
+ echo "typedef $t $n $upper;"
+ continue
+ }
echo "$t $n;"
echo " typedef $t $n $upper;"
done
diff --git a/src/include/wt_internal.h b/src/include/wt_internal.h
index 3d2c35a5da7..b8b55640296 100644
--- a/src/include/wt_internal.h
+++ b/src/include/wt_internal.h
@@ -47,10 +47,8 @@ extern "C" {
* DO NOT EDIT: automatically built by dist/s_typedef.
* Forward type declarations for internal types: BEGIN
*/
-enum __wt_page_state;
- typedef enum __wt_page_state WT_PAGE_STATE;
-enum __wt_txn_isolation;
- typedef enum __wt_txn_isolation WT_TXN_ISOLATION;
+typedef enum __wt_page_state WT_PAGE_STATE;
+typedef enum __wt_txn_isolation WT_TXN_ISOLATION;
struct __wt_addr;
typedef struct __wt_addr WT_ADDR;
struct __wt_block;