aboutsummaryrefslogtreecommitdiff
path: root/src/bi_db.m4
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2007-03-17 22:04:08 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2007-03-17 22:04:08 +0000
commitec1605d16b925c61f6046760af5eb95e02da2f2a (patch)
tree58a749af3e82d7fe4c5c786965934af58d9e3e87 /src/bi_db.m4
parente43ec63dd72be802b3e4d199cf3bb63311869e8d (diff)
downloadmailfromd-ec1605d16b925c61f6046760af5eb95e02da2f2a.tar.gz
mailfromd-ec1605d16b925c61f6046760af5eb95e02da2f2a.tar.bz2
* src/snarf.m4, src/bi_dns.m4, src/bi_dns.m4, src/bi_sa.m4,
src/bi_other.m4, src/bi_mail.m4, src/bi_db.m4: Use MF_THROW instead of MF_CATCH * src/gram.y, src/mailfromd.h, src/prog.c, src/opcodes, src/prog.h, TODO: Provide access for outermost auto variables and parameters from catch blocks. * testsuite/etc/hasmx.rc, testsuite/etc/dns.rc: Use primitive_ functions. git-svn-id: file:///svnroot/mailfromd/trunk@1291 7a8a7f39-df28-0410-adc6-e0d955640f24
Diffstat (limited to 'src/bi_db.m4')
-rw-r--r--src/bi_db.m413
1 files changed, 6 insertions, 7 deletions
diff --git a/src/bi_db.m4 b/src/bi_db.m4
index c466368f..6bc428d2 100644
--- a/src/bi_db.m4
+++ b/src/bi_db.m4
@@ -31,11 +31,10 @@ dbmap_lookup(eval_environ_t env, char *dbname, const char *keystr,
if (!defval)
defval = "";
if (mu_dbm_open(dbname, &db, MU_STREAM_READ, 0, NULL))
- MF_CATCH_VAL(-1,
- mf_dbfailure,
- "mu_dbm_open(%s) failed: %s",
- dbname,
- mu_strerror(errno));
+ MF_THROW(mf_dbfailure,
+ "mu_dbm_open(%s) failed: %s",
+ dbname,
+ mu_strerror(errno));
memset(&key, 0, sizeof key);
memset(&contents, 0, sizeof contents);
@@ -90,7 +89,7 @@ MF_DEFUN(dbput, VOID, STRING dbname, STRING keystr, STRING value,
DBM_DATUM contents;
if (mu_dbm_open(dbname, &db, MU_STREAM_RDWR, 0640, NULL))
- MF_CATCH(mf_dbfailure,
+ MF_THROW(mf_dbfailure,
"mu_dbm_open(%s) failed: %s",
dbname,
mu_strerror(errno));
@@ -121,7 +120,7 @@ MF_DEFUN(dbdel, VOID, STRING dbname, STRING keystr, OPTIONAL, NUMBER null)
DBM_DATUM key;
if (mu_dbm_open(dbname, &db, MU_STREAM_RDWR, 0640, NULL))
- MF_CATCH(mf_dbfailure,
+ MF_THROW(mf_dbfailure,
"mu_dbm_open(%s) failed: %s",
dbname,
mu_strerror(errno));

Return to:

Send suggestions and report system problems to the System administrator.