Commit | Line | Data |
---|---|---|
2fa0b342 | 1 | /* ldmisc.h - |
efa6c497 | 2 | Copyright (C) 1991, 92, 93, 94, 95, 1996 Free Software Foundation, Inc. |
2fa0b342 DHW |
3 | |
4 | This file is part of GLD, the Gnu Linker. | |
5 | ||
6 | GLD is free software; you can redistribute it and/or modify | |
7 | it under the terms of the GNU General Public License as published by | |
fcf276c4 | 8 | the Free Software Foundation; either version 2, or (at your option) |
2fa0b342 DHW |
9 | any later version. |
10 | ||
11 | GLD is distributed in the hope that it will be useful, | |
12 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 | GNU General Public License for more details. | |
15 | ||
16 | You should have received a copy of the GNU General Public License | |
17 | along with GLD; see the file COPYING. If not, write to | |
23cb3b65 | 18 | the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ |
2fa0b342 | 19 | |
fcf276c4 ILT |
20 | #ifndef LDMISC_H |
21 | #define LDMISC_H | |
2fa0b342 | 22 | |
23cb3b65 ILT |
23 | #ifdef ANSI_PROTOTYPES |
24 | extern void einfo PARAMS ((const char *, ...)); | |
25 | extern void minfo PARAMS ((const char *, ...)); | |
26 | extern void info_msg PARAMS ((const char *, ...)); | |
27 | #else | |
2fa0b342 | 28 | /* VARARGS*/ |
fcf276c4 ILT |
29 | extern void einfo (); |
30 | /* VARARGS*/ | |
31 | extern void minfo (); | |
32 | /* VARARGS*/ | |
33 | extern void info_msg (); | |
23cb3b65 ILT |
34 | #endif |
35 | ||
36 | extern void info_assert PARAMS ((const char *, unsigned int)); | |
37 | extern void yyerror PARAMS ((const char *)); | |
38 | extern PTR xmalloc PARAMS ((size_t)); | |
39 | extern PTR xrealloc PARAMS ((PTR, size_t)); | |
40 | extern void xexit PARAMS ((int)); | |
fcf276c4 ILT |
41 | extern char *buystring PARAMS ((CONST char *CONST)); |
42 | ||
2fa0b342 | 43 | #define ASSERT(x) \ |
fcf276c4 | 44 | do { if (!(x)) info_assert(__FILE__,__LINE__); } while (0) |
2fa0b342 DHW |
45 | |
46 | #define FAIL() \ | |
fcf276c4 ILT |
47 | do { info_assert(__FILE__,__LINE__); } while (0) |
48 | ||
49 | extern void print_space PARAMS ((void)); | |
50 | extern void print_nl PARAMS ((void)); | |
51 | extern void print_address PARAMS ((bfd_vma value)); | |
efa6c497 | 52 | extern char *demangle PARAMS ((const char *)); |
fcf276c4 ILT |
53 | |
54 | #endif |