Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Dec 2009 23:20:02 +0000 (UTC)
From:      Xin LI <delphij@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r200417 - head/usr.bin/make
Message-ID:  <200912112320.nBBNK2XG023270@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: delphij
Date: Fri Dec 11 23:20:02 2009
New Revision: 200417
URL: http://svn.freebsd.org/changeset/base/200417

Log:
  Remove unnecessary includes.
  
  Reviewed by:	rodrigc

Modified:
  head/usr.bin/make/arch.c
  head/usr.bin/make/dir.c
  head/usr.bin/make/for.c
  head/usr.bin/make/globals.h
  head/usr.bin/make/lst.c
  head/usr.bin/make/lst.h
  head/usr.bin/make/make.c
  head/usr.bin/make/str.c
  head/usr.bin/make/targ.c
  head/usr.bin/make/var.c

Modified: head/usr.bin/make/arch.c
==============================================================================
--- head/usr.bin/make/arch.c	Fri Dec 11 23:03:35 2009	(r200416)
+++ head/usr.bin/make/arch.c	Fri Dec 11 23:20:02 2009	(r200417)
@@ -103,7 +103,6 @@ __FBSDID("$FreeBSD$");
 
 #include "arch.h"
 #include "buf.h"
-#include "config.h"
 #include "dir.h"
 #include "globals.h"
 #include "GNode.h"

Modified: head/usr.bin/make/dir.c
==============================================================================
--- head/usr.bin/make/dir.c	Fri Dec 11 23:03:35 2009	(r200416)
+++ head/usr.bin/make/dir.c	Fri Dec 11 23:20:02 2009	(r200417)
@@ -90,7 +90,6 @@ __FBSDID("$FreeBSD$");
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#include <unistd.h>
 
 #include "arch.h"
 #include "dir.h"
@@ -98,7 +97,6 @@ __FBSDID("$FreeBSD$");
 #include "GNode.h"
 #include "hash.h"
 #include "lst.h"
-#include "make.h"
 #include "str.h"
 #include "targ.h"
 #include "util.h"

Modified: head/usr.bin/make/for.c
==============================================================================
--- head/usr.bin/make/for.c	Fri Dec 11 23:03:35 2009	(r200416)
+++ head/usr.bin/make/for.c	Fri Dec 11 23:20:02 2009	(r200417)
@@ -50,11 +50,9 @@ __FBSDID("$FreeBSD$");
 #include <string.h>
 
 #include "buf.h"
-#include "dir.h"
 #include "for.h"
 #include "globals.h"
 #include "lst.h"
-#include "make.h"
 #include "parse.h"
 #include "str.h"
 #include "util.h"

Modified: head/usr.bin/make/globals.h
==============================================================================
--- head/usr.bin/make/globals.h	Fri Dec 11 23:03:35 2009	(r200416)
+++ head/usr.bin/make/globals.h	Fri Dec 11 23:20:02 2009	(r200417)
@@ -45,9 +45,6 @@
  * Global Variables
  */
 
-#include <time.h>
-#include <stdint.h>
-
 #include "lst.h"
 #include "util.h"
 

Modified: head/usr.bin/make/lst.c
==============================================================================
--- head/usr.bin/make/lst.c	Fri Dec 11 23:03:35 2009	(r200416)
+++ head/usr.bin/make/lst.c	Fri Dec 11 23:20:02 2009	(r200417)
@@ -41,7 +41,6 @@
 #include <stdlib.h>
 
 #include "lst.h"
-#include "make.h"
 #include "util.h"
 
 /**

Modified: head/usr.bin/make/lst.h
==============================================================================
--- head/usr.bin/make/lst.h	Fri Dec 11 23:03:35 2009	(r200416)
+++ head/usr.bin/make/lst.h	Fri Dec 11 23:20:02 2009	(r200417)
@@ -48,8 +48,6 @@
  *	Header for using the list library
  */
 
-#include "util.h"
-
 /*
  * Structure of a list node.
  */

Modified: head/usr.bin/make/make.c
==============================================================================
--- head/usr.bin/make/make.c	Fri Dec 11 23:03:35 2009	(r200416)
+++ head/usr.bin/make/make.c	Fri Dec 11 23:20:02 2009	(r200417)
@@ -72,10 +72,7 @@ __FBSDID("$FreeBSD$");
  *			and perform the .USE actions if so.
  */
 
-#include <stdlib.h>
-
 #include "arch.h"
-#include "config.h"
 #include "dir.h"
 #include "globals.h"
 #include "GNode.h"

Modified: head/usr.bin/make/str.c
==============================================================================
--- head/usr.bin/make/str.c	Fri Dec 11 23:03:35 2009	(r200416)
+++ head/usr.bin/make/str.c	Fri Dec 11 23:20:02 2009	(r200417)
@@ -41,12 +41,10 @@
 #include <sys/cdefs.h>
 __FBSDID("$FreeBSD$");
 
-#include <ctype.h>
 #include <stdlib.h>
 #include <string.h>
 
 #include "buf.h"
-#include "globals.h"
 #include "str.h"
 #include "util.h"
 

Modified: head/usr.bin/make/targ.c
==============================================================================
--- head/usr.bin/make/targ.c	Fri Dec 11 23:03:35 2009	(r200416)
+++ head/usr.bin/make/targ.c	Fri Dec 11 23:20:02 2009	(r200417)
@@ -78,13 +78,11 @@ __FBSDID("$FreeBSD$");
  */
 
 #include <stdio.h>
-#include <string.h>
 
 #include "dir.h"
 #include "globals.h"
 #include "GNode.h"
 #include "hash.h"
-#include "make.h"
 #include "suff.h"
 #include "targ.h"
 #include "util.h"

Modified: head/usr.bin/make/var.c
==============================================================================
--- head/usr.bin/make/var.c	Fri Dec 11 23:03:35 2009	(r200416)
+++ head/usr.bin/make/var.c	Fri Dec 11 23:20:02 2009	(r200417)
@@ -84,7 +84,6 @@ __FBSDID("$FreeBSD$");
  * XXX: There's a lot of duplication in these functions.
  */
 
-#include <assert.h>
 #include <ctype.h>
 #include <stdlib.h>
 #include <string.h>
@@ -97,7 +96,6 @@ __FBSDID("$FreeBSD$");
 #include "GNode.h"
 #include "job.h"
 #include "lst.h"
-#include "make.h"
 #include "parse.h"
 #include "str.h"
 #include "targ.h"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200912112320.nBBNK2XG023270>