Back to index

cell-binutils  2.17cvs20070401
ldmisc.h
Go to the documentation of this file.
00001 /* ldmisc.h -
00002    Copyright 1991, 1992, 1993, 1994, 1996, 1997, 2001, 2003, 2004
00003    Free Software Foundation, Inc.
00004 
00005    This file is part of GLD, the Gnu Linker.
00006 
00007    GLD is free software; you can redistribute it and/or modify
00008    it under the terms of the GNU General Public License as published by
00009    the Free Software Foundation; either version 2, or (at your option)
00010    any later version.
00011 
00012    GLD is distributed in the hope that it will be useful,
00013    but WITHOUT ANY WARRANTY; without even the implied warranty of
00014    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015    GNU General Public License for more details.
00016 
00017    You should have received a copy of the GNU General Public License
00018    along with GLD; see the file COPYING.  If not, write to the Free
00019    Software Foundation, 51 Franklin Street - Fifth Floor, Boston,
00020    MA 02110-1301, USA.  */
00021 
00022 #ifndef LDMISC_H
00023 #define LDMISC_H
00024 
00025 extern void einfo (const char *, ...);
00026 extern void minfo (const char *, ...);
00027 extern void info_msg (const char *, ...);
00028 extern void lfinfo (FILE *, const char *, ...);
00029 extern void info_assert (const char *, unsigned int);
00030 extern void yyerror (const char *);
00031 extern void *xmalloc (size_t);
00032 extern void *xrealloc (void *, size_t);
00033 extern void xexit (int);
00034 
00035 #define ASSERT(x) \
00036 do { if (!(x)) info_assert(__FILE__,__LINE__); } while (0)
00037 
00038 #define FAIL() \
00039 do { info_assert(__FILE__,__LINE__); } while (0)
00040 
00041 extern void print_space (void);
00042 extern void print_nl (void);
00043 extern char *demangle (const char *);
00044 
00045 #endif