summaryrefslogtreecommitdiffabout
path: root/NEWS
authorSergey Poznyakoff <gray@gnu.org.ua>2007-05-22 11:23:04 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2007-05-22 11:23:04 (GMT)
commit21aa7f59a42451fb51778200cf533f2685203ade (patch) (side-by-side diff)
tree00d3bf1d9a7a1db442c4676d569a483b80b8fdd0 /NEWS
parent3097cd14c6dd1ce742d0f05af974274576af9e51 (diff)
downloadmailfromd-21aa7f59a42451fb51778200cf533f2685203ade.tar.gz
mailfromd-21aa7f59a42451fb51778200cf533f2685203ade.tar.bz2
Discontinue supporting &code (specifying an exception code)
Implement $# and @parm, which expands to the ordinal number of a parameter: func foo(string x ; number y) do echo @y done gives 1. git-svn-id: file:///svnroot/mailfromd/trunk@1464 7a8a7f39-df28-0410-adc6-e0d955640f24
Diffstat (limited to 'NEWS') (more/less context) (ignore whitespace changes)
-rw-r--r--NEWS42
1 files changed, 40 insertions, 2 deletions
diff --git a/NEWS b/NEWS
index 5cd7f57..cad162b 100644
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,4 @@
-Mailfromd NEWS -- history of user-visible changes. 2007-05-15
+Mailfromd NEWS -- history of user-visible changes. 2007-05-22
Copyright (C) 2005, 2006, 2007 Sergey Poznyakoff
See the end of file for copying conditions.
@@ -10,6 +10,44 @@ Version 4.0.90
* Added National Language Support. Polish and Ukrainian translations
available.
+* Input files are preprocessed before compilation. Default preprocessor is
+ M4, but this can be changed (or disabled) at configuration time (see
+ `DEFAULT_PREPROCESSOR' variable and `--with-preprocessor' command
+ line option).
+
+* New atom $#
+
+ Returns the number of the arguments passed to the function.
+
+* New atom @parm
+
+ Returns the position of parameter `parm' in the function argument
+list. It can be used, for example, to check whether an optional
+argument value is passed to the function, e.g.:
+
+func foo(string x; number n)
+do
+ if $# > @n
+ /* `n' is passed */
+ ...
+
+ The default preprocessor setup script provides a macro `define'
+designed to be used for this purpose:
+
+func foo(string x; number n)
+do
+ if defined(n)
+ /* `n' is passed */
+ ...
+
+* The support for `&code' form to specify an exception code is discontinued.
+
+* Bugfixes:
+** Built-in listen ignored optional second argument.
+** Debug specification incorrectly gave preverence to global level over the
+ source level. This is fixed, so that `--debug=40,dns=10' means
+ level 10 for calls from `dns.c', and level 40 for all the rest.
+
Version 4.0, 2007-05-12
@@ -55,7 +93,7 @@ database. E.g.
# Disable DNS cache:
db_set_active("dns", 0)
# Enable it back again:
- db_set_active("dns", 0)
+ db_set_active("dns", 1)
Similarly, the function `db_get_active' returns a number indicating
whether the given cache database is used or not.

Return to:

Send suggestions and report system problems to the System administrator.