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] |
Found a few more k&r definitions to cleanup. Commited as obvious. ChangeLog: * 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. Patch: Index: ada-lang.c =================================================================== RCS file: /cvs/src/src/gdb/ada-lang.c,v retrieving revision 1.8 diff -u -r1.8 ada-lang.c --- ada-lang.c 18 Aug 2002 18:23:41 -0000 1.8 +++ ada-lang.c 7 Sep 2002 18:53:11 -0000 @@ -1852,10 +1852,7 @@ 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 @@ 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 @@ }; void -_initialize_ada_language () +_initialize_ada_language (void) { builtin_type_ada_int = init_type (TYPE_CODE_INT, TARGET_INT_BIT / TARGET_CHAR_BIT, Index: ada-tasks.c =================================================================== RCS file: /cvs/src/src/gdb/ada-tasks.c,v retrieving revision 1.4 diff -u -r1.4 ada-tasks.c --- ada-tasks.c 18 Aug 2002 18:07:22 -0000 1.4 +++ ada-tasks.c 7 Sep 2002 18:53:13 -0000 @@ -270,7 +270,7 @@ } int -get_current_task () +get_current_task (void) { int result; Index: ada-valprint.c =================================================================== RCS file: /cvs/src/src/gdb/ada-valprint.c,v retrieving revision 1.4 diff -u -r1.4 ada-valprint.c --- ada-valprint.c 18 Aug 2002 18:07:33 -0000 1.4 +++ ada-valprint.c 7 Sep 2002 18:53:14 -0000 @@ -75,8 +75,7 @@ /* 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) - Aidan -- aidan@velvet.net http://www.velvet.net/~aidan/ aim:aidans42 http://www.livejournal.com/users/aidan_skinner/ finger for pgp key: 01AA 1594 2DB0 09E3 B850 C2D0 9A2C 4CC9 3EC4 75E1
Attachment:
msg00113/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] |