lmdb: provide both interfaces - advanced 'mdbx' and original 'lmdb'.

This commit is contained in:
Leo Yuriev
2015-10-13 15:46:59 +03:00
parent 09c140c1f4
commit 68171d5f5d
21 changed files with 664 additions and 384 deletions

View File

@@ -26,7 +26,7 @@
#include <unistd.h>
#include <errno.h>
#include <sys/stat.h>
#include "lmdb.h"
#include "mdbx.h"
#define E(expr) CHECK((rc = (expr)) == MDB_SUCCESS, #expr)
#define RES(err, expr) ((rc = expr) == (err) || (CHECK(!rc, #expr), 0))