summaryrefslogtreecommitdiffabout
path: root/src/main.c
authorSergey Poznyakoff <gray@gnu.org.ua>2007-05-21 22:01:29 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2007-05-21 22:01:29 (GMT)
commit2c28da5e5902dde2a7f7dcb04c69d5eff088b2fe (patch) (side-by-side diff)
tree4e3e9fad417b4864dfeac4613a677a98681cb572 /src/main.c
parent48c99630a93560a4c40efdbe955e9a1e395a6162 (diff)
downloadmailfromd-2c28da5e5902dde2a7f7dcb04c69d5eff088b2fe.tar.gz
mailfromd-2c28da5e5902dde2a7f7dcb04c69d5eff088b2fe.tar.bz2
Arguments are passed in the same order for both built-in and MFL-level
functions. If a builtin takes optional arguments, the actual number of arguments is passed in a hidden first argument. This allows to discern between zero arguments (emtpy strings) and absent arguments. git-svn-id: file:///svnroot/mailfromd/trunk@1461 7a8a7f39-df28-0410-adc6-e0d955640f24
Diffstat (limited to 'src/main.c') (more/less context) (ignore whitespace changes)
-rw-r--r--src/main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index aa0c69a..e5d5a7f 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1209,26 +1209,32 @@ parse_opt (int key, char *arg, struct argp_state *state)
case OPTION_DUMP_CODE:
script_dump_code = 1;
+ log_to_stderr = 1;
break;
case OPTION_DUMP_GRAMMAR_TRACE:
script_ydebug = 1;
+ log_to_stderr = 1;
break;
case OPTION_DUMP_LEX_TRACE:
yy_flex_debug = 1;
+ log_to_stderr = 1;
break;
case OPTION_DUMP_MACROS:
script_dump_macros = 1;
+ log_to_stderr = 1;
break;
case OPTION_DUMP_TREE:
script_dump_tree = 1;
+ log_to_stderr = 1;
break;
case OPTION_DUMP_XREF:
script_dump_xref = 1;
+ log_to_stderr = 1;
break;
case OPTION_EXPIRE:

Return to:

Send suggestions and report system problems to the System administrator.