2000-07-19 H.J. Lu <hjl@gnu.org>
[binutils.git] / ld / ldmisc.h
blobf5b3b4f35afc299d944efbd833519209d2cb925d
1 /* ldmisc.h -
2 Copyright (C) 1991, 92, 93, 94, 95, 1996 Free Software Foundation, Inc.
4 This file is part of GLD, the Gnu Linker.
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
8 the Free Software Foundation; either version 2, or (at your option)
9 any later version.
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.
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
18 the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
20 #ifndef LDMISC_H
21 #define LDMISC_H
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 extern void lfinfo PARAMS ((FILE *, const char *, ...));
28 #else
29 /* VARARGS*/
30 extern void einfo ();
31 /* VARARGS*/
32 extern void minfo ();
33 /* VARARGS*/
34 extern void info_msg ();
35 /*VARARGS*/
36 extern void lfinfo ();
37 #endif
39 extern void info_assert PARAMS ((const char *, unsigned int));
40 extern void yyerror PARAMS ((const char *));
41 extern PTR xmalloc PARAMS ((size_t));
42 extern PTR xrealloc PARAMS ((PTR, size_t));
43 extern void xexit PARAMS ((int));
44 extern char *buystring PARAMS ((CONST char *CONST));
46 #define ASSERT(x) \
47 do { if (!(x)) info_assert(__FILE__,__LINE__); } while (0)
49 #define FAIL() \
50 do { info_assert(__FILE__,__LINE__); } while (0)
52 extern void print_space PARAMS ((void));
53 extern void print_nl PARAMS ((void));
54 extern char *demangle PARAMS ((const char *));
56 #endif