added doxygen comments
[libfirm] / ir / ana2 / typalise.c
index 00109be..42e3e52 100644 (file)
@@ -33,6 +33,7 @@
 # include "irnode_t.h"
 # include "irgwalk.h"
 # include "xmalloc.h"
+# include "gnu_ext.h"
 
 
 /*
@@ -52,7 +53,7 @@ static typalise_t *typalise_proj (ir_node*);
 */
 static typalise_t *ta_exact (type *tp)
 {
-  typalise_t *ta = xmalloc (sizeof(*ta));
+  typalise_t *ta = xmalloc (sizeof (typalise_t));
   ta->kind = type_exact;
   ta->res.type = tp;
   ta->id = ta_id ++;
@@ -64,7 +65,7 @@ static typalise_t *ta_exact (type *tp)
 
 static typalise_t *ta_types (lset_t *set)
 {
-  typalise_t *ta = xmalloc (sizeof(*ta));
+  typalise_t *ta = xmalloc (sizeof (typalise_t));
   ta->kind = type_types;
   ta->res.types = set;
   ta->id = ta_id ++;
@@ -74,7 +75,7 @@ static typalise_t *ta_types (lset_t *set)
 
 static typalise_t *ta_type (type *tp)
 {
-  typalise_t *ta = xmalloc (sizeof(*ta));
+  typalise_t *ta = xmalloc (sizeof (typalise_t));
   ta->kind = type_type;
   ta->res.type = tp;
   ta->id = ta_id ++;
@@ -680,7 +681,8 @@ typalise_t *typalise (ir_node *node)
 
       res = ta_type (tp);       /* can't use ta_exact */
     } else {
-      fprintf (stdout, "can't handle SymConst %s?\n",
+      fprintf (stdout, "%s (%s:%i): can't handle SymConst %s?\n",
+               __FUNCTION__, __FILE__, __LINE__,
                get_op_name (get_irn_op (node)));
       res = NULL;
     }
@@ -706,6 +708,12 @@ typalise_t *typalise (ir_node *node)
 \f
 /*
   $Log$
+  Revision 1.8  2005/01/14 14:13:24  liekweg
+  fix gnu extension
+
+  Revision 1.7  2005/01/10 17:26:34  liekweg
+  fixup printfs, don't put environments on the stack
+
   Revision 1.6  2005/01/05 14:25:54  beck
   renames all is_x*_type() functions to is_X*_type() to prevent name clash with EDG fronten