Commit d129585f authored by Bradley C. Kuszmaul's avatar Bradley C. Kuszmaul

Add in the typedefs

git-svn-id: file:///svn/tokudb@270 c7de825b-a66e-492c-adef-691d508d4ae1
parent da728041
...@@ -103,7 +103,14 @@ int main (int argc __attribute__((__unused__)), char *argv[] __attribute__((__un ...@@ -103,7 +103,14 @@ int main (int argc __attribute__((__unused__)), char *argv[] __attribute__((__un
printf("#define _DB_H\n"); printf("#define _DB_H\n");
printf("/* This code generated by make_db_h. Copyright (c) 2007 Tokutek */\n"); printf("/* This code generated by make_db_h. Copyright (c) 2007 Tokutek */\n");
printf("#if defined(__cplusplus)\nextern \"C\" {\n#endif\n"); printf("#if defined(__cplusplus)\nextern \"C\" {\n#endif\n");
printf("typedef struct __toku_db_btree_stat DB_BTREE_STAT;\n");
printf("typedef struct __toku_db_key_range DB_KEY_RANGE;\n");
printf("typedef struct __toku_db_lsn DB_LSN;\n");
printf("typedef struct __toku_db DB;\n"); printf("typedef struct __toku_db DB;\n");
printf("typedef struct __toku_db_txn DB_TXN;\n");
printf("typedef struct __toku_db_txn_stat DB_TXN_STAT;\n");
printf("typedef struct __toku_dbc DBC;\n");
printf("typedef struct __toku_dbt DBT;\n");
print_dbtype(); print_dbtype();
assert(sizeof(db_btree_stat_fields32)==sizeof(db_btree_stat_fields64)); assert(sizeof(db_btree_stat_fields32)==sizeof(db_btree_stat_fields64));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment