X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fcommon%2Ferror.c;h=9b3ee7d370ab6e73a94bbf4573c4a33925655160;hb=342720ec49991f59ea0d32d0751cb66624f4f0cc;hp=0cc58df5045cc18170e32bdeebc0de130b4b1cd6;hpb=48f326b8af7f33f46f9df5bfd802281056e79afa;p=libfirm diff --git a/ir/common/error.c b/ir/common/error.c index 0cc58df50..9b3ee7d37 100644 --- a/ir/common/error.c +++ b/ir/common/error.c @@ -1,32 +1,45 @@ /* - * Project: libFIRM - * File name: ir/common/error.c - * Purpose: Error handling for libFirm - * Author: Michael Beck - * Modified by: - * Created: - * CVS-ID: $Id$ - * Copyright: (C) 1998-2006 Universität Karlsruhe - * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE. + * Copyright (C) 1995-2008 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. */ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif + +/** + * @file + * @brief Error handling for libFirm + * @author Michael Beck + * @version $Id$ + */ +#include "config.h" #include #include #include #include "error.h" +#include "irprintf.h" NORETURN panic(const char *fmt, ...) { - va_list ap; + va_list ap; - fputs("libFirm panic: ", stderr); - va_start(ap, fmt); - vfprintf(stderr, fmt, ap); - va_end(ap); - putc('\n', stderr); - exit(EXIT_FAILURE); + fputs("libFirm panic: ", stderr); + va_start(ap, fmt); + ir_vfprintf(stderr, fmt, ap); + va_end(ap); + putc('\n', stderr); + abort(); }