]> git.pond.sub.org Git - empserver/commit
Symbolic names for table entries in conditionals, closes #928376:
authorMarkus Armbruster <armbru@pond.sub.org>
Thu, 1 Jun 2006 18:48:42 +0000 (18:48 +0000)
committerMarkus Armbruster <armbru@pond.sub.org>
Thu, 1 Jun 2006 18:48:42 +0000 (18:48 +0000)
commitc432e3107d5165e390ff90946cd85eb1432874a9
tree1724006eda869a78ab8b022c988bc86a0fee8e7c
parent15635c25ae5510ab7b7009bf59015ef14bf48fac
Symbolic names for table entries in conditionals, closes #928376:
(ef_elt_byname): New.
(nstr_match_val): Use it to generalize to arbitrary table with
uniquely named elements.  Use ca_type to find table, remove parameter
type.  Callers changed.
(nstr_mkselval): Adapt sanity check accordingly.
(NSC_TYPEID): No longer needed, remove, users changed to use
appropriate integer type instead.  This fixes signedness of sector
selectors des and newdes.
(meta_type): Remove entry for NSC_TYPEID.
(nstr_coerce_val): Can't detect typeid - integer mismatch anymore.
Was nice to have; perhaps revive it later.
include/file.h
include/nsc.h
src/lib/commands/xdump.c
src/lib/common/ef_verify.c
src/lib/common/type.c
src/lib/common/xundump.c
src/lib/global/nsc.c
src/lib/global/symbol.c
src/lib/subs/nstr.c