summaryrefslogtreecommitdiff
path: root/usr.bin/make/extern.h
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2000-06-23 16:23:27 +0000
committerMarc Espie <espie@cvs.openbsd.org>2000-06-23 16:23:27 +0000
commit41e33b5b009c8bead85f37baffcdd523386c86da (patch)
tree89b6818cba729410105ea8ec775d601055165781 /usr.bin/make/extern.h
parent9fe43896ab7c1ae716cc383807b510e85517c2d8 (diff)
This patch separates local contexts from global contexts for good.
Apart from a few casts, VAR_GLOBAL and friends are separate data structures, so we use a small array for local variables. We also junk allVars, since TargFreeGN can release local nodes, and var.c has explicit lists for its variables already. Reviewed millert@ and miod@.
Diffstat (limited to 'usr.bin/make/extern.h')
-rw-r--r--usr.bin/make/extern.h19
1 files changed, 10 insertions, 9 deletions
diff --git a/usr.bin/make/extern.h b/usr.bin/make/extern.h
index 3f041ff215c..0b6a00b1bd5 100644
--- a/usr.bin/make/extern.h
+++ b/usr.bin/make/extern.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: extern.h,v 1.25 2000/06/23 16:20:01 espie Exp $ */
+/* $OpenBSD: extern.h,v 1.26 2000/06/23 16:23:26 espie Exp $ */
/* $NetBSD: nonints.h,v 1.12 1996/11/06 17:59:19 christos Exp $ */
/*-
@@ -90,7 +90,7 @@ Boolean Make_Run __P((Lst));
void Parse_Error __P((int, char *, ...));
Boolean Parse_AnyExport __P((void));
Boolean Parse_IsVar __P((char *));
-void Parse_DoVar __P((char *, SymTable *));
+void Parse_DoVar __P((char *, GSymT *));
void Parse_AddIncludeDir __P((char *));
void Parse_File __P((char *, FILE *));
void Parse_Init __P((void));
@@ -142,21 +142,22 @@ void Targ_PrintType __P((int));
void Targ_PrintGraph __P((int));
/* var.c */
-void Var_Delete __P((char *, SymTable *));
-void Var_Set __P((char *, char *, SymTable *));
+void Var_Delete __P((char *, GSymT *));
+void Var_Set __P((char *, char *, GSymT *));
void Varq_Set __P((int, char *, GNode *));
-void Var_Append __P((char *, char *, SymTable *));
+void Var_Append __P((char *, char *, GSymT *));
void Varq_Append __P((int, char *, GNode *));
-Boolean Var_Exists __P((char *, SymTable *));
+Boolean Var_Exists __P((char *, GSymT *));
Boolean Varq_Exists __P((int, GNode *));
-char *Var_Value __P((char *, SymTable *));
+char *Var_Value __P((char *, GSymT *));
char *Varq_Value __P((int, GNode *));
char *Var_Parse __P((char *, SymTable *, Boolean, size_t *, Boolean *));
char *Var_Subst __P((char *, SymTable *, Boolean));
-void Var_SubstVar __P((Buffer, char *, const char *, SymTable *));
+void Var_SubstVar __P((Buffer, char *, const char *, GSymT *));
char *Var_GetTail __P((char *));
char *Var_GetHead __P((char *));
void Var_Init __P((void));
void Var_End __P((void));
-void Var_Dump __P((SymTable *));
+void Var_Dump __P((GSymT *));
void SymTable_Init __P((SymTable *));
+void SymTable_Destroy __P((SymTable *));