diff options
author | Ken Raeburn <raeburn@cygnus> | 1994-09-13 23:07:48 +0000 |
---|---|---|
committer | Ken Raeburn <raeburn@cygnus> | 1994-09-13 23:07:48 +0000 |
commit | 460531dad97cd6bd25c62087dd111d1dfe4d20b9 (patch) | |
tree | 3ace4f91ccc4335ac10aad64b58afc3f8e519e49 /gas/as.h | |
parent | 28d3e4a3f8aa6dbded562b67cedb3ad15474565d (diff) | |
download | gdb-460531dad97cd6bd25c62087dd111d1dfe4d20b9.zip gdb-460531dad97cd6bd25c62087dd111d1dfe4d20b9.tar.gz gdb-460531dad97cd6bd25c62087dd111d1dfe4d20b9.tar.bz2 |
Use EXIT_SUCCESS and EXIT_FAILURE in all exit calls.
Use exit rather than returning from main, for consistency on VMS.
Call as_fatal instead of as_bad or as_warn followed by exit.
Diffstat (limited to 'gas/as.h')
-rw-r--r-- | gas/as.h | 38 |
1 files changed, 29 insertions, 9 deletions
@@ -35,13 +35,29 @@ * If TEST is #defined, then we are testing a module: #define COMMON as "". */ -/* These #defines are for parameters of entire assembler. */ +#include "config.h" -/* For some systems, this is required to be first. */ -#include "libiberty/alloca-conf.h" +/* This is the code recommended in the autoconf documentation -- + verbatim. If it doesn't work for you, let me know, and notify + djm@gnu.ai.mit.edu as well. */ +/* AIX requires this to be the first thing in the file. */ +#ifdef __GNUC__ +# define alloca __builtin_alloca +#else +# if HAVE_ALLOCA_H +# include <alloca.h> +# else +# ifdef _AIX + #pragma alloca +# else +# ifndef alloca /* predefined by HP cc +Olibcalls */ +char *alloca (); +# endif +# endif +# endif +#endif /* Now, tend to the rest of the configuration. */ -#include "config.h" /* System include files first... */ #include <stdio.h> @@ -104,11 +120,6 @@ extern char *strdup (/* const char * */); #include "fopen-same.h" #endif -/* This doesn't get taken care of by ansidecl.h. */ -#if !defined (__STDC__) && !defined (volatile) -#define volatile -#endif - /* This doesn't get taken care of anywhere. */ #if !defined (__GNUC__) && !defined (inline) #define inline @@ -123,6 +134,10 @@ extern PTR realloc (); extern void free (); #endif +#ifdef USE_DELETE_FOR_UNLINK +#define unlink delete +#endif + #ifdef BFD_ASSEMBLER /* This one doesn't get declared, but we're using it anyways. This should be fixed -- either it's part of the external interface or @@ -167,6 +182,11 @@ extern PTR bfd_alloc_by_size_t PARAMS ((bfd *abfd, size_t sz)); #endif #endif +#ifndef EXIT_SUCCESS +#define EXIT_SUCCESS 0 +#define EXIT_FAILURE 1 +#endif + #define obstack_chunk_alloc xmalloc #define obstack_chunk_free xfree |