From b303e1053f974a89139da7388c8a0d8461cbb7b2 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Tue, 9 Sep 1997 23:53:37 +0000 Subject: [PATCH] * symtab.c, dbxread.c, stabsread.c: Fix up ANSI-C isms. Fix some formatting problems. --- gdb/ChangeLog | 4 ++-- gdb/dbxread.c | 12 ++++++------ gdb/stabsread.c | 26 +++++++++++++++++++------- 3 files changed, 27 insertions(+), 15 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index e266390..205bd47 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,7 +1,7 @@ Tue Sep 9 17:41:41 1997 Jeffrey A Law (law@cygnus.com) - * symtab.c (lookup_block_symbol): Add missing PARAMS for - function scoped prototype. + * symtab.c, dbxread.c, stabsread.c: Fix up ANSI-C isms. Fix + some formatting problems. Mon Sep 8 16:45:51 1997 Stu Grossman diff --git a/gdb/dbxread.c b/gdb/dbxread.c index 6463f27..7fa7d7d 100644 --- a/gdb/dbxread.c +++ b/gdb/dbxread.c @@ -773,7 +773,7 @@ struct cont_elem int sym_idx; int sym_end; int symnum; - int (*func) (struct objfile *, struct symbol *, char *); + int (*func) PARAMS ((struct objfile *, struct symbol *, char *)); /* other state dependancies include: (assumption is that these will not change since process_now FIXME!!) stringtab_global @@ -790,7 +790,7 @@ void process_later (sym, p, f) struct symbol * sym; char * p; - int (*f) (struct objfile *, struct symbol *, char *); + int (*f) PARAMS ((struct objfile *, struct symbol *, char *)); { if (cont_count >= cont_limit - 1) { @@ -822,7 +822,7 @@ process_now (objfile) struct symbol *sym; char *stabs; int err; - int (*func) (struct objfile *, struct symbol *, char *); + int (*func) PARAMS ((struct objfile *, struct symbol *, char *)); for (i=0; i ref_count) return 0; @@ -1209,7 +1218,8 @@ ref_search (int refnum) /* Return value for the reference "refnum" */ CORE_ADDR -ref_search_value (int refnum) +ref_search_value (refnum) + int refnum; { if (refnum < 0 || refnum > ref_count) return 0; @@ -1221,7 +1231,8 @@ ref_search_value (int refnum) Return the reference number. */ static int -process_reference (char **string) +process_reference (string) + char **string; { char *p; int refnum = 0; @@ -1244,7 +1255,8 @@ process_reference (char **string) definition for fast lookup when we "process_later", and return the reference number. */ int -symbol_reference_defined (char **string) +symbol_reference_defined (string) + char **string; { char *p = *string; int refnum = 0; -- 2.7.4