static int have_line_numbers;
\f
-static int
-compare_line_numbers PARAMS ((const void *, const void *));
+static int compare_line_numbers (const void *ln1p, const void *ln2p);
\f
/* Initial sizes of data structures. These are realloc'd larger if
/* Add a symbol to one of the lists of symbols. */
void
-add_symbol_to_list (symbol, listhead)
- struct symbol *symbol;
- struct pending **listhead;
+add_symbol_to_list (struct symbol *symbol, struct pending **listhead)
{
register struct pending *link;
'\0'-terminated; LENGTH is the length of the name. */
struct symbol *
-find_symbol_in_list (list, name, length)
- struct pending *list;
- char *name;
- int length;
+find_symbol_in_list (struct pending *list, char *name, int length)
{
int j;
char *pp;
/* ARGSUSED */
void
-really_free_pendings (foo)
- int foo;
+really_free_pendings (int foo)
{
struct pending *next, *next1;
for (next = free_pendings; next; next = next1)
{
next1 = next->next;
- free ((PTR) next);
+ free ((void *) next);
}
free_pendings = NULL;
for (next = file_symbols; next != NULL; next = next1)
{
next1 = next->next;
- free ((PTR) next);
+ free ((void *) next);
}
file_symbols = NULL;
for (next = global_symbols; next != NULL; next = next1)
{
next1 = next->next;
- free ((PTR) next);
+ free ((void *) next);
}
global_symbols = NULL;
}
/* This function is called to discard any pending blocks. */
void
-free_pending_blocks ()
+free_pending_blocks (void)
{
#if 0 /* Now we make the links in the
symbol_obstack, so don't free
for (bnext = pending_blocks; bnext; bnext = bnext1)
{
bnext1 = bnext->next;
- free ((PTR) bnext);
+ free ((void *) bnext);
}
#endif
pending_blocks = NULL;
file). Put the block on the list of pending blocks. */
void
-finish_block (symbol, listhead, old_blocks, start, end, objfile)
- struct symbol *symbol;
- struct pending **listhead;
- struct pending_block *old_blocks;
- CORE_ADDR start, end;
- struct objfile *objfile;
+finish_block (struct symbol *symbol, struct pending **listhead,
+ struct pending_block *old_blocks,
+ CORE_ADDR start, CORE_ADDR end,
+ struct objfile *objfile)
{
register struct pending *next, *next1;
register struct block *block;
time. This wastes a little space. FIXME: Is it worth it? */
void
-record_pending_block (objfile, block, opblock)
- struct objfile *objfile;
- struct block *block;
- struct pending_block *opblock;
+record_pending_block (struct objfile *objfile, struct block *block,
+ struct pending_block *opblock)
{
register struct pending_block *pblock;
that is done, it can be made static again. */
struct blockvector *
-make_blockvector (objfile)
- struct objfile *objfile;
+make_blockvector (struct objfile *objfile)
{
register struct pending_block *next;
register struct blockvector *blockvector;
the directory in which it resides (or NULL if not known). */
void
-start_subfile (name, dirname)
- char *name;
- char *dirname;
+start_subfile (char *name, char *dirname)
{
register struct subfile *subfile;
directory name actually is (by checking for a trailing '/'). */
void
-patch_subfile_names (subfile, name)
- struct subfile *subfile;
- char *name;
+patch_subfile_names (struct subfile *subfile, char *name)
{
if (subfile != NULL && subfile->dirname == NULL && subfile->name != NULL
&& subfile->name[strlen (subfile->name) - 1] == '/')
order. */
void
-push_subfile ()
+push_subfile (void)
{
register struct subfile_stack *tem
= (struct subfile_stack *) xmalloc (sizeof (struct subfile_stack));
}
char *
-pop_subfile ()
+pop_subfile (void)
{
register char *name;
register struct subfile_stack *link = subfile_stack;
}
name = link->name;
subfile_stack = link->next;
- free ((PTR) link);
+ free ((void *) link);
return (name);
}
\f
line vector for SUBFILE. */
void
-record_line (subfile, line, pc)
- register struct subfile *subfile;
- int line;
- CORE_ADDR pc;
+record_line (register struct subfile *subfile, int line, CORE_ADDR pc)
{
struct linetable_entry *e;
/* Ignore the dummy line number in libg.o */
/* Needed in order to sort line tables from IBM xcoff files. Sigh! */
static int
-compare_line_numbers (ln1p, ln2p)
- const void *ln1p;
- const void *ln2p;
+compare_line_numbers (const void *ln1p, const void *ln2p)
{
struct linetable_entry *ln1 = (struct linetable_entry *) ln1p;
struct linetable_entry *ln2 = (struct linetable_entry *) ln2p;
one original source file. */
void
-start_symtab (name, dirname, start_addr)
- char *name;
- char *dirname;
- CORE_ADDR start_addr;
+start_symtab (char *name, char *dirname, CORE_ADDR start_addr)
{
last_source_file = name;
never know about this empty file (FIXME). */
struct symtab *
-end_symtab (end_addr, objfile, section)
- CORE_ADDR end_addr;
- struct objfile *objfile;
- int section;
+end_symtab (CORE_ADDR end_addr, struct objfile *objfile, int section)
{
register struct symtab *symtab = NULL;
register struct blockvector *blockvector;
}
if (subfile->name != NULL)
{
- free ((PTR) subfile->name);
+ free ((void *) subfile->name);
}
if (subfile->dirname != NULL)
{
- free ((PTR) subfile->dirname);
+ free ((void *) subfile->dirname);
}
if (subfile->line_vector != NULL)
{
- free ((PTR) subfile->line_vector);
+ free ((void *) subfile->line_vector);
}
if (subfile->debugformat != NULL)
{
- free ((PTR) subfile->debugformat);
+ free ((void *) subfile->debugformat);
}
nextsub = subfile->next;
- free ((PTR) subfile);
+ free ((void *) subfile);
}
/* Set this for the main source file. */
context. */
struct context_stack *
-push_context (desc, valu)
- int desc;
- CORE_ADDR valu;
+push_context (int desc, CORE_ADDR valu)
{
register struct context_stack *new;
/* Compute a small integer hash code for the given name. */
int
-hashname (name)
- char *name;
+hashname (char *name)
{
register char *p = name;
register int total = p[0];
\f
void
-record_debugformat (format)
- char *format;
+record_debugformat (char *format)
{
current_subfile->debugformat = savestring (format, strlen (format));
}
Void return. */
void
-merge_symbol_lists (srclist, targetlist)
- struct pending **srclist;
- struct pending **targetlist;
+merge_symbol_lists (struct pending **srclist, struct pending **targetlist)
{
register int i;
/* Function to invoke get the next symbol. Return the symbol name. */
-EXTERN char *(*next_symbol_text_func) PARAMS ((struct objfile *));
+EXTERN char *(*next_symbol_text_func) (struct objfile *);
/* Vector of types defined so far, indexed by their type numbers.
Used for both stabs and coff. (In newer sun systems, dbx uses a
#define INITIAL_TYPE_VECTOR_LENGTH 160
-extern void
-add_symbol_to_list PARAMS ((struct symbol *, struct pending **));
+extern void add_symbol_to_list (struct symbol *symbol,
+ struct pending **listhead);
-extern struct symbol *
- find_symbol_in_list PARAMS ((struct pending *, char *, int));
+extern struct symbol *find_symbol_in_list (struct pending *list,
+ char *name, int length);
-extern void
-finish_block PARAMS ((struct symbol *, struct pending **,
- struct pending_block *, CORE_ADDR, CORE_ADDR,
- struct objfile *));
+extern void finish_block (struct symbol *symbol,
+ struct pending **listhead,
+ struct pending_block *old_blocks,
+ CORE_ADDR start, CORE_ADDR end,
+ struct objfile *objfile);
-extern void
-really_free_pendings PARAMS ((int foo));
+extern void really_free_pendings (int foo);
-extern void
-start_subfile PARAMS ((char *, char *));
+extern void start_subfile (char *name, char *dirname);
-extern void
-patch_subfile_names PARAMS ((struct subfile * subfile, char *name));
+extern void patch_subfile_names (struct subfile *subfile, char *name);
-extern void
-push_subfile PARAMS ((void));
+extern void push_subfile (void);
-extern char *
- pop_subfile PARAMS ((void));
+extern char *pop_subfile (void);
-extern struct symtab *
- end_symtab PARAMS ((CORE_ADDR, struct objfile *, int));
+extern struct symtab *end_symtab (CORE_ADDR end_addr,
+ struct objfile *objfile, int section);
-extern void
-scan_file_globals PARAMS ((struct objfile *));
+/* Defined in stabsread.c. */
-extern void
-buildsym_new_init PARAMS ((void));
+extern void scan_file_globals (struct objfile *objfile);
-extern void
-buildsym_init PARAMS ((void));
+extern void buildsym_new_init (void);
-extern struct context_stack *
- push_context PARAMS ((int, CORE_ADDR));
+extern void buildsym_init (void);
-extern void
-record_line PARAMS ((struct subfile *, int, CORE_ADDR));
+extern struct context_stack *push_context (int desc, CORE_ADDR valu);
-extern void
-start_symtab PARAMS ((char *, char *, CORE_ADDR));
+extern void record_line (struct subfile *subfile, int line, CORE_ADDR pc);
-extern int
-hashname PARAMS ((char *));
+extern void start_symtab (char *name, char *dirname, CORE_ADDR start_addr);
-extern void
-free_pending_blocks PARAMS ((void));
+extern int hashname (char *name);
+
+extern void free_pending_blocks (void);
/* FIXME: Note that this is used only in buildsym.c and dstread.c,
which should be fixed to not need direct access to
make_blockvector. */
-extern struct blockvector *
- make_blockvector PARAMS ((struct objfile *));
+extern struct blockvector *make_blockvector (struct objfile *objfile);
/* FIXME: Note that this is used only in buildsym.c and dstread.c,
which should be fixed to not need direct access to
record_pending_block. */
-extern void
-record_pending_block PARAMS ((struct objfile *, struct block *,
- struct pending_block *));
+extern void record_pending_block (struct objfile *objfile,
+ struct block *block,
+ struct pending_block *opblock);
-extern void
-record_debugformat PARAMS ((char *));
+extern void record_debugformat (char *format);
-extern void
-merge_symbol_lists PARAMS ((struct pending **, struct pending **));
+extern void merge_symbol_lists (struct pending **srclist,
+ struct pending **targetlist);
#undef EXTERN