]>
git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - binutils/bucomm.h
f211473980105f8d38fd2c1d27ea3d4b4bef3c39
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>
31 #ifdef USE_BINARY_FOPEN
32 #include "fopen-bin.h"
34 #include "fopen-same.h"
52 extern char *strchr ();
53 extern char *strrchr ();
64 #ifdef HAVE_SYS_FILE_H
69 #ifdef NEED_DECLARATION_STRSTR
70 extern char *strstr ();
74 #ifdef NEED_DECLARATION_SBRK
79 #ifdef NEED_DECLARATION_GETENV
80 extern char *getenv ();
83 #ifdef NEED_DECLARATION_ENVIRON
84 extern char **environ
;
105 #if defined(__GNUC__) && !defined(C_ALLOCA)
107 # define alloca __builtin_alloca
109 # if defined(HAVE_ALLOCA_H) && !defined(C_ALLOCA)
112 # ifndef alloca /* predefined by HP cc +Olibcalls */
113 # if !defined (__STDC__) && !defined (__hpux)
117 # endif /* __STDC__, __hpux */
119 # endif /* HAVE_ALLOCA_H */
127 # include <libintl.h>
128 # define _(String) gettext (String)
130 # define N_(String) gettext_noop (String)
132 # define N_(String) (String)
135 /* Stubs that do something close enough. */
136 # define textdomain(String) (String)
137 # define gettext(String) (String)
138 # define dgettext(Domain,Message) (Message)
139 # define dcgettext(Domain,Message,Type) (Message)
140 # define bindtextdomain(Domain,Directory) (Domain)
141 # define _(String) (String)
142 # define N_(String) (String)
146 void bfd_nonfatal
PARAMS ((CONST
char *));
148 void bfd_fatal
PARAMS ((CONST
char *));
150 void fatal
PARAMS ((CONST
char *, ...));
152 void non_fatal
PARAMS ((CONST
char *, ...));
154 void set_default_bfd_target
PARAMS ((void));
156 void list_matching_formats
PARAMS ((char **p
));
158 void list_supported_targets
PARAMS ((const char *, FILE *));
160 void print_arelt_descr
PARAMS ((FILE *file
, bfd
*abfd
, boolean verbose
));
162 char *make_tempname
PARAMS ((char *));
164 bfd_vma parse_vma
PARAMS ((const char *, const char *));
166 extern char *program_name
;
169 void mode_string
PARAMS ((unsigned long mode
, char *buf
));
172 extern void print_version
PARAMS ((const char *));
175 extern void set_times
PARAMS ((const char *, const struct stat
*));
177 extern int smart_rename
PARAMS ((const char *, const char *, int));
180 PTR xmalloc
PARAMS ((size_t));
182 PTR xrealloc
PARAMS ((PTR
, size_t));
184 #endif /* _BUCOMM_H */