1989-05-16 13:13:53 +00:00
|
|
|
/*
|
|
|
|
* stddef.h - common definitions
|
|
|
|
*
|
|
|
|
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
|
|
|
|
* See the copyright notice in the ACK home directory, in the file "Copyright".
|
|
|
|
*/
|
|
|
|
/* $Header$ */
|
|
|
|
|
1989-09-29 15:46:33 +00:00
|
|
|
#if !defined(__STDDEF_HEADER__)
|
|
|
|
#define __STDDEF_HEADER__
|
1989-05-16 13:13:53 +00:00
|
|
|
|
1989-09-29 15:46:33 +00:00
|
|
|
#if !defined(NULL)
|
1989-05-16 13:13:53 +00:00
|
|
|
#define NULL 0
|
|
|
|
#endif /* NULL */
|
|
|
|
|
1989-09-29 15:46:33 +00:00
|
|
|
#define offsetof(type, ident) (((size_t) &(((type *)0)->ident))
|
1989-05-16 13:13:53 +00:00
|
|
|
|
1989-09-29 15:46:33 +00:00
|
|
|
#if !defined(__TYPE_PTRDIFF__)
|
|
|
|
#define __TYPE_PTRDIFF__
|
1989-05-16 13:13:53 +00:00
|
|
|
typedef int ptrdiff_t; /* result of substracting two pointers */
|
1989-09-29 15:46:33 +00:00
|
|
|
#endif /* __TYPE_PTRDIFF__ */
|
1989-05-16 13:13:53 +00:00
|
|
|
|
1989-09-29 15:46:33 +00:00
|
|
|
#if !defined(__TYPE_SIZE__)
|
|
|
|
#define __TYPE_SIZE__
|
1989-05-16 13:13:53 +00:00
|
|
|
typedef unsigned int size_t; /* type returned by sizeof */
|
1989-09-29 15:46:33 +00:00
|
|
|
#endif /* __TYPE_SIZE__ */
|
1989-05-16 13:13:53 +00:00
|
|
|
|
1989-09-29 15:46:33 +00:00
|
|
|
#if !defined(__TYPE_WCHAR__)
|
|
|
|
#define __TYPE_WCHAR__
|
1989-05-16 13:13:53 +00:00
|
|
|
typedef char wchar_t; /* type expanded character set */
|
1989-09-29 15:46:33 +00:00
|
|
|
#endif /* __TYPE_WCHAR__ */
|
1989-05-16 13:13:53 +00:00
|
|
|
|
1989-09-29 15:46:33 +00:00
|
|
|
#endif /* __STDDEF_HEADER__ */
|