This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] ada-lang.c, ada-valprint.c: fix tipos and grep ^func


This patch fixes a couple of typos and some grep ^func regressions
caused by prototypes in ada-lang.c and ada-valprint.c

Commmited as obvious.

Changelog:

2002-08-11  Aidan Skinner <aidan@velvet.net>

	* ada-lang.c (ada_lookup_partial_symbol)
	(to_fixed_variant_branch_type) (find_line_in_linetable): Fix
	prototype names so that grep ^func works properly.

	* ada-lang.c (ada_array_element_type)
	(ada_lookup_partial_symbol): Fix typos in parameter list.

	* ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
	Fix prototype names so that grep ^func works properly.

Patch:

Index: ada-lang.c
===================================================================
RCS file: /cvs/src/src/gdb/ada-lang.c,v
retrieving revision 1.5
diff -u -r1.5 ada-lang.c
--- ada-lang.c	25 Jul 2002 01:14:11 -0000	1.5
+++ ada-lang.c	11 Aug 2002 16:27:19 -0000
@@ -95,9 +95,8 @@
 
 static void add_defn_to_vec (struct symbol*, struct block*);
 
-static struct partial_symbol* 
-ada_lookup_partial_symbol (struct partial_symtab*, const char*, 
-			   int, namespace_enum, int);
+static struct partial_symbol* ada_lookup_partial_symbol (struct partial_symtab*, const char*, 
+							 int, namespace_enum, int);
 
 static struct symtab* symtab_for_sym (struct symbol*);
 
@@ -128,8 +127,7 @@
 
 static int  is_dynamic_field (struct type *, int);
 
-static struct type*
-to_fixed_variant_branch_type (struct type*, char*, CORE_ADDR, struct value*);
+static struct type* to_fixed_variant_branch_type (struct type*, char*, CORE_ADDR, struct value*);
 
 static struct type* to_fixed_range_type (char*, struct value*, struct objfile*);
 
@@ -159,8 +157,7 @@
 
 static struct symtabs_and_lines find_sal_from_funcs_and_line (const char*, int, struct symbol**, int);
 
-static int
-find_line_in_linetable (struct linetable*, int, struct symbol**, int, int*);
+static int find_line_in_linetable (struct linetable*, int, struct symbol**, int, int*);
 
 static int find_next_line_in_linetable (struct linetable*, int, int, int);
 
@@ -1695,7 +1692,7 @@
    NINDICES is -1. Otherwise, returns NULL. */
 
 struct type*
-ada_array_element_type (struct btype* type, int nindices)
+ada_array_element_type (struct type* type, int nindices)
 {
   type = desc_base_type (type);
 
@@ -3271,7 +3268,7 @@
    wild-card match if WILD. */
 
 static struct partial_symbol *
-ada_lookup_partial_symbol (struct partial_symtab *pst, const char *name, int global, namespace_enumnamespace, int wild)
+ada_lookup_partial_symbol (struct partial_symtab *pst, const char *name, int global, namespace_enum namespace, int wild)
 {
   struct partial_symbol **start;
   int name_len = strlen (name);
Index: ada-valprint.c
===================================================================
RCS file: /cvs/src/src/gdb/ada-valprint.c,v
retrieving revision 1.2
diff -u -r1.2 ada-valprint.c
--- ada-valprint.c	25 Jul 2002 01:14:26 -0000	1.2
+++ ada-valprint.c	11 Aug 2002 16:27:22 -0000
@@ -58,18 +58,16 @@
 			       struct ui_file*, int, int, enum val_prettyprint,
 			       int, struct type*, char*);
 
-static void
-val_print_packed_array_elements (struct type*, char *valaddr, int,
-				 struct ui_file*, int, int, 
-				 enum val_prettyprint);
+static void val_print_packed_array_elements (struct type*, char *valaddr, int,
+					     struct ui_file*, int, int, 
+					     enum val_prettyprint);
 
 static void adjust_type_signedness (struct type*);
 
 static int ada_val_print_stub (PTR args0);
 
-static int
-ada_val_print_1 (struct type*, char*, int, CORE_ADDR, struct ui_file*,
-		 int, int, int, enum val_prettyprint);
+static int ada_val_print_1 (struct type*, char*, int, CORE_ADDR, struct ui_file*,
+			    int, int, int, enum val_prettyprint);
 
 
 /* Make TYPE unsigned if its range of values includes no negatives. */


-- 
aidan@velvet.net  http://www.velvet.net/~aidan/  aim:aidans42
finger for pgp key fingerprint |- - - - - - - - - - - - - - - - -
01AA 1594 2DB0 09E3 B850       | Marklar Domination, one marklar 
C2D0 9A2C 4CC9 3EC4 75E1       | smoking marklar at at time 

Attachment: msg00254/pgp00000.pgp
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]