projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Implement binary emitter for fpush.
[libfirm]
/
ir
/
ir
/
valueset.h
diff --git
a/ir/ir/valueset.h
b/ir/ir/valueset.h
index
64dfe4f
..
027e708
100644
(file)
--- a/
ir/ir/valueset.h
+++ b/
ir/ir/valueset.h
@@
-26,8
+26,6
@@
#ifndef _FIRM_VALUESET_H_
#define _FIRM_VALUESET_H_
#ifndef _FIRM_VALUESET_H_
#define _FIRM_VALUESET_H_
-#include "firm_config.h"
-
#include "firm_types.h"
#include "xmalloc.h"
#include "list.h"
#include "firm_types.h"
#include "xmalloc.h"
#include "list.h"
@@
-88,8
+86,8
@@
void ir_valueset_destroy(ir_valueset_t *valueset);
* @param expected_elements Number of elements expected in the value set (roughly)
* @return The initialized value set
*/
* @param expected_elements Number of elements expected in the value set (roughly)
* @return The initialized value set
*/
-static
INLINE
ir_valueset_t *ir_valueset_new(size_t expected_elements) {
- ir_valueset_t *res =
xmalloc(sizeof(*res)
);
+static
inline
ir_valueset_t *ir_valueset_new(size_t expected_elements) {
+ ir_valueset_t *res =
XMALLOC(ir_valueset_t
);
ir_valueset_init_size(res, expected_elements);
return res;
}
ir_valueset_init_size(res, expected_elements);
return res;
}
@@
-97,7
+95,7
@@
static INLINE ir_valueset_t *ir_valueset_new(size_t expected_elements) {
/**
* Destroys a value set and frees the memory of the set itself.
*/
/**
* Destroys a value set and frees the memory of the set itself.
*/
-static
INLINE
void ir_valueset_del(ir_valueset_t *valueset) {
+static
inline
void ir_valueset_del(ir_valueset_t *valueset) {
ir_valueset_destroy(valueset);
xfree(valueset);
}
ir_valueset_destroy(valueset);
xfree(valueset);
}