summaryrefslogtreecommitdiffstats
path: root/usr.bin/make/globals.h
diff options
context:
space:
mode:
authorharti <harti@FreeBSD.org>2005-03-23 12:56:15 +0000
committerharti <harti@FreeBSD.org>2005-03-23 12:56:15 +0000
commit4fa1581ab5455f552c5bb19ec85108fda265d3e3 (patch)
tree9063b6b0025218d6244ad30a8bfa72a85bc4ba1b /usr.bin/make/globals.h
parent6074d030e0cfd6d506a874b419df9b8e939395f3 (diff)
downloadFreeBSD-src-4fa1581ab5455f552c5bb19ec85108fda265d3e3.zip
FreeBSD-src-4fa1581ab5455f552c5bb19ec85108fda265d3e3.tar.gz
Make paths an explicite datatype instead of using the generic Lst.
A Path is now a TAILQ of PathElements each of which just points to a reference counted directory. Rename all functions dealing with Paths from the Dir_ prefix to a Path_ prefix.
Diffstat (limited to 'usr.bin/make/globals.h')
-rw-r--r--usr.bin/make/globals.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/usr.bin/make/globals.h b/usr.bin/make/globals.h
index c9b3877..c0b5050 100644
--- a/usr.bin/make/globals.h
+++ b/usr.bin/make/globals.h
@@ -52,6 +52,7 @@
struct GNode;
struct IFile;
+struct Path;
/*
* The list of target names specified on the command line.
@@ -60,12 +61,15 @@ struct IFile;
extern Lst create;
/* The list of directories to search when looking for targets */
-extern Lst dirSearchPath;
+extern struct Path dirSearchPath;
extern struct IFile curFile; /* current makefile */
/* The list of directories to search when looking for includes */
-extern Lst parseIncPath;
+extern struct Path parseIncPath;
+
+/* The system include path. */
+extern struct Path sysIncPath;
extern Boolean jobsRunning; /* True if jobs are running */
extern Boolean compatMake; /* True if we are make compatible */
@@ -116,9 +120,6 @@ extern time_t now;
extern Boolean oldVars; /* Do old-style variable substitution */
-/* The system include path. */
-extern Lst sysIncPath;
-
extern int debug;
#endif /* globals_h_1c1edb96 */
OpenPOWER on IntegriCloud