summaryrefslogtreecommitdiff
path: root/gcc/cp/repo.c
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1998-03-31 13:25:46 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1998-03-31 13:25:46 +0000
commitb3ef7553ba316af017be8740132dc6af5ee9b100 (patch)
tree5c98b8869e1b55dd06ca73126add91d270941f31 /gcc/cp/repo.c
parentde0ead4e8f538f19ceb04db65969414e62589311 (diff)
downloadgcc-b3ef7553ba316af017be8740132dc6af5ee9b100.tar.gz
* call.c: Include system.h. Remove includes, declarations and
defines provided by system.h. * class.c, cvt.c, decl.c, decl2.c, errfn.c error.c: Likewise. * except.c, expr.c friend.c, g++spec.c, init.c, input.c: Likewise. * lex.c, parse.y, pt.c, ptree.c repo.c rtti.c, search.c: Likewise. * semantics.c, sig.c, spew.c, tree.c, typeck.c: Likewise. * typeck2.c, xref.c: Likewise. * Makefile.in: Dependencies updated as appropriate. * Make-lang.in: Likewise. system.h cutover from the cp subdir git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@18917 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/repo.c')
-rw-r--r--gcc/cp/repo.c23
1 files changed, 1 insertions, 22 deletions
diff --git a/gcc/cp/repo.c b/gcc/cp/repo.c
index 27a1f4dda31..ed682331515 100644
--- a/gcc/cp/repo.c
+++ b/gcc/cp/repo.c
@@ -26,28 +26,15 @@ Boston, MA 02111-1307, USA. */
explicit code. */
#include "config.h"
-#include <stdio.h>
+#include "system.h"
#include "tree.h"
#include "cp-tree.h"
#include "input.h"
#include "obstack.h"
-#ifdef HAVE_STRING_H
-#include <string.h>
-#endif
-#ifdef HAVE_STDLIB_H
-#include <stdlib.h>
-#else
-extern char * getenv ();
-#endif
-
-#ifdef NEED_DECLARATION_RINDEX
-extern char *rindex ();
-#endif
extern char *getpwd PROTO((void));
static tree repo_get_id PROTO((tree));
-static char *save_string PROTO((char *, int));
static char *extract_string PROTO((char **));
static char *get_base_filename PROTO((char *));
static void open_repo_file PROTO((char *));
@@ -210,14 +197,6 @@ repo_template_instantiated (t, extern_p)
}
}
-static char *
-save_string (s, len)
- char *s;
- int len;
-{
- return obstack_copy0 (&temporary_obstack, s, len);
-}
-
/* Parse a reasonable subset of shell quoting syntax. */
static char *