]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* ada-lang.c (ada_array_bound, ada_type_match,
authorAidan Skinner <aidan@velvet.net>
Sun, 8 Sep 2002 17:44:22 +0000 (17:44 +0000)
committerAidan Skinner <aidan@velvet.net>
Sun, 8 Sep 2002 17:44:22 +0000 (17:44 +0000)
_initialize_ada_language): Fix K&R definitions.
* ada-tasks.c (get_current_task): Fix K&R definitions.
* ada-valprint.c (adjust_type_signedness): Fix K&R definitions.

gdb/ChangeLog
gdb/ada-lang.c
gdb/ada-tasks.c
gdb/ada-valprint.c

index 8b41219ad75a8a85ad177ba0e4be560f7733c772..24e04b8c9df912fe067702aab5f04c3dca1e3970 100644 (file)
@@ -1,3 +1,10 @@
+2002-09-08  Aidan Skinner <aidan@velvet.net>
+
+       * ada-lang.c (ada_array_bound, ada_type_match,
+       _initialize_ada_language): Fix K&R definitions.
+       * ada-tasks.c (get_current_task): Fix K&R definitions.
+       * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
+                       
 2002-09-07  Christopher Faylor  <cgf@redhat.com>
 
        * MAINTAINERS: Remove CE from list of maintainership responsibilities.
index c58d46338ea48c56ffc99775232a837901c2f303..2838df7e68c667f0f2235e00df186a1d6a65f345 100644 (file)
@@ -1852,10 +1852,7 @@ ada_array_bound_from_type (struct type * arr_type, int n, int which,
    supplied by run-time quantities other than discriminants. */
 
 struct value *
-ada_array_bound (arr, n, which)
-     struct value *arr;
-     int n;
-     int which;
+ada_array_bound (struct value *arr, int n, int which)
 {
   struct type *arr_type = VALUE_TYPE (arr);
 
@@ -2334,10 +2331,7 @@ ada_resolve_subexp (struct expression **expp, int *pos, int deprocedure_p,
    liberal.  FIXME: TOO liberal, in fact. */
 
 static int
-ada_type_match (ftype, atype, may_deref)
-     struct type *ftype;
-     struct type *atype;
-     int may_deref;
+ada_type_match (struct type *ftype, struct type *atype, int may_deref)
 {
   CHECK_TYPEDEF (ftype);
   CHECK_TYPEDEF (atype);
@@ -8104,7 +8098,7 @@ const struct language_defn ada_language_defn = {
 };
 
 void
-_initialize_ada_language ()
+_initialize_ada_language (void)
 {
   builtin_type_ada_int =
     init_type (TYPE_CODE_INT, TARGET_INT_BIT / TARGET_CHAR_BIT,
index eccd5a1c2146ab3e3a51a34469a628cda700f91d..2e6bff3b18e7809766c2a31c2fff2493a442c61f 100644 (file)
@@ -270,7 +270,7 @@ get_self_id (void)
 }
 
 int
-get_current_task ()
+get_current_task (void)
 {
   int result;
 
index fc2db70303592a79a53e59b3d9bf67ab672a0564..0a0c99add1eb59f097e86dcfcd14a4a508425f32 100644 (file)
@@ -75,8 +75,7 @@ static int ada_val_print_1 (struct type *, char *, int, CORE_ADDR,
 
 /* Make TYPE unsigned if its range of values includes no negatives. */
 static void
-adjust_type_signedness (type)
-     struct type *type;
+adjust_type_signedness (struct type *type)
 {
   if (type != NULL && TYPE_CODE (type) == TYPE_CODE_RANGE
       && TYPE_LOW_BOUND (type) >= 0)