1 /* bucomm.h -- binutils common include file.
2 Copyright (C) 1992, 93, 94, 95, 96, 97, 98, 1999
3 Free Software Foundation, Inc.
5 This file is part of GNU Binutils.
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2 of the License, or
10 (at your option) any later version.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
26 #include <sys/types.h>
30 #ifdef USE_BINARY_FOPEN
31 #include "fopen-bin.h"
33 #include "fopen-same.h"
51 extern char *strchr ();
52 extern char *strrchr ();
63 #ifdef HAVE_SYS_FILE_H
68 #ifdef NEED_DECLARATION_STRSTR
69 extern char *strstr ();
73 #ifdef NEED_DECLARATION_SBRK
78 #ifdef NEED_DECLARATION_GETENV
79 extern char *getenv ();
82 #ifdef NEED_DECLARATION_ENVIRON
83 extern char **environ
;
104 #if defined(__GNUC__) && !defined(C_ALLOCA)
106 # define alloca __builtin_alloca
108 # if defined(HAVE_ALLOCA_H) && !defined(C_ALLOCA)
111 # ifndef alloca /* predefined by HP cc +Olibcalls */
112 # if !defined (__STDC__) && !defined (__hpux)
116 # endif /* __STDC__, __hpux */
118 # endif /* HAVE_ALLOCA_H */
126 # include <libintl.h>
127 # define _(String) gettext (String)
129 # define N_(String) gettext_noop (String)
131 # define N_(String) (String)
134 /* Stubs that do something close enough. */
135 # define textdomain(String) (String)
136 # define gettext(String) (String)
137 # define dgettext(Domain,Message) (Message)
138 # define dcgettext(Domain,Message,Type) (Message)
139 # define bindtextdomain(Domain,Directory) (Domain)
140 # define _(String) (String)
141 # define N_(String) (String)
145 void bfd_nonfatal
PARAMS ((CONST
char *));
147 void bfd_fatal
PARAMS ((CONST
char *));
149 void fatal
PARAMS ((CONST
char *, ...));
151 void non_fatal
PARAMS ((CONST
char *, ...));
153 void set_default_bfd_target
PARAMS ((void));
155 void list_matching_formats
PARAMS ((char **p
));
157 void list_supported_targets
PARAMS ((const char *, FILE *));
159 void print_arelt_descr
PARAMS ((FILE *file
, bfd
*abfd
, boolean verbose
));
161 char *make_tempname
PARAMS ((char *));
163 bfd_vma parse_vma
PARAMS ((const char *, const char *));
165 extern char *program_name
;
168 void mode_string
PARAMS ((unsigned long mode
, char *buf
));
171 extern void print_version
PARAMS ((const char *));
174 extern void set_times
PARAMS ((const char *, const struct stat
*));
176 extern int smart_rename
PARAMS ((const char *, const char *, int));
179 PTR xmalloc
PARAMS ((size_t));
181 PTR xrealloc
PARAMS ((PTR
, size_t));
183 #endif /* _BUCOMM_H */