133965Sjdp/* ldmisc.h -
2218822Sdim   Copyright 1991, 1992, 1993, 1994, 1996, 1997, 2001, 2003, 2004, 2007
378828Sobrien   Free Software Foundation, Inc.
433965Sjdp
533965Sjdp   This file is part of GLD, the Gnu Linker.
633965Sjdp
733965Sjdp   GLD is free software; you can redistribute it and/or modify
833965Sjdp   it under the terms of the GNU General Public License as published by
933965Sjdp   the Free Software Foundation; either version 2, or (at your option)
1033965Sjdp   any later version.
1133965Sjdp
1233965Sjdp   GLD is distributed in the hope that it will be useful,
1333965Sjdp   but WITHOUT ANY WARRANTY; without even the implied warranty of
1433965Sjdp   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1533965Sjdp   GNU General Public License for more details.
1633965Sjdp
1733965Sjdp   You should have received a copy of the GNU General Public License
1889857Sobrien   along with GLD; see the file COPYING.  If not, write to the Free
19218822Sdim   Software Foundation, 51 Franklin Street - Fifth Floor, Boston,
20218822Sdim   MA 02110-1301, USA.  */
2133965Sjdp
2233965Sjdp#ifndef LDMISC_H
2333965Sjdp#define LDMISC_H
2433965Sjdp
25130561Sobrienextern void einfo (const char *, ...);
26130561Sobrienextern void minfo (const char *, ...);
27130561Sobrienextern void info_msg (const char *, ...);
28130561Sobrienextern void lfinfo (FILE *, const char *, ...);
29130561Sobrienextern void info_assert (const char *, unsigned int);
30130561Sobrienextern void yyerror (const char *);
31130561Sobrienextern void *xmalloc (size_t);
32130561Sobrienextern void *xrealloc (void *, size_t);
33130561Sobrienextern void xexit (int);
3433965Sjdp
3533965Sjdp#define ASSERT(x) \
3633965Sjdpdo { if (!(x)) info_assert(__FILE__,__LINE__); } while (0)
3733965Sjdp
3833965Sjdp#define FAIL() \
3933965Sjdpdo { info_assert(__FILE__,__LINE__); } while (0)
4033965Sjdp
41130561Sobrienextern void print_space (void);
42130561Sobrienextern void print_nl (void);
4333965Sjdp
4433965Sjdp#endif
45