Mercurial > hg > xemacs-beta
comparison src/database.c @ 1377:19738a2a5138
[xemacs-hg @ 2003-03-24 15:01:47 by stephent]
don't use DB_AUTO_COMMIT <87ptog3j6t.fsf@tleepslib.sk.tsukuba.ac.jp>
fix word boundary code in regex.c <87smtc3jfv.fsf@tleepslib.sk.tsukuba.ac.jp>
author | stephent |
---|---|
date | Mon, 24 Mar 2003 15:01:50 +0000 |
parents | e22b0213b713 |
children | 908cd1ff6104 |
comparison
equal
deleted
inserted
replaced
1376:2e0147538471 | 1377:19738a2a5138 |
---|---|
711 return Qnil; | 711 return Qnil; |
712 #if DB_VERSION_MAJOR < 4 || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR < 1) | 712 #if DB_VERSION_MAJOR < 4 || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR < 1) |
713 status = dbase->open (dbase, filename, NULL, | 713 status = dbase->open (dbase, filename, NULL, |
714 real_subtype, accessmask, modemask); | 714 real_subtype, accessmask, modemask); |
715 #else /* DB_VERSION >= 4.1 */ | 715 #else /* DB_VERSION >= 4.1 */ |
716 /* You can't use DB_AUTO_COMMIT unless you have a txn environment. */ | |
716 status = dbase->open (dbase, NULL, filename, NULL, real_subtype, | 717 status = dbase->open (dbase, NULL, filename, NULL, real_subtype, |
717 accessmask | DB_AUTO_COMMIT, modemask); | 718 accessmask, modemask); |
718 #endif /* DB_VERSION < 4.1 */ | 719 #endif /* DB_VERSION < 4.1 */ |
719 if (status) | 720 if (status) |
720 { | 721 { |
721 dbase->close (dbase, 0); | 722 dbase->close (dbase, 0); |
722 return Qnil; | 723 return Qnil; |