projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
included lowerering files
[libfirm]
/
ir
/
ana2
/
qset.c
diff --git
a/ir/ana2/qset.c
b/ir/ana2/qset.c
index
23ef7c3
..
c21e355
100644
(file)
--- a/
ir/ana2/qset.c
+++ b/
ir/ana2/qset.c
@@
-12,14
+12,16
@@
* Copyright: (c) 1999-2004 Universität Karlsruhe
* Licence: This file is protected by GPL - GNU GENERAL PUBLIC LICENSE.
*/
* Copyright: (c) 1999-2004 Universität Karlsruhe
* Licence: This file is protected by GPL - GNU GENERAL PUBLIC LICENSE.
*/
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
# include <stdio.h>
# include <stdlib.h>
# include <assert.h>
# include <string.h>
# include <stdio.h>
# include <stdlib.h>
# include <assert.h>
# include <string.h>
-# include <sys/time.h>
-# include <obstack.h>
+# include "obst.h"
# include "timing.h"
# include "qset.h"
# include "timing.h"
# include "qset.h"
@@
-41,7
+43,7
@@
static int q_test (sortable_t*, const sortable_t, const int);
static void q_sort (sortable_t*, const int);
/* Compare funktion, meant to be qsort(3)-compatible */
static void q_sort (sortable_t*, const int);
/* Compare funktion, meant to be qsort(3)-compatible */
-static
__inline__
int sortable_compare (const void *pa, const void *pb)
+static
INLINE
int sortable_compare (const void *pa, const void *pb)
{
const int a = * (unsigned int*) pa;
const int b = * (unsigned int*) pb;
{
const int a = * (unsigned int*) pa;
const int b = * (unsigned int*) pb;
@@
-512,7
+514,7
@@
void qset_delete (qset_t *qset)
}
/*
}
/*
- Test wether the given qset contains the given value.
+ Test w
h
ether the given qset contains the given value.
*/
int qset_contains (qset_t *qset, sortable_t val)
{
*/
int qset_contains (qset_t *qset, sortable_t val)
{
@@
-676,9
+678,11
@@
int qset_is_empty (qset_t *qset)
*/
sortable_t *qset_start (qset_t *qset)
{
*/
sortable_t *qset_start (qset_t *qset)
{
+ sortable_t *start;
+
qset->cursor = 0;
qset->cursor = 0;
- s
ortable_t *s
tart = qset_next (qset);
+ start = qset_next (qset);
return (start); /* works for empty sets, too */
}
return (start); /* works for empty sets, too */
}
@@
-726,6
+730,14
@@
int qset_test_main (int argc, char **argv)
/*
$Log$
/*
$Log$
+ Revision 1.11 2005/06/22 09:34:11 beck
+ typo fixed
+
+ Revision 1.10 2004/12/21 15:37:31 beck
+ added config.h include
+ removed unused sys/times.h
+ removed C99 constructs
+
Revision 1.9 2004/12/20 17:34:35 liekweg
fix recursion handling
Revision 1.9 2004/12/20 17:34:35 liekweg
fix recursion handling