… | |
… | |
44 | |
44 | |
45 | typedef SV SV8; /* byte-sv, used for argument-checking */ |
45 | typedef SV SV8; /* byte-sv, used for argument-checking */ |
46 | typedef char *octetstring; |
46 | typedef char *octetstring; |
47 | |
47 | |
48 | static SV *prepare_cb; |
48 | static SV *prepare_cb; |
|
|
49 | |
|
|
50 | #if DB_VERSION_MINOR >= 6 |
|
|
51 | # define c_close close |
|
|
52 | # define c_count count |
|
|
53 | # define c_del del |
|
|
54 | # define c_dup dup |
|
|
55 | # define c_get get |
|
|
56 | # define c_pget pget |
|
|
57 | # define c_put put |
|
|
58 | #endif |
49 | |
59 | |
50 | static void |
60 | static void |
51 | debug_errcall (const DB_ENV *dbenv, const char *errpfx, const char *msg) |
61 | debug_errcall (const DB_ENV *dbenv, const char *errpfx, const char *msg) |
52 | { |
62 | { |
53 | printf ("err[%s]\n", msg); |
63 | printf ("err[%s]\n", msg); |
… | |
… | |
1074 | #if DB_VERSION_MINOR >= 5 |
1084 | #if DB_VERSION_MINOR >= 5 |
1075 | const_iv (MULTIVERSION) |
1085 | const_iv (MULTIVERSION) |
1076 | const_iv (TXN_SNAPSHOT) |
1086 | const_iv (TXN_SNAPSHOT) |
1077 | #endif |
1087 | #endif |
1078 | #if DB_VERSION_MINOR >= 6 |
1088 | #if DB_VERSION_MINOR >= 6 |
1079 | const_iv (DB_PREV_DUP) |
1089 | const_iv (PREV_DUP) |
|
|
1090 | # if 0 |
|
|
1091 | const_iv (PRIORITY_UNCHANGED) |
|
|
1092 | const_iv (PRIORITY_VERY_LOW) |
|
|
1093 | const_iv (PRIORITY_LOW) |
|
|
1094 | const_iv (PRIORITY_DEFAULT) |
|
|
1095 | const_iv (PRIORITY_HIGH) |
|
|
1096 | const_iv (PRIORITY_VERY_HIGH) |
|
|
1097 | # endif |
1080 | #endif |
1098 | #endif |
1081 | }; |
1099 | }; |
1082 | |
1100 | |
1083 | for (civ = const_iv + sizeof (const_iv) / sizeof (const_iv [0]); civ-- > const_iv; ) |
1101 | for (civ = const_iv + sizeof (const_iv) / sizeof (const_iv [0]); civ-- > const_iv; ) |
1084 | newCONSTSUB (stash, (char *)civ->name, newSViv (civ->iv)); |
1102 | newCONSTSUB (stash, (char *)civ->name, newSViv (civ->iv)); |
… | |
… | |
1669 | CODE: |
1687 | CODE: |
1670 | RETVAL = env->set_flags (env, flags, onoff); |
1688 | RETVAL = env->set_flags (env, flags, onoff); |
1671 | OUTPUT: |
1689 | OUTPUT: |
1672 | RETVAL |
1690 | RETVAL |
1673 | |
1691 | |
1674 | void set_errfile (DB_ENV *env, FILE *errfile) |
1692 | void set_errfile (DB_ENV *env, FILE *errfile = 0) |
1675 | CODE: |
1693 | CODE: |
1676 | env->set_errfile (env, errfile); |
1694 | env->set_errfile (env, errfile); |
1677 | |
1695 | |
1678 | void set_msgfile (DB_ENV *env, FILE *msgfile) |
1696 | void set_msgfile (DB_ENV *env, FILE *msgfile = 0) |
1679 | CODE: |
1697 | CODE: |
1680 | env->set_msgfile (env, msgfile); |
1698 | env->set_msgfile (env, msgfile); |
1681 | |
1699 | |
1682 | int set_verbose (DB_ENV *env, U32 which, int onoff = 1) |
1700 | int set_verbose (DB_ENV *env, U32 which, int onoff = 1) |
1683 | CODE: |
1701 | CODE: |
… | |
… | |
1776 | CODE: |
1794 | CODE: |
1777 | RETVAL = db->set_cachesize (db, gbytes, bytes, ncache); |
1795 | RETVAL = db->set_cachesize (db, gbytes, bytes, ncache); |
1778 | OUTPUT: |
1796 | OUTPUT: |
1779 | RETVAL |
1797 | RETVAL |
1780 | |
1798 | |
1781 | int set_flags (DB *db, U32 flags); |
1799 | int set_flags (DB *db, U32 flags) |
1782 | CODE: |
1800 | CODE: |
1783 | RETVAL = db->set_flags (db, flags); |
1801 | RETVAL = db->set_flags (db, flags); |
1784 | OUTPUT: |
1802 | OUTPUT: |
1785 | RETVAL |
1803 | RETVAL |
1786 | |
1804 | |
… | |
… | |
1800 | CODE: |
1818 | CODE: |
1801 | RETVAL = db->set_bt_minkey (db, minkey); |
1819 | RETVAL = db->set_bt_minkey (db, minkey); |
1802 | OUTPUT: |
1820 | OUTPUT: |
1803 | RETVAL |
1821 | RETVAL |
1804 | |
1822 | |
1805 | int set_re_delim(DB *db, int delim); |
1823 | int set_re_delim (DB *db, int delim) |
1806 | CODE: |
1824 | CODE: |
1807 | RETVAL = db->set_re_delim (db, delim); |
1825 | RETVAL = db->set_re_delim (db, delim); |
1808 | OUTPUT: |
1826 | OUTPUT: |
1809 | RETVAL |
1827 | RETVAL |
1810 | |
1828 | |