/*
- * Project: libFIRM
- * File name: ir/ir/irprintf.h
- * Purpose: A little printf understanding some firm types.
- * Author: Sebastian Hack
- * Created: 29.11.2004
- * CVS-ID: $Id$
- * Copyright: (c) 1998-2004 Universität Karlsruhe
- * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE.
+ * Copyright (C) 1995-2007 University of Karlsruhe. All right reserved.
+ *
+ * This file is part of libFirm.
+ *
+ * This file may be distributed and/or modified under the terms of the
+ * GNU General Public License version 2 as published by the Free Software
+ * Foundation and appearing in the file LICENSE.GPL included in the
+ * packaging of this file.
+ *
+ * Licensees holding valid libFirm Professional Edition licenses may use
+ * this file in accordance with the libFirm Commercial License.
+ * Agreement provided with the Software.
+ *
+ * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
+ * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE.
*/
/**
- * @file irprintf.h
- *
- * A little printf understanding some firm types.
- * @author Sebastian Hack
- * @date 29.11.2004
+ * @file
+ * @brief A little printf understanding some firm types.
+ * @author Sebastian Hack
+ * @date 29.11.2004
+ * @version $Id$
*/
-
-#ifndef _IRPRINTF_H
-#define _IRPRINTF_H
+#ifndef FIRM_IR_IRPRINTF_H
+#define FIRM_IR_IRPRINTF_H
#include "firm_config.h"
/**
* A string formatting routine for ir objects.
+ *
+ * @param fmt The format string.
+ *
* This function rudimentary implements a kind of printf(3) for ir
* nodes. Following conversion specifiers. No length, special or field
* width specifiers are accepted.
* - @%B The block node number of the nodes block.
* - @%b A bitset.
* - @%= A pnc value
+ * - @%G A debug info (if available)
+ * - @%P A compound graph path
*
* Each of these can be prepend by a '+' which means, that the given
* pointer is a collection of items specified by the format. In this
*
* ir_printf("A set of xyz\'s: %*C\n", it_pset, xyzs, xyz_dump);
* @endcode
- *
- * @param fmt The format string.
*/
void ir_printf(const char *fmt, ...);
void ir_obst_vprintf(struct obstack *obst, const char *fmt, va_list args);
#ifdef WITH_LIBCORE
-#include <libcore/xprintf.h>
+#include <libcore/lc_printf.h>
#endif /* WITH_LIBCORE */
-#endif /* _IRPRINTF_H */
+#endif