xref: /netbsd/external/gpl3/gdb/dist/ld/ldmisc.h (revision 1424dfb3)
1*1424dfb3Schristos /* ldmisc.h -
2*1424dfb3Schristos    Copyright (C) 1991-2020 Free Software Foundation, Inc.
3*1424dfb3Schristos 
4*1424dfb3Schristos    This file is part of the GNU Binutils.
5*1424dfb3Schristos 
6*1424dfb3Schristos    This program is free software; you can redistribute it and/or modify
7*1424dfb3Schristos    it under the terms of the GNU General Public License as published by
8*1424dfb3Schristos    the Free Software Foundation; either version 3 of the License, or
9*1424dfb3Schristos    (at your option) any later version.
10*1424dfb3Schristos 
11*1424dfb3Schristos    This program is distributed in the hope that it will be useful,
12*1424dfb3Schristos    but WITHOUT ANY WARRANTY; without even the implied warranty of
13*1424dfb3Schristos    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14*1424dfb3Schristos    GNU General Public License for more details.
15*1424dfb3Schristos 
16*1424dfb3Schristos    You should have received a copy of the GNU General Public License
17*1424dfb3Schristos    along with this program; if not, write to the Free Software
18*1424dfb3Schristos    Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
19*1424dfb3Schristos    MA 02110-1301, USA.  */
20*1424dfb3Schristos 
21*1424dfb3Schristos #ifndef LDMISC_H
22*1424dfb3Schristos #define LDMISC_H
23*1424dfb3Schristos 
24*1424dfb3Schristos extern void vfinfo (FILE *fp, const char *fmt, va_list arg, bfd_boolean is_warning);
25*1424dfb3Schristos extern void einfo (const char *, ...);
26*1424dfb3Schristos extern void minfo (const char *, ...);
27*1424dfb3Schristos extern void info_msg (const char *, ...);
28*1424dfb3Schristos extern void lfinfo (FILE *, const char *, ...);
29*1424dfb3Schristos extern void info_assert (const char *, unsigned int);
30*1424dfb3Schristos extern void yyerror (const char *);
31*1424dfb3Schristos extern void *xmalloc (size_t);
32*1424dfb3Schristos extern void *xrealloc (void *, size_t);
33*1424dfb3Schristos extern void xexit (int);
34*1424dfb3Schristos 
35*1424dfb3Schristos #define ASSERT(x) \
36*1424dfb3Schristos do { if (!(x)) info_assert(__FILE__,__LINE__); } while (0)
37*1424dfb3Schristos 
38*1424dfb3Schristos #define FAIL() \
39*1424dfb3Schristos do { info_assert(__FILE__,__LINE__); } while (0)
40*1424dfb3Schristos 
41*1424dfb3Schristos extern void print_space (void);
42*1424dfb3Schristos extern void print_nl (void);
43*1424dfb3Schristos 
44*1424dfb3Schristos #endif
45