aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/repo.c
diff options
context:
space:
mode:
authorJeffrey A Law <law@cygnus.com>1998-03-31 13:25:46 +0000
committerJeff Law <law@gcc.gnu.org>1998-03-31 06:25:46 -0700
commit8d052bc70c4265754427c106f325eb4150b048c9 (patch)
tree5c98b8869e1b55dd06ca73126add91d270941f31 /gcc/cp/repo.c
parent97be8f06eb37d07c53c7aded3a1852a39c926f33 (diff)
downloadgcc-8d052bc70c4265754427c106f325eb4150b048c9.zip
gcc-8d052bc70c4265754427c106f325eb4150b048c9.tar.gz
gcc-8d052bc70c4265754427c106f325eb4150b048c9.tar.bz2
call.c: Include system.h.
* 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 From-SVN: r18917
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 27a1f4d..ed68233 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 *