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
47 #include "dbginfo_t.h"
50 void ir_printf(const char *fmt, ...)
55 lc_evprintf(firm_get_arg_env(), fmt, args);
59 void ir_fprintf(FILE *f, const char *fmt, ...)
64 lc_evfprintf(firm_get_arg_env(), f, fmt, args);
68 void ir_snprintf(char *buf, size_t n, const char *fmt, ...)
73 lc_evsnprintf(firm_get_arg_env(), buf, n, fmt, args);
77 void ir_vprintf(const char *fmt, va_list args)
79 lc_evprintf(firm_get_arg_env(), fmt, args);
82 void ir_vfprintf(FILE *f, const char *fmt, va_list args)
84 lc_evfprintf(firm_get_arg_env(), f, fmt, args);
87 void ir_vsnprintf(char *buf, size_t len, const char *fmt, va_list args)
89 lc_evsnprintf(firm_get_arg_env(), buf, len, fmt, args);
92 void ir_obst_vprintf(struct obstack *obst, const char *fmt, va_list args)
94 lc_evoprintf(firm_get_arg_env(), obst, fmt, args);