aboutsummaryrefslogtreecommitdiff
path: root/mflib
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2007-05-22 11:37:20 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2007-05-22 11:37:20 +0000
commite2a4bc5127511eeb2628560f034166cd8b033517 (patch)
tree7906489a2b363fc428dab1b385a85622e6ab34a0 /mflib
parent21aa7f59a42451fb51778200cf533f2685203ade (diff)
downloadmailfromd-e2a4bc5127511eeb2628560f034166cd8b033517.tar.gz
mailfromd-e2a4bc5127511eeb2628560f034166cd8b033517.tar.bz2
Build mflib/dns.mf and mflib/safedb.mf from M4 sources
git-svn-id: file:///svnroot/mailfromd/trunk@1465 7a8a7f39-df28-0410-adc6-e0d955640f24
Diffstat (limited to 'mflib')
-rw-r--r--mflib/Makefile.am10
-rw-r--r--mflib/dns.mf4 (renamed from mflib/dns.mf)0
-rw-r--r--mflib/safedb.mf4 (renamed from mflib/safedb.mf)38
3 files changed, 28 insertions, 20 deletions
diff --git a/mflib/Makefile.am b/mflib/Makefile.am
index 354b17b0..7f1f2993 100644
--- a/mflib/Makefile.am
+++ b/mflib/Makefile.am
@@ -30,4 +30,12 @@ inc_DATA =\
strip_domain_part.mf\
valid_domain.mf\
$(PP_SETUP_FILE)
-EXTRA_DIST=$(inc_DATA) pp-setup
+
+EXTRA_DIST=$(inc_DATA) pp-setup dns.mf4 safedb.mf4
+
+SUFFIXES = .mf4 .mf
+
+M4=m4
+
+.mf4.mf:
+ $(M4) $(top_srcdir)/mflib/pp-setup $< > $@
diff --git a/mflib/dns.mf b/mflib/dns.mf4
index da508fd9..da508fd9 100644
--- a/mflib/dns.mf
+++ b/mflib/dns.mf4
diff --git a/mflib/safedb.mf b/mflib/safedb.mf4
index 5f311cb9..1160f845 100644
--- a/mflib/safedb.mf
+++ b/mflib/safedb.mf4
@@ -21,28 +21,28 @@
func safedbget(string name, string key ; string defval, number null)
returns string
do
- catch dbfailure
- do
- return ""
- done
- if $# <= @null
- set null 0
- if $# <= @defval
- set defval ""
- fi
- fi
- return dbget(%name, %key, %defval, %null)
+ catch dbfailure
+ do
+ return ""
+ done
+ if not defined(null)
+ set null 0
+ if not defined(defval)
+ set defval ""
+ fi
+ fi
+ return dbget(%name, %key, %defval, %null)
done
func safedbput(string name, string key, string value ; number null)
do
- catch dbfailure
- do
- return
- done
- if $# <= @null
- set null 0
- fi
- dbput(%name, %key, %value, %null)
+ catch dbfailure
+ do
+ return
+ done
+ if not defined(null)
+ set null 0
+ fi
+ dbput(%name, %key, %value, %null)
done

Return to:

Send suggestions and report system problems to the System administrator.