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

Comparing BDB/BDB.xs (file contents):
Revision 1.14 by root, Sun Jul 8 13:41:03 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);
1073 const_iv (VERSION_PATCH) 1083 const_iv (VERSION_PATCH)
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
1088#if DB_VERSION_MINOR >= 6
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
1098#endif
1078 }; 1099 };
1079 1100
1080 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; )
1081 newCONSTSUB (stash, (char *)civ->name, newSViv (civ->iv)); 1102 newCONSTSUB (stash, (char *)civ->name, newSViv (civ->iv));
1082 1103
1666 CODE: 1687 CODE:
1667 RETVAL = env->set_flags (env, flags, onoff); 1688 RETVAL = env->set_flags (env, flags, onoff);
1668 OUTPUT: 1689 OUTPUT:
1669 RETVAL 1690 RETVAL
1670 1691
1671void set_errfile (DB_ENV *env, FILE *errfile) 1692void set_errfile (DB_ENV *env, FILE *errfile = 0)
1672 CODE: 1693 CODE:
1673 env->set_errfile (env, errfile); 1694 env->set_errfile (env, errfile);
1674 1695
1675void set_msgfile (DB_ENV *env, FILE *msgfile) 1696void set_msgfile (DB_ENV *env, FILE *msgfile = 0)
1676 CODE: 1697 CODE:
1677 env->set_msgfile (env, msgfile); 1698 env->set_msgfile (env, msgfile);
1678 1699
1679int set_verbose (DB_ENV *env, U32 which, int onoff = 1) 1700int set_verbose (DB_ENV *env, U32 which, int onoff = 1)
1680 CODE: 1701 CODE:
1773 CODE: 1794 CODE:
1774 RETVAL = db->set_cachesize (db, gbytes, bytes, ncache); 1795 RETVAL = db->set_cachesize (db, gbytes, bytes, ncache);
1775 OUTPUT: 1796 OUTPUT:
1776 RETVAL 1797 RETVAL
1777 1798
1778int set_flags (DB *db, U32 flags); 1799int set_flags (DB *db, U32 flags)
1779 CODE: 1800 CODE:
1780 RETVAL = db->set_flags (db, flags); 1801 RETVAL = db->set_flags (db, flags);
1781 OUTPUT: 1802 OUTPUT:
1782 RETVAL 1803 RETVAL
1783 1804
1797 CODE: 1818 CODE:
1798 RETVAL = db->set_bt_minkey (db, minkey); 1819 RETVAL = db->set_bt_minkey (db, minkey);
1799 OUTPUT: 1820 OUTPUT:
1800 RETVAL 1821 RETVAL
1801 1822
1802int set_re_delim(DB *db, int delim); 1823int set_re_delim (DB *db, int delim)
1803 CODE: 1824 CODE:
1804 RETVAL = db->set_re_delim (db, delim); 1825 RETVAL = db->set_re_delim (db, delim);
1805 OUTPUT: 1826 OUTPUT:
1806 RETVAL 1827 RETVAL
1807 1828

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines