diff options
author | Jason Merrill <jason@gcc.gnu.org> | 1997-08-20 20:50:39 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 1997-08-20 20:50:39 -0400 |
commit | 49c249e1c8aecde11d2166d5bfc6789cb3882172 (patch) | |
tree | c9fa739ae50f1adb0f63b8a81e6fb2113c2dacc5 /gcc/cp/xref.c | |
parent | 177873a5216e3c6c526885d9fcb836c17e6e0cd4 (diff) | |
download | gcc-49c249e1c8aecde11d2166d5bfc6789cb3882172.zip gcc-49c249e1c8aecde11d2166d5bfc6789cb3882172.tar.gz gcc-49c249e1c8aecde11d2166d5bfc6789cb3882172.tar.bz2 |
[multiple changes]
Wed Aug 20 17:25:08 1997 Jason Merrill <jason@yorick.cygnus.com>
* call.c (is_subseq): Don't try to be clever.
Wed Aug 20 03:13:36 1997 H.J. Lu (hjl@gnu.ai.mit.edu)
* parse.y, pt.c: Include "except.h".
* call.c, class.c, class.h, cp-tree.h, cvt.c, decl.c, decl2.c,
error.c, except.c, expr.c, friend.c, g++spec.c, init.c, input.c,
lex.c, lex.h, method.c, parse.y, pt.c, repo.c, rtti.c, search.c,
sig.c, spew.c, tree.c, typeck.c, typeck2.c, xref.c: Finish
prototyping.
Wed Aug 20 01:34:40 1997 Jason Merrill <jason@yorick.cygnus.com>
* decl2.c (mark_vtable_entries): Instead of replacing pure
virtuals with a reference to __pure_virtual, copy the decl and
change the RTL.
From-SVN: r14868
Diffstat (limited to 'gcc/cp/xref.c')
-rw-r--r-- | gcc/cp/xref.c | 46 |
1 files changed, 21 insertions, 25 deletions
diff --git a/gcc/cp/xref.c b/gcc/cp/xref.c index 260ddd2..fc2d107 100644 --- a/gcc/cp/xref.c +++ b/gcc/cp/xref.c @@ -28,10 +28,22 @@ Boston, MA 02111-1307, USA. */ #include <ctype.h> -extern char *getpwd (); +#ifdef HAVE_STDLIB_H +#include <stdlib.h> +#endif + +#ifdef HAVE_UNISTD_H +#include <unistd.h> +#endif + +extern char *getpwd PROTO((void)); +#ifdef HAVE_STRING_H +#include <string.h> +#else extern char *index (); extern char *rindex (); +#endif /* The character(s) used to join a directory specification (obtained with getwd or equivalent) with a non-absolute file name. */ @@ -125,30 +137,14 @@ static tree last_fndecl = NULL; /* Forward definitions */ /* */ /************************************************************************/ - -extern void GNU_xref_begin(); -extern void GNU_xref_end(); -extern void GNU_xref_file(); -extern void GNU_xref_start_scope(); -extern void GNU_xref_end_scope(); -extern void GNU_xref_ref(); -extern void GNU_xref_decl(); -extern void GNU_xref_call(); -extern void GNU_xref_function(); -extern void GNU_xref_assign(); -extern void GNU_xref_hier(); -extern void GNU_xref_member(); - -static void gen_assign(); -static XREF_FILE find_file(); -static char * filename(); -static char * fctname(); -static char * declname(); -static void simplify_type(); -static char * fixname(); -static void open_xref_file(); - -extern char * type_as_string(); +static void gen_assign PROTO((XREF_FILE, tree)); +static XREF_FILE find_file PROTO((char *)); +static char * filename PROTO((XREF_FILE)); +static char * fctname PROTO((tree)); +static char * declname PROTO((tree)); +static void simplify_type PROTO((char *)); +static char * fixname PROTO((char *, char *)); +static void open_xref_file PROTO((char *)); /* Start cross referencing. FILE is the name of the file we xref. */ |