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