]> git.pond.sub.org Git - empserver/commit
Simplify type coercion in condition evaluation
authorMarkus Armbruster <armbru@pond.sub.org>
Sat, 27 Dec 2008 15:59:53 +0000 (16:59 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Sat, 27 Dec 2008 15:59:53 +0000 (16:59 +0100)
commit9115c03949bc2470285e5d695abc48daae8cf6f0
tree9b7f3ad67120d9c62ae64018d35f07f74bd2261e
parentd2fba584e8b07deacd95f1d6cc4bbda8cd2c6298
Simplify type coercion in condition evaluation

Change nstr_mkselval() to generate values with promoted types only,
and replace nstr_coerce_val() by new and simpler nstr_optype() in
nstr_comp().

Replace the only remaining use of nstr_coerce_val() in surv() by
nstr_promote(), and remove nstr_coerce_val().

This loses one half of the unimplemented sketch of coercions to
NSC_STRING.  Drop the other half from nstr_exec_val().
include/nsc.h
src/lib/commands/surv.c
src/lib/common/nstreval.c
src/lib/subs/nstr.c