remove #ifdef HAVE_CONFIG_Hs
[libfirm] / ir / be / bestatevent.h
index a172d04..1420a56 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 1995-2007 University of Karlsruhe.  All right reserved.
+ * Copyright (C) 1995-2008 University of Karlsruhe.  All right reserved.
  *
  * This file is part of libFirm.
  *
  */
 
 /**
- * Statistic events
- * @date 3.9.2006
- * @author Sebastian Hack
+ * @file
+ * @brief       Statistic events.
+ * @author      Sebastian Hack
+ * @date        03.09.2006
+ * @version     $Id$
  */
-
-#ifndef _BESTATEVENT_H
-#define _BESTATEVENT_H
+#ifndef FIRM_BE_BESTATEVENT_H
+#define FIRM_BE_BESTATEVENT_H
 
 #include <stdio.h>
 
 #include "firm_types.h"
+#include "statev.h"
 
-void be_stat_ev_push(const char **tags, int n_tags, FILE *f);
-void be_stat_ev_pop(void);
-
-void be_stat_ev(const char *ev, int value);
-void be_stat_ev_l(const char *ev, long value);
-void be_stat_ev_dbl(const char *ev, double value);
-void be_stat_ev_ull(const char *ev, ulong64 value);
-
-int be_stat_ev_is_active(void);
+#define be_stat_ev(name, val)      stat_ev_dbl(name, (double)(val))
+#define be_stat_ev_l(name, val)    stat_ev_dbl(name, (double)(val))
+#define be_stat_ev_dbl(name, val)  stat_ev_dbl(name, (double)(val))
+#define be_stat_ev_ull(name, val)  stat_ev_dbl(name, (double)(val))
+#define be_stat_ev_int(name, val)  stat_ev_int(name, (int)(val))
 
-#endif /* _BESTATEVENT_H */
+#endif /* FIRM_BE_BESTATEVENT_H */