mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 23:04:20 +01:00
3bb1ede015
git-svn-id: file:///svn/toku/tokudb@19292 c7de825b-a66e-492c-adef-691d508d4ae1
33 lines
857 B
C
33 lines
857 B
C
#if !defined(TOKUDB_COMMON_FUNCS_H)
|
|
#define TOKUDB_COMMON_FUNCS_H
|
|
|
|
/* -*- mode: C; c-basic-offset: 4 -*- */
|
|
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
|
|
|
|
|
|
#include <db.h>
|
|
#include <memory.h>
|
|
#if defined(TOKUDB) && TOKU_WINDOWS
|
|
#include <ydb.h>
|
|
#endif
|
|
static int test_main (int argc, char *const argv[]);
|
|
int
|
|
main(int argc, char *const argv[]) {
|
|
int r;
|
|
#if defined(TOKUDB) && TOKU_WINDOWS
|
|
toku_ydb_init();
|
|
#endif
|
|
#if !defined(TOKUDB) && DB_VERSION_MINOR==4 && DB_VERSION_MINOR == 7
|
|
r = db_env_set_func_malloc(toku_malloc); assert(r==0);
|
|
r = db_env_set_func_free(toku_free); assert(r==0);
|
|
r = db_env_set_func_realloc(toku_realloc); assert(r==0);
|
|
#endif
|
|
r = test_main(argc, argv);
|
|
#if defined(TOKUDB) && TOKU_WINDOWS
|
|
toku_ydb_destroy();
|
|
#endif
|
|
return r;
|
|
}
|
|
|
|
#endif /* #if !defined(TOKUDB_COMMON_H) */
|
|
|