/*
- * 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.
*
* @author Michael Beck
* @version $Id$
*/
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
+#include "config.h"
+
+#ifdef FIRM_STATISTICS
#include <stdio.h>
-#ifdef HAVE_STDLIB_H
-# include <stdlib.h>
-#endif
+#include <stdlib.h>
#include "ident.h"
#include "irop_t.h"
/**
* the pattern dumper
*/
-struct _pattern_dumper_t {
+struct pattern_dumper_t {
DUMP_NEW_PATTERN_FUNC dump_new_pattern;
DUMP_FINISH_PATTERN_FUNC dump_finish_pattern;
DUMP_NODE_FUNC dump_node;
/**
* VCG private data
*/
-typedef struct _vcg_private_t {
+typedef struct vcg_private_t {
FILE *f; /**< file to dump to */
unsigned pattern_id; /**< ID of the pattern */
unsigned max_pattern; /**< maximum number of pattern to be dumped */
{
vcg_private_t *priv = self->data;
ir_op *op = stat_get_op_from_opcode(op_code);
- ir_mode *mode = (ir_mode *)mode_code;
+ ir_mode *mode = get_irp_mode(mode_code);
long l = attr ? *(long *)attr : 0;
if (priv->pattern_id > priv->max_pattern)
{
FILE *f = self->data;
ir_op *op = stat_get_op_from_opcode(op_code);
- ir_mode *mode = (ir_mode *)mode_code;
+ ir_mode *mode = get_irp_mode(mode_code);
(void) attr;
/* if (env->options & OPT_ENC_GRAPH) */
return res;
} /* new_vcg_dumper */
+
+#endif /* FIRM_STATISTICS */