diff options
author | John Gilmore <gnu@cygnus> | 1992-06-25 11:50:31 +0000 |
---|---|---|
committer | John Gilmore <gnu@cygnus> | 1992-06-25 11:50:31 +0000 |
commit | debd34438d977c93cc0723963349ba43c96358da (patch) | |
tree | 948910b81fa13f8e220f62f265731b0cc2530911 /gdb/defs.h | |
parent | c40dbf26ab18e7f66833f2e536f435f0df7e5bfc (diff) | |
download | gdb-debd34438d977c93cc0723963349ba43c96358da.zip gdb-debd34438d977c93cc0723963349ba43c96358da.tar.gz gdb-debd34438d977c93cc0723963349ba43c96358da.tar.bz2 |
* defs.h (PARAMS): Move to ../include/ansidecl.h.
(alloca): Declare return type on SPARC, since Sun doesn't.
(*_BYTE_ORDER): Improve comment: *must* be defined.
Diffstat (limited to 'gdb/defs.h')
-rw-r--r-- | gdb/defs.h | 16 |
1 files changed, 3 insertions, 13 deletions
@@ -23,21 +23,10 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include <stdio.h> /* First include ansidecl.h so we can use the various macro definitions - in all subsequent file inclusions. FIXME: This inclusion can now - be removed from all files that include defs.h */ + here and in all subsequent file inclusions. */ #include "ansidecl.h" -/* We could use the EXFUN macro in ansidecl.h to handle prototypes, but - the name is misleading the the result is ugly. So just define a simple - macro to handle the parameter lists. */ - -#ifdef __STDC__ -#define PARAMS(paramlist) paramlist -#else -#define PARAMS(paramlist) () -#endif - /* An address in the program being debugged. Host byte order. */ typedef unsigned int CORE_ADDR; @@ -694,6 +683,7 @@ strerror PARAMS ((int)); /* 4.11.6.2 */ # else # ifdef sparc # include <alloca.h> + extern char *alloca (); /* SPARC alloca.h doesn't declare damn thing */ # endif # ifndef alloca /* May be macro, with args, in <alloca.h> */ extern char *alloca (); @@ -701,7 +691,7 @@ strerror PARAMS ((int)); /* 4.11.6.2 */ # endif #endif -/* TARGET_BYTE_ORDER and HOST_BYTE_ORDER should be defined to one of these. */ +/* TARGET_BYTE_ORDER and HOST_BYTE_ORDER must be defined to one of these. */ #if !defined (BIG_ENDIAN) #define BIG_ENDIAN 4321 |