2 * Copyright (C) 1995-2008 University of Karlsruhe. All right reserved.
4 * This file is part of libFirm.
6 * This file may be distributed and/or modified under the terms of the
7 * GNU General Public License version 2 as published by the Free Software
8 * Foundation and appearing in the file LICENSE.GPL included in the
9 * packaging of this file.
11 * Licensees holding valid libFirm Professional Edition licenses may use
12 * this file in accordance with the libFirm Commercial License.
13 * Agreement provided with the Software.
15 * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
16 * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22 * @brief A little printf helper unterstanding firm types
23 * @author Sebastian Hack
46 #include "dbginfo_t.h"
49 void ir_printf(const char *fmt, ...)
54 lc_evprintf(firm_get_arg_env(), fmt, args);
58 void ir_fprintf(FILE *f, const char *fmt, ...)
63 lc_evfprintf(firm_get_arg_env(), f, fmt, args);
67 void ir_snprintf(char *buf, size_t n, const char *fmt, ...)
72 lc_evsnprintf(firm_get_arg_env(), buf, n, fmt, args);
76 void ir_vprintf(const char *fmt, va_list args)
78 lc_evprintf(firm_get_arg_env(), fmt, args);
81 void ir_vfprintf(FILE *f, const char *fmt, va_list args)
83 lc_evfprintf(firm_get_arg_env(), f, fmt, args);
86 void ir_vsnprintf(char *buf, size_t len, const char *fmt, va_list args)
88 lc_evsnprintf(firm_get_arg_env(), buf, len, fmt, args);
91 void ir_obst_vprintf(struct obstack *obst, const char *fmt, va_list args)
93 lc_evoprintf(firm_get_arg_env(), obst, fmt, args);