1 /* bucomm.h -- binutils common include file.
2 Copyright (C) 1992, 93, 94, 95, 96, 1997, 1998 Free Software Foundation, Inc.
4 This file is part of GNU Binutils.
6 This program 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 of the License, or
9 (at your option) any later version.
11 This program 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 this program; if not, write to the Free Software
18 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
25 #include <sys/types.h>
29 #ifdef USE_BINARY_FOPEN
30 #include "fopen-bin.h"
32 #include "fopen-same.h"
50 extern char *strchr ();
51 extern char *strrchr ();
62 #ifdef HAVE_SYS_FILE_H
67 #ifdef NEED_DECLARATION_STRSTR
68 extern char *strstr ();
72 #ifdef NEED_DECLARATION_SBRK
77 #ifdef NEED_DECLARATION_GETENV
78 extern char *getenv ();
101 # define alloca __builtin_alloca
106 # ifndef alloca /* predefined by HP cc +Olibcalls */
107 # if !defined (__STDC__) && !defined (__hpux)
111 # endif /* __STDC__, __hpux */
113 # endif /* HAVE_ALLOCA_H */
118 #define _(String) gettext (String)
120 #define N_(String) gettext_noop (String)
122 #define N_(String) (String)
125 /* Stubs that do something close enough. */
126 #define textdomain(String) (String)
127 #define gettext(String) (String)
128 #define dgettext(Domain,Message) (Message)
129 #define dcgettext(Domain,Message,Type) (Message)
130 #define bindtextdomain(Domain,Directory) (Domain)
131 #define _(String) (String)
132 #define N_(String) (String)
133 /* In this case we don't care about the value. */
135 #define LC_MESSAGES 0
140 void bfd_nonfatal PARAMS ((CONST char *));
142 void bfd_fatal PARAMS ((CONST char *));
144 void fatal PARAMS ((CONST char *, ...));
146 void set_default_bfd_target PARAMS ((void));
148 void list_matching_formats PARAMS ((char **p));
150 void list_supported_targets PARAMS ((const char *, FILE *));
152 void print_arelt_descr PARAMS ((FILE *file, bfd *abfd, boolean verbose));
154 char *make_tempname PARAMS ((char *));
156 bfd_vma parse_vma PARAMS ((const char *, const char *));
158 extern char *program_name;
161 void mode_string PARAMS ((unsigned long mode, char *buf));
164 extern void print_version PARAMS ((const char *));
167 PTR xmalloc PARAMS ((size_t));
169 PTR xrealloc PARAMS ((PTR, size_t));
171 #endif /* _BUCOMM_H */