NetBSD-5.0.2/sys/arch/x68k/stand/aout2hux/type_local.h

Compare this file to the similar file:
Show the results in this format:

/*
 *	type and other definitions
 *
 *	written by Yasha (ITOH Yasufumi)
 *	public domain
 *
 *	$NetBSD: type_local.h,v 1.1 1998/09/01 19:51:09 itohy Exp $
 */

#ifdef __STDC__
# define PROTO(x)	x
#else
# define PROTO(x)	()
# ifndef const
#  define const
# endif
#endif

#ifndef __BIT_TYPES_DEFINED__
typedef unsigned char	u_int8_t;
typedef unsigned short	u_int16_t;
typedef unsigned int	u_int32_t;
#endif

/*
 * big-endian integer types
 */
typedef union be_uint16 {
	u_int8_t	val[2];
	u_int16_t	hostval;
} be_uint16_t;

typedef union be_uint32 {
	u_int8_t	val[4];
	u_int32_t	hostval;
	be_uint16_t	half[2];
} be_uint32_t;

#define SIZE_16		sizeof(be_uint16_t)
#define SIZE_32		sizeof(be_uint32_t)