File:  [MW Coherent from dump] / coherent / a / usr / bob / korn / stddef.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Wed May 29 04:56:34 2019 UTC (7 years ago) by root
Branches: MarkWilliams, MAIN
CVS tags: relic, HEAD
coherent

/* ANSI common definitions */

/* $Header: /var/lib/cvsd/repos/coherent/coherent/a/usr/bob/korn/stddef.h,v 1.1.1.1 2019/05/29 04:56:34 root Exp $ */

#ifndef NULL
#if __STDC__
#define	NULL	(void*)0
#else
#define	NULL	(char *)0
#endif
#endif

#if ! _STDDEF_H
#define	_STDDEF_H 1

/* doesn't really belong here, but the library function need it */
#if __STDC__
#define	ARGS(args)	args
#define Void	void
#define	Const	const
#else
#define	ARGS(args)	()
#define	Void	char
#define	Const
#endif

#if 0
typedef unsigned int size_t;		/* may need long */
#endif
typedef int ptrdiff_t;

#define	offsetof(type,id) ((size_t)&((type*)NULL)->id)

extern	int errno;		/* really belongs in <errno.h> */

#endif


unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.