projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Ignore generated files.
[libfirm]
/
ir
/
ir
/
irnodeset.h
diff --git
a/ir/ir/irnodeset.h
b/ir/ir/irnodeset.h
index
712f7a8
..
330caa6
100644
(file)
--- a/
ir/ir/irnodeset.h
+++ b/
ir/ir/irnodeset.h
@@
-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.
*
@@
-30,8
+30,6
@@
#ifndef _FIRM_IRNODESET_H_
#define _FIRM_IRNODESET_H_
#ifndef _FIRM_IRNODESET_H_
#define _FIRM_IRNODESET_H_
-#include "firm_config.h"
-
#include "firm_types.h"
#include "xmalloc.h"
#include "firm_types.h"
#include "xmalloc.h"
@@
-89,8
+87,8
@@
void ir_nodeset_destroy(ir_nodeset_t *nodeset);
* @param expected_elements Number of elements expected in the nodeset (roughly)
* @return The initialized nodeset
*/
* @param expected_elements Number of elements expected in the nodeset (roughly)
* @return The initialized nodeset
*/
-static
INLINE
ir_nodeset_t *ir_nodeset_new(size_t expected_elements) {
- ir_nodeset_t *res =
xmalloc(sizeof(*res)
);
+static
inline
ir_nodeset_t *ir_nodeset_new(size_t expected_elements) {
+ ir_nodeset_t *res =
XMALLOC(ir_nodeset_t
);
ir_nodeset_init_size(res, expected_elements);
return res;
}
ir_nodeset_init_size(res, expected_elements);
return res;
}
@@
-98,7
+96,7
@@
static INLINE ir_nodeset_t *ir_nodeset_new(size_t expected_elements) {
/**
* Destroys a nodeset and frees the memory of the nodeset itself.
*/
/**
* Destroys a nodeset and frees the memory of the nodeset itself.
*/
-static
INLINE
void ir_nodeset_del(ir_nodeset_t *nodeset) {
+static
inline
void ir_nodeset_del(ir_nodeset_t *nodeset) {
ir_nodeset_destroy(nodeset);
xfree(nodeset);
}
ir_nodeset_destroy(nodeset);
xfree(nodeset);
}