summaryrefslogtreecommitdiffhomepage
path: root/ir/stat
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2014-03-29 10:13:39 +0100
committerChristoph Mallon <christoph.mallon@gmx.de>2014-04-10 10:33:55 +0200
commit1966adc74b7dc4a47f556d36628019beeb3f6d0d (patch)
treeb742c3a080dc2fd527d77849651ca2d8a547fb1a /ir/stat
parent5512229a51005fec43bac48ff09c64251b392754 (diff)
all: Add and use QSORT() and QSORT_ARR().
Diffstat (limited to 'ir/stat')
-rw-r--r--ir/stat/pattern.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ir/stat/pattern.c b/ir/stat/pattern.c
index a6bec3c..f153cae 100644
--- a/ir/stat/pattern.c
+++ b/ir/stat/pattern.c
@@ -12,6 +12,7 @@
#include <stdlib.h>
#include <limits.h>
+#include "../../adt/util.h"
#include "pattern.h"
#include "ident.h"
#include "irnode_t.h"
@@ -828,7 +829,7 @@ static void pattern_output(const char *fname)
count = i;
/* sort it */
- qsort(pattern_arr, count, sizeof(*pattern_arr), pattern_count_cmp);
+ QSORT(pattern_arr, count, pattern_count_cmp);
for (i = 0; i < count; ++i) {
pattern_entry_t *const entry = pattern_arr[i];