projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fehler109
[libfirm]
/
ir
/
be
/
beschedrss.c
diff --git
a/ir/be/beschedrss.c
b/ir/be/beschedrss.c
index
4657f9a
..
8cc96d6
100644
(file)
--- a/
ir/be/beschedrss.c
+++ b/
ir/be/beschedrss.c
@@
-1,5
+1,5
@@
/*
/*
- * Copyright (C) 1995-200
7
University of Karlsruhe. All right reserved.
+ * Copyright (C) 1995-200
8
University of Karlsruhe. All right reserved.
*
* This file is part of libFirm.
*
*
* This file is part of libFirm.
*
@@
-59,8
+59,8
@@
#include "besched_t.h"
#include "beirg_t.h"
#include "besched_t.h"
#include "beirg_t.h"
-#include
<libcore/lc_opts.h>
-#include
<libcore/lc_opts_enum.h>
+#include
"lc_opts.h"
+#include
"lc_opts_enum.h"
#define ARR_LEN_SAFE(arr) ((arr) != NULL ? ARR_LEN((arr)) : 0)
#define ARR_LEN_SAFE(arr) ((arr) != NULL ? ARR_LEN((arr)) : 0)
@@
-300,7
+300,7
@@
static const ir_node **build_sorted_array_from_list(plist_t *irn_list, struct ob
plist_element_t *el;
int i = 0;
int len = plist_count(irn_list);
plist_element_t *el;
int i = 0;
int len = plist_count(irn_list);
-
ir_node **arr = (ir_node **) NEW_ARR_D(ir_node
*, obst, len);
+
const ir_node **arr = (const ir_node**)NEW_ARR_D(ir_node
*, obst, len);
/* copy the list into the array */
foreach_plist(irn_list, el) {
/* copy the list into the array */
foreach_plist(irn_list, el) {
@@
-308,7
+308,8
@@
static const ir_node **build_sorted_array_from_list(plist_t *irn_list, struct ob
}
/* sort the array by node index */
}
/* sort the array by node index */
- qsort(arr, len, sizeof(arr[0]), cmp_irn_idx);
+ /* HACK cast for MSVC */
+ qsort((void*)arr, len, sizeof(arr[0]), cmp_irn_idx);
return arr;
}
return arr;
}