X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=includes%2Fstddef.h;h=1c138c7b91324e75b5657d14369a05ae9f3154ac;hb=70f1c6f7c9d515ef426da68973511f46de57005a;hp=2147696986334d4dfa05274be8497f82eaece197;hpb=1e221deb9ee725a14b3656f94e2763f8faeb18dc;p=pdclib diff --git a/includes/stddef.h b/includes/stddef.h index 2147696..1c138c7 100644 --- a/includes/stddef.h +++ b/includes/stddef.h @@ -4,12 +4,28 @@ // Public Domain C Library - http://pdclib.sourceforge.net // This code is Public Domain. Use, modify, and redistribute at will. // ---------------------------------------------------------------------------- -// TODO +// Common definitions // ---------------------------------------------------------------------------- #ifndef __STDDEF_H #define __STDDEF_H __STDDEF_H -// TODO +// TODO: Documentation + +// ---------------------------------------------------------------------------- +// MACROS + +#define NULL 0 +#define offsetof( s-type, mbr ) // TODO - personality? + +// ---------------------------------------------------------------------------- +// TYPEDEFS + +typedef ptrdiff_t; // TODO - personality? +typedef size_t; // TODO - personality? + +#ifndef __cplusplus +typedef wchar_t; // TODO - personality? +#endif // __cplusplus #endif // __STDDEF_H