diff options
author | Keith Bostic <keith@wiredtiger.com> | 2013-11-16 15:32:43 -0500 |
---|---|---|
committer | Keith Bostic <keith@wiredtiger.com> | 2013-11-16 15:32:43 -0500 |
commit | 3a809091d6394b9ed69ebf811b65ca4b7eab18f6 (patch) | |
tree | 22eacd54b13b4a51f2ab9ab2fc212380fd540522 | |
parent | 31b30a8d5cbd0e3860c41c17a0d371455ea7c50a (diff) | |
download | mongo-3a809091d6394b9ed69ebf811b65ca4b7eab18f6.tar.gz |
enum don't need forward declarations.
-rw-r--r-- | dist/s_typedef | 4 | ||||
-rw-r--r-- | src/include/wt_internal.h | 6 |
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; |