diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2007-07-08 17:44:21 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2007-07-08 17:44:21 +0000 |
commit | 0954e637714e88074c69e5eafeecf23182248072 (patch) | |
tree | 7bb2e4b16053abb4bf196a6035263dc864d6b5ae /usr.bin/hexdump/conv.c | |
parent | e5364898169009014fea0c6cc8b2502881f83ffb (diff) |
A set of big related changes. okay millert@, tested further by kettenis@
and matthieu@
This all revolves around putting ALL global variables into one single big
hash, and using flags. This removes some impossible to understand stuff,
like old varfind, and allows for some nice stuff.
- each time we reference a global variable, we create it, possibly as a dummy
variable.
- each time we go to the environment, we remember it, thus we no longer go
back to it.
Lists of dependant changes:
- isolate changes to oldVars and checkEnvFirst.
- remove VAR_CMD and VAR_GLOBAL contexts. The only distinction is in parsevar.
Split Parse_DoVar into Parse_DoVar and Parse_CmdlineVar
- rework var modules around obtain_global_var, observe flags in various
functions like Var_Value and Var_Seti.
- Var_Seti/Var_Appendi are almost the same code, use that internally.
- add magic to handle the very special SHELL variable.
- introduce Var_Definedi for the cases where we don't want the actual
value, to simplify tests.
- add keyword .poison, parse it and set global flags accordingly.
- do poison_checks where needed.
- document poison.
- in for loops, set variable temporarily, so that Var_SubstVar will also
substitute it in varmodifiers expressions.
Diffstat (limited to 'usr.bin/hexdump/conv.c')
0 files changed, 0 insertions, 0 deletions