summaryrefslogtreecommitdiffstats
path: root/usr.bin/make/dir.c
diff options
context:
space:
mode:
authorharti <harti@FreeBSD.org>2005-02-01 10:50:37 +0000
committerharti <harti@FreeBSD.org>2005-02-01 10:50:37 +0000
commitb24cc988512ed34d0854c1b8adc8f42b8abecbd5 (patch)
treead58e65b384352ba6b76d8d9e9ad5ae790aaf99f /usr.bin/make/dir.c
parentb0d098fb3c0b0335d47a860cc6fb174948400795 (diff)
downloadFreeBSD-src-b24cc988512ed34d0854c1b8adc8f42b8abecbd5.zip
FreeBSD-src-b24cc988512ed34d0854c1b8adc8f42b8abecbd5.tar.gz
Clean up include files and file including. Split nonints.h into pieces
that get included just where they are needed. All headers include the headers that they need to compile (just with an empty .c file). Sort includes alphabetically where apropriate and fix some duplicate commenting for struct Job, struct GNode and struct Shell by removing one version and inlining the comments into the structure declaration (the comments have been somewhat outdated). This patch does not contain functional changes (checked with md5). Submitted by: Max Okumoto <okumoto@ucsd.edu>
Diffstat (limited to 'usr.bin/make/dir.c')
-rw-r--r--usr.bin/make/dir.c19
1 files changed, 15 insertions, 4 deletions
diff --git a/usr.bin/make/dir.c b/usr.bin/make/dir.c
index 6734b67..f8c0a75 100644
--- a/usr.bin/make/dir.c
+++ b/usr.bin/make/dir.c
@@ -1,4 +1,4 @@
-/*
+/*-
* Copyright (c) 1988, 1989, 1990, 1993
* The Regents of the University of California. All rights reserved.
* Copyright (c) 1988, 1989 by Adam de Boor
@@ -83,14 +83,25 @@ __FBSDID("$FreeBSD$");
* Dir_PrintDirectories Print stats about the directory cache.
*/
-#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <dirent.h>
#include <err.h>
-#include "make.h"
-#include "hash.h"
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <unistd.h>
+
+#include "arch.h"
#include "dir.h"
+#include "globals.h"
+#include "GNode.h"
+#include "hash.h"
+#include "lst.h"
+#include "make.h"
+#include "str.h"
+#include "targ.h"
+#include "util.h"
/*
* A search path consists of a Lst of Path structures. A Path structure
OpenPOWER on IntegriCloud