ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/BDB/BDB.xs
(Generate patch)

Comparing BDB/BDB.xs (file contents):
Revision 1.15 by root, Mon Aug 13 11:16:22 2007 UTC vs.
Revision 1.16 by root, Mon Aug 13 12:01:45 2007 UTC

44 44
45typedef SV SV8; /* byte-sv, used for argument-checking */ 45typedef SV SV8; /* byte-sv, used for argument-checking */
46typedef char *octetstring; 46typedef char *octetstring;
47 47
48static SV *prepare_cb; 48static 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
50static void 60static void
51debug_errcall (const DB_ENV *dbenv, const char *errpfx, const char *msg) 61debug_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
1674void set_errfile (DB_ENV *env, FILE *errfile) 1692void 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
1678void set_msgfile (DB_ENV *env, FILE *msgfile) 1696void 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
1682int set_verbose (DB_ENV *env, U32 which, int onoff = 1) 1700int 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
1781int set_flags (DB *db, U32 flags); 1799int 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
1805int set_re_delim(DB *db, int delim); 1823int 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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines