summaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2017-05-30 23:04:31 -0700
committerKaz Kylheku <kaz@kylheku.com>2017-05-30 23:04:31 -0700
commitc91af9a17b0533c6df846ff712e7ade306c7b38a (patch)
treedb34c427af795aff50f1a2227b88cfa6698af196 /eval.c
parent8cd3b90ca5b3b3cf8d2796da6b9374784c0f10cf (diff)
downloadtxr-c91af9a17b0533c6df846ff712e7ade306c7b38a.tar.gz
txr-c91af9a17b0533c6df846ff712e7ade306c7b38a.tar.bz2
txr-c91af9a17b0533c6df846ff712e7ade306c7b38a.zip
command line: --eargs semantics change.
The --eargs mechanism won't perform a blind substring replacement of {} with the following argument. Only arguments which match {} exactly are replaced. * eval.c (retf): Static function becomes extern. * eval.h (retf): Declared. * txr.c (txr_main): Replace the filtering logic on the split eargs argument list to just look for items equal to the string "{}" and replace with the following argument. * txr.1: Updated --eargs documentation.
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/eval.c b/eval.c
index 4e6766d0..220355b3 100644
--- a/eval.c
+++ b/eval.c
@@ -5246,7 +5246,7 @@ static val do_retf(val ret, struct args *args)
return ret;
}
-static val retf(val ret)
+val retf(val ret)
{
return func_f0v(ret, do_retf);
}