mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 14:49:38 +08:00
* 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.
This commit is contained in:
@ -1,5 +1,9 @@
|
|||||||
Thu Jun 25 04:00:10 1992 John Gilmore (gnu at cygnus.com)
|
Thu Jun 25 04:00:10 1992 John Gilmore (gnu at cygnus.com)
|
||||||
|
|
||||||
|
* 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.
|
||||||
|
|
||||||
* tm-hppa.h: New file, architectural definition of HP PA.
|
* tm-hppa.h: New file, architectural definition of HP PA.
|
||||||
* tm-hppabsd.h, tm-hppahpux.h: Shrink to deltas from tm-hppa.h.
|
* tm-hppabsd.h, tm-hppahpux.h: Shrink to deltas from tm-hppa.h.
|
||||||
|
|
||||||
|
16
gdb/defs.h
16
gdb/defs.h
@ -23,21 +23,10 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
/* First include ansidecl.h so we can use the various macro definitions
|
/* First include ansidecl.h so we can use the various macro definitions
|
||||||
in all subsequent file inclusions. FIXME: This inclusion can now
|
here and in all subsequent file inclusions. */
|
||||||
be removed from all files that include defs.h */
|
|
||||||
|
|
||||||
#include "ansidecl.h"
|
#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. */
|
/* An address in the program being debugged. Host byte order. */
|
||||||
typedef unsigned int CORE_ADDR;
|
typedef unsigned int CORE_ADDR;
|
||||||
|
|
||||||
@ -694,6 +683,7 @@ strerror PARAMS ((int)); /* 4.11.6.2 */
|
|||||||
# else
|
# else
|
||||||
# ifdef sparc
|
# ifdef sparc
|
||||||
# include <alloca.h>
|
# include <alloca.h>
|
||||||
|
extern char *alloca (); /* SPARC alloca.h doesn't declare damn thing */
|
||||||
# endif
|
# endif
|
||||||
# ifndef alloca /* May be macro, with args, in <alloca.h> */
|
# ifndef alloca /* May be macro, with args, in <alloca.h> */
|
||||||
extern char *alloca ();
|
extern char *alloca ();
|
||||||
@ -701,7 +691,7 @@ strerror PARAMS ((int)); /* 4.11.6.2 */
|
|||||||
# endif
|
# endif
|
||||||
#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)
|
#if !defined (BIG_ENDIAN)
|
||||||
#define BIG_ENDIAN 4321
|
#define BIG_ENDIAN 4321
|
||||||
|
Reference in New Issue
Block a user