diff options
author | DJ Delorie <dj@redhat.com> | 2005-03-28 05:07:08 +0000 |
---|---|---|
committer | DJ Delorie <dj@redhat.com> | 2005-03-28 05:07:08 +0000 |
commit | 1e45deed6a87c05c9e669e3cdfdda47cbfa9531d (patch) | |
tree | e2c1bba3c03c5917c8e70792a921dfc6b6b5eef9 /libiberty/partition.c | |
parent | 49b1fae4309ab5b9833f0af388483c2b6b4b3d50 (diff) | |
download | gdb-1e45deed6a87c05c9e669e3cdfdda47cbfa9531d.zip gdb-1e45deed6a87c05c9e669e3cdfdda47cbfa9531d.tar.gz gdb-1e45deed6a87c05c9e669e3cdfdda47cbfa9531d.tar.bz2 |
merge from gcc
Diffstat (limited to 'libiberty/partition.c')
-rw-r--r-- | libiberty/partition.c | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/libiberty/partition.c b/libiberty/partition.c index 0715472..b67f058 100644 --- a/libiberty/partition.c +++ b/libiberty/partition.c @@ -40,8 +40,7 @@ static int elem_compare PARAMS ((const void *, const void *)); element is in a class by itself. */ partition -partition_new (num_elements) - int num_elements; +partition_new (int num_elements) { int e; @@ -62,8 +61,7 @@ partition_new (num_elements) /* Freeds a partition. */ void -partition_delete (part) - partition part; +partition_delete (partition part) { free (part); } @@ -74,10 +72,7 @@ partition_delete (part) resulting union class. */ int -partition_union (part, elem1, elem2) - partition part; - int elem1; - int elem2; +partition_union (partition part, int elem1, int elem2) { struct partition_elem *elements = part->elements; struct partition_elem *e1; @@ -126,9 +121,7 @@ partition_union (part, elem1, elem2) pointer to each. Used to qsort such an array. */ static int -elem_compare (elem1, elem2) - const void *elem1; - const void *elem2; +elem_compare (const void *elem1, const void *elem2) { int e1 = * (const int *) elem1; int e2 = * (const int *) elem2; @@ -144,9 +137,7 @@ elem_compare (elem1, elem2) class are sorted. */ void -partition_print (part, fp) - partition part; - FILE *fp; +partition_print (partition part, FILE *fp) { char *done; int num_elements = part->num_elements; |