Put braces around function names.
[libfirm] / ir / ir / irop.c
index 69f8a84..d78449b 100644 (file)
  */
 
 #ifdef HAVE_CONFIG_H
-# include <config.h>
+# include "config.h"
 #endif
 
+#ifdef HAVE_STRING_H
 # include <string.h>
+#endif
 
 # include "irop_t.h"
 # include "irnode_t.h"
@@ -269,6 +271,18 @@ ident *(get_op_ident)(ir_op *op){
   return __get_op_ident(op);
 }
 
+const char *get_op_pin_state_name(op_pin_state s) {
+  switch(s) {
+#define XXX(s) case s: return #s
+  XXX(op_pin_state_floats);
+  XXX(op_pin_state_pinned);
+  XXX(op_pin_state_exc_pinned);
+  XXX(op_pin_state_mem_pinned);
+#undef XXX
+  }
+       return "<none>";
+}
+
 op_pin_state (get_op_pinned)(const ir_op *op){
   return __get_op_pinned(op);
 }