diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2015-08-04 21:19:54 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2015-08-04 21:19:54 -0700 |
commit | 6f9bd3ab61f0e96c70f7a4587cef017fb155bedd (patch) | |
tree | 8d5bd12646c96924b78d9c4d32ef41475474be1c /eval.c | |
parent | 8a702d43a463472474e9f0adab6858a1637c2a1f (diff) | |
download | txr-6f9bd3ab61f0e96c70f7a4587cef017fb155bedd.tar.gz txr-6f9bd3ab61f0e96c70f7a4587cef017fb155bedd.tar.bz2 txr-6f9bd3ab61f0e96c70f7a4587cef017fb155bedd.zip |
* eval.c (bind_args): Use new ~! for proper indentation
of multi-line context form.
(apply): Use ~! for proper indentation of function code.
* unwind.c (uw_throw): Use ~! for proper indentation of code.
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -512,7 +512,7 @@ static val bind_args(val env, val params, val args, val ctx_form) params = cdr(params); } if (!optargs) - eval_error(ctx_form, lit("~s: too few arguments for ~s\n"), + eval_error(ctx_form, lit("~s: too few arguments for ~!~s\n"), car(ctx_form), ctx_form, nao); while (consp(params)) { val param = car(params); @@ -546,7 +546,7 @@ static val bind_args(val env, val params, val args, val ctx_form) eval_error(ctx_form, lit("~s: ~s is not a bindable symbol"), car(ctx_form), params, nao); } else if (args) { - eval_error(ctx_form, lit("~s: too many arguments for ~s"), + eval_error(ctx_form, lit("~s: too many arguments for ~!~s"), car(ctx_form), ctx_form, nao); } @@ -705,11 +705,11 @@ val apply(val fun, val arglist, val ctx_form) nargs = p - arg; if (nargs < reqargs) - eval_error(ctx_form, lit("~s: missing required arguments for ~s"), + eval_error(ctx_form, lit("~s: missing required arguments for ~!~s"), ctx, func_get_name(fun, nil), nao); if (nargs > fixparam) - eval_error(ctx_form, lit("~s: too many arguments for ~s"), + eval_error(ctx_form, lit("~s: too many arguments for ~!~s"), ctx, func_get_name(fun, nil), nao); for (; nargs < fixparam; nargs++) @@ -752,7 +752,7 @@ val apply(val fun, val arglist, val ctx_form) nargs = p - arg; if (nargs < reqargs) - eval_error(ctx_form, lit("~s: missing required arguments for ~s"), + eval_error(ctx_form, lit("~s: missing required arguments for ~!~s"), ctx, func_get_name(fun, nil), nao); for (; nargs < fixparam; nargs++) |