use xmalloc instead of malloc
[libfirm] / ir / ir / ircons_t.h
index bfd6021..9995365 100644 (file)
 /**
  * Initializes the graph construction.
  *
- * @param func  @see default_initialize_local_variable_func_t
+ * @param func  callback that is called if a uninitialized
+ *              variable is detected
+ *
+ * @see uninitialized_local_variable_func_t
  */
-void init_cons (default_initialize_local_variable_func_t *func);
+void init_cons(uninitialized_local_variable_func_t *func);
 
 /* inline functions */
 
 static INLINE ir_node *
-__new_d_Bad(void) {
-  return current_ir_graph->bad;
+_new_d_Bad(void) {
+  return current_ir_graph->anchors[anchor_bad];
 }
 
 static INLINE ir_node *
-__new_d_NoMem(void) {
-  return current_ir_graph->no_mem;
+_new_d_NoMem(void) {
+  return current_ir_graph->anchors[anchor_no_mem];
 }
 
 
-#define new_d_Bad()               __new_d_Bad()
-#define new_d_NoMem()             __new_d_NoMem()
+#define new_d_Bad()               _new_d_Bad()
+#define new_d_NoMem()             _new_d_NoMem()
 
 #endif /* _IRCONS_T_H_ */