X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=binutils%2Fcoffgrok.c;h=0194b3f727992cf4c34380719b1a24f01f8948dc;hb=c2274b2767dba3175e585bd17f9f4a93b56cdc63;hp=3486c5f89d43cd065e90cefdf415603542da7924;hpb=d0352a18a504a4e7b761f6b3264cf11347d8d056;p=deliverable%2Fbinutils-gdb.git diff --git a/binutils/coffgrok.c b/binutils/coffgrok.c index 3486c5f89d..0194b3f727 100644 --- a/binutils/coffgrok.c +++ b/binutils/coffgrok.c @@ -1,5 +1,5 @@ /* coffgrok.c - Copyright (C) 1994, 95, 97, 1998 Free Software Foundation, Inc. + Copyright 1994, 1995, 1997, 1998, 2000, 2001 Free Software Foundation, Inc. This file is part of GNU Binutils. @@ -26,6 +26,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ */ #include +#include #include "bucomm.h" #include "coff/internal.h" @@ -53,7 +54,7 @@ static long symcount; static struct coff_ptr_struct *rawsyms; static int rawcount; static bfd *abfd; -extern char *xcalloc (); + #define PTR_SIZE 4 #define SHORT_SIZE 2 #define INT_SIZE 4 @@ -63,6 +64,19 @@ extern char *xcalloc (); #define INDEXOF(p) ((struct coff_ptr_struct *)(p)-(rawsyms)) +static struct coff_scope *empty_scope PARAMS ((void)); +static struct coff_symbol *empty_symbol PARAMS ((void)); +static void push_scope PARAMS ((int)); +static void pop_scope PARAMS ((void)); +static void do_sections_p1 PARAMS ((struct coff_ofile *)); +static void do_sections_p2 PARAMS ((struct coff_ofile *)); +static struct coff_where *do_where PARAMS ((int)); +static struct coff_line *do_lines PARAMS ((int, char *)); +static struct coff_type *do_type PARAMS ((int)); +static struct coff_visible *do_visible PARAMS ((int)); +static int do_define PARAMS ((int, struct coff_scope *)); +static struct coff_ofile *doit PARAMS ((void)); + static struct coff_scope * empty_scope () {