add support for DB_INIT_CDB
This commit is contained in:
parent
e2f497619a
commit
d110aa567d
2
c/bdb.c
2
c/bdb.c
|
@ -106,6 +106,7 @@ static s48_value scheme_DB_AFTER = S48_FALSE;
|
||||||
static s48_value scheme_DB_BEFORE = S48_FALSE;
|
static s48_value scheme_DB_BEFORE = S48_FALSE;
|
||||||
static s48_value scheme_DB_KEYFIRST = S48_FALSE;
|
static s48_value scheme_DB_KEYFIRST = S48_FALSE;
|
||||||
static s48_value scheme_DB_KEYLAST = S48_FALSE;
|
static s48_value scheme_DB_KEYLAST = S48_FALSE;
|
||||||
|
static s48_value scheme_DB_INIT_CDB = S48_FALSE;
|
||||||
static s48_value scheme_DB_DBT_USERMEM = S48_FALSE;
|
static s48_value scheme_DB_DBT_USERMEM = S48_FALSE;
|
||||||
|
|
||||||
/* initialise DB_TYPES */
|
/* initialise DB_TYPES */
|
||||||
|
@ -1370,6 +1371,7 @@ void scsh_init_bdb_bindings(void)
|
||||||
ENTER_INTEGER_CONSTANT(scheme_DB_BEFORE, DB_BEFORE);
|
ENTER_INTEGER_CONSTANT(scheme_DB_BEFORE, DB_BEFORE);
|
||||||
ENTER_INTEGER_CONSTANT(scheme_DB_KEYFIRST, DB_KEYFIRST);
|
ENTER_INTEGER_CONSTANT(scheme_DB_KEYFIRST, DB_KEYFIRST);
|
||||||
ENTER_INTEGER_CONSTANT(scheme_DB_KEYLAST, DB_KEYLAST);
|
ENTER_INTEGER_CONSTANT(scheme_DB_KEYLAST, DB_KEYLAST);
|
||||||
|
ENTER_INTEGER_CONSTANT(scheme_DB_INIT_CDB, DB_INIT_CDB);
|
||||||
ENTER_INTEGER_CONSTANT(scheme_DB_DBT_USERMEM, DB_DBT_USERMEM);
|
ENTER_INTEGER_CONSTANT(scheme_DB_DBT_USERMEM, DB_DBT_USERMEM);
|
||||||
|
|
||||||
/* return codes */
|
/* return codes */
|
||||||
|
|
|
@ -156,7 +156,8 @@
|
||||||
(before (lookup-shared-value "scheme_DB_BEFORE"))
|
(before (lookup-shared-value "scheme_DB_BEFORE"))
|
||||||
(key-first (lookup-shared-value "scheme_DB_KEYFIRST"))
|
(key-first (lookup-shared-value "scheme_DB_KEYFIRST"))
|
||||||
(key-last (lookup-shared-value "scheme_DB_KEYLAST"))
|
(key-last (lookup-shared-value "scheme_DB_KEYLAST"))
|
||||||
(dbt-user-memory (lookup-shared-value "scheme_DB_DBT_USERMEM")))
|
(init-cdb (lookup-shared-value "scheme_DB_INIT_CDB"))
|
||||||
|
(dbt-user-memory (lookup-shared-value "scheme_DB_DBT_USERMEM"))))
|
||||||
|
|
||||||
(define-finite-type lock-mode :lock-mode
|
(define-finite-type lock-mode :lock-mode
|
||||||
(id)
|
(id)
|
||||||
|
|
Loading…
Reference in New Issue