add basic integral types (a la sparc port) that new nvi wants.
mark old 'basic integral types' as XXX -- they should be squished when whoever gets this port working.
This commit is contained in:
parent
f5a57afb87
commit
d64461d7d3
|
@ -34,7 +34,7 @@
|
|||
* SUCH DAMAGE.
|
||||
*
|
||||
* from:@(#)types.h 7.2 (Berkeley) 7/14/92
|
||||
* $Id: types.h,v 1.1.1.1 1993/10/12 03:22:42 deraadt Exp $
|
||||
* $Id: types.h,v 1.2 1994/03/14 02:12:06 cgd Exp $
|
||||
*/
|
||||
|
||||
#ifndef _MACHTYPES_H_
|
||||
|
@ -51,7 +51,7 @@ typedef struct label_t {
|
|||
typedef u_long vm_offset_t;
|
||||
typedef u_long vm_size_t;
|
||||
|
||||
#ifdef __GNUC__
|
||||
#ifdef __GNUC__ /* XXX SHOULD GO AWAY */
|
||||
typedef char s1byte_t; /* Basic data types. */
|
||||
typedef unsigned char u1byte_t;
|
||||
typedef short s2byte_t;
|
||||
|
@ -64,4 +64,17 @@ typedef float f4byte_t;
|
|||
typedef double f8byte_t;
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Basic integral types. Omit the typedef if
|
||||
* not possible for a machine/compiler combination.
|
||||
*/
|
||||
typedef signed char int8_t;
|
||||
typedef unsigned char u_int8_t;
|
||||
typedef short int16_t;
|
||||
typedef unsigned short u_int16_t;
|
||||
typedef int int32_t;
|
||||
typedef unsigned int u_int32_t;
|
||||
typedef long long int64_t;
|
||||
typedef unsigned long long u_int64_t;
|
||||
|
||||
#endif /* _MACHTYPES_H_ */
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
* SUCH DAMAGE.
|
||||
*
|
||||
* from:@(#)types.h 7.2 (Berkeley) 7/14/92
|
||||
* $Id: types.h,v 1.1.1.1 1993/10/12 03:22:42 deraadt Exp $
|
||||
* $Id: types.h,v 1.2 1994/03/14 02:12:06 cgd Exp $
|
||||
*/
|
||||
|
||||
#ifndef _MACHTYPES_H_
|
||||
|
@ -51,7 +51,7 @@ typedef struct label_t {
|
|||
typedef u_long vm_offset_t;
|
||||
typedef u_long vm_size_t;
|
||||
|
||||
#ifdef __GNUC__
|
||||
#ifdef __GNUC__ /* XXX SHOULD GO AWAY */
|
||||
typedef char s1byte_t; /* Basic data types. */
|
||||
typedef unsigned char u1byte_t;
|
||||
typedef short s2byte_t;
|
||||
|
@ -64,4 +64,17 @@ typedef float f4byte_t;
|
|||
typedef double f8byte_t;
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Basic integral types. Omit the typedef if
|
||||
* not possible for a machine/compiler combination.
|
||||
*/
|
||||
typedef signed char int8_t;
|
||||
typedef unsigned char u_int8_t;
|
||||
typedef short int16_t;
|
||||
typedef unsigned short u_int16_t;
|
||||
typedef int int32_t;
|
||||
typedef unsigned int u_int32_t;
|
||||
typedef long long int64_t;
|
||||
typedef unsigned long long u_int64_t;
|
||||
|
||||
#endif /* _MACHTYPES_H_ */
|
||||
|
|
Loading…
Reference in New Issue