This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Make c-incpath.c:add_cpp_dir_path static


2004-11-02  Ben Elliston  <bje@au.ibm.com>

	* c-incpath.h (add_cpp_dir_path): Remove extern declaration.
	* c-incpath.c (add_cpp_dir_path): Make static.

Index: c-incpath.h
===================================================================
RCS file: /home/bje/gcc-cvs/gcc/gcc/c-incpath.h,v
retrieving revision 1.7
diff -u -p -r1.7 c-incpath.h
--- c-incpath.h	16 Sep 2004 06:49:56 -0000	1.7
+++ c-incpath.h	2 Nov 2004 00:40:55 -0000
@@ -19,7 +19,6 @@ extern void split_quote_chain (void);
 extern void add_path (char *, int, int, bool);
 extern void register_include_chains (cpp_reader *, const char *,
 				     const char *, int, int, int);
-extern void add_cpp_dir_path (struct cpp_dir *, int);
 
 struct target_c_incpath_s {
   /* Do extra includes processing.  STDINC is false iff -nostdinc was given.  */
Index: c-incpath.c
===================================================================
RCS file: /home/bje/gcc-cvs/gcc/gcc/c-incpath.c,v
retrieving revision 1.19
diff -u -p -r1.19 c-incpath.c
--- c-incpath.c	3 Oct 2004 20:53:03 -0000	1.19
+++ c-incpath.c	2 Nov 2004 00:40:55 -0000
@@ -57,6 +57,8 @@ static struct cpp_dir *remove_duplicates
 static struct cpp_dir *heads[4];
 static struct cpp_dir *tails[4];
 static bool quote_ignores_source_dir;
+static void add_cpp_dir_path (struct cpp_dir *, int);
+
 enum { REASON_QUIET = 0, REASON_NOENT, REASON_DUP, REASON_DUP_SYS };
 
 /* Free an element of the include chain, possibly giving a reason.  */
@@ -310,7 +312,7 @@ split_quote_chain (void)
 
 /* Add P to the chain specified by CHAIN.  */
 
-void
+static void
 add_cpp_dir_path (cpp_dir *p, int chain)
 {
   if (tails[chain])


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]