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

Move db_cxx.h to include dir, and fix valgrind issues. Fixes #197.

git-svn-id: file:///svn/tokudb@1218 c7de825b-a66e-492c-adef-691d508d4ae1
parent a98f0cd1
......@@ -10,8 +10,7 @@ LIBNAME = libtdb_cxx
default: install
install: $(LIBNAME).a
cp $< ../lib/
cp db_cxx.h ../include/
$(OBJS): db_cxx.h
$(OBJS): ../include/db_cxx.h
test1: test1.o dbt.o db.o dbenv.o ../lib/libdb.a
$(LIBNAME).a: $(OBJS)
......
#include <assert.h>
#include <db.h>
#include <errno.h>
#include "db_cxx.h"
#include <db_cxx.h>
Db::Db(DbEnv *env, u_int32_t flags)
: the_Env(env)
{
the_db = 0;
if (the_Env == 0) {
is_private_env = 1;
}
is_private_env = (the_Env == 0);
DB *tmp_db;
int ret = db_create(&tmp_db, the_Env->get_DB_ENV(), flags & !(DB_CXX_NO_EXCEPTIONS));
if (ret!=0) {
......
#include "db_cxx.h"
#include <db_cxx.h>
int Dbc::close (void) {
DBC *dbc = this;
......
#include <assert.h>
#include "db_cxx.h"
#include <db_cxx.h>
DbEnv::DbEnv (u_int32_t flags) {
int ret = db_env_create(&the_env, flags & ~DB_CXX_NO_EXCEPTIONS);
......
#include "db_cxx.h"
#include <db_cxx.h>
Dbt::Dbt(void) {
DBT *dbt = this;
......
#include "db_cxx.h"
#include <db_cxx.h>
int DbTxn::commit (u_int32_t flags) {
DB_TXN *txn = get_DB_TXN();
......
#include <assert.h>
#include "db_cxx.h"
#include <db_cxx.h>
DbTxn::DbTxn(DB_TXN *txn)
: the_txn(txn)
......
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