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/make/defines.h | |
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/make/defines.h')
-rw-r--r-- | usr.bin/make/defines.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/usr.bin/make/defines.h b/usr.bin/make/defines.h index 11961a94c77..2a926e71236 100644 --- a/usr.bin/make/defines.h +++ b/usr.bin/make/defines.h @@ -2,7 +2,7 @@ #define DEFINES_H /* $OpenPackages$ */ -/* $OpenBSD: defines.h,v 1.2 2002/02/19 19:39:38 millert Exp $ */ +/* $OpenBSD: defines.h,v 1.3 2007/07/08 17:44:20 espie Exp $ */ /* * Copyright (c) 2001 Marc Espie. @@ -47,9 +47,6 @@ typedef struct List_ *Lst; struct SymTable_; typedef struct SymTable_ SymTable; -struct ohash; -typedef struct ohash GSymT; - struct Buffer_; typedef struct Buffer_ *Buffer; |