X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=includes%2Fstdint.h;h=7ba5c7098b5c05c7eed6abb76b6824fd1aa6758c;hb=1d9d92ba957a0b8307c9a65c35867fde68e6533b;hp=ef21b9cdda92feb4084224a111efc3b71a672eed;hpb=ac3f809c3c10347c110fac3db93af0954eda98bb;p=pdclib diff --git a/includes/stdint.h b/includes/stdint.h index ef21b9c..7ba5c70 100644 --- a/includes/stdint.h +++ b/includes/stdint.h @@ -1,61 +1,72 @@ -// ---------------------------------------------------------------------------- -// $Id$ -// ---------------------------------------------------------------------------- -// Public Domain C Library - http://pdclib.sourceforge.net -// This code is Public Domain. Use, modify, and redistribute at will. -// ---------------------------------------------------------------------------- -// Integer types -// ---------------------------------------------------------------------------- - -#ifndef __STDINT_H -#define __STDINT_H __STDINT_H - -// ---------------------------------------------------------------------------- -// TYPEDEFS - -typedef int8_t; // TODO -typedef int16_t; // TODO -typedef int32_t; // TODO -typedef int64_t; // TODO - -typedef uint8_t; // TODO -typedef uint16_t; // TODO -typedef uint32_t; // TODO -typedef uint64_t; // TODO - -typedef int_least8_t; // TODO -typedef int_least16_t; // TODO -typedef int_least32_t; // TODO -typedef int_least64_t; // TODO - -typedef uint_least8_t; // TODO -typedef uint_least16_t; // TODO -typedef uint_least32_t; // TODO -typedef uint_least64_t; // TODO - -typedef int_fast8_t; // TODO -typedef int_fast16_t; // TODO -typedef int_fast32_t; // TODO -typedef int_fast64_t; // TODO - -typedef uint_fast8_t; // TODO -typedef uint_fast16_t; // TODO -typedef uint_fast32_t; // TODO -typedef uint_fast64_t; // TODO - -typedef intptr_t; // TODO -typedef uintptr_t; // TODO - -typedef intmax_t; // TODO -typedef uintmax_t; // TODO - -// ---------------------------------------------------------------------------- -// MACROS - -#define INT8_MIN // TODO -#define INT16_MIN // TODO -#define INT32_MIN // TODO -#define INT64_MIN // TODO +/* ---------------------------------------------------------------------------- + * $Id$ + * ---------------------------------------------------------------------------- + * Public Domain C Library - http://pdclib.sourceforge.net + * This code is Public Domain. Use, modify, and redistribute at will. + * ---------------------------------------------------------------------------- + * Integer types + * ---------------------------------------------------------------------------- + * This header is part of a freestanding implementation + * --------------------------------------------------------------------------*/ + +#ifndef _STDINT_H +#define _STDINT_H _STDINT_H + +/* This file is part of the platform personality (see personality.txt). */ +#ifndef _NULL +#include "__intern.h" +#endif + +/* TODO: Documentation */ + +/* ---------------------------------------------------------------------------- + * TYPEDEFS + * --------------------------------------------------------------------------*/ + +typedef int8_t; /* TODO */ +typedef int16_t; /* TODO */ +typedef int32_t; /* TODO */ +typedef int64_t; /* TODO */ + +typedef uint8_t; /* TODO */ +typedef uint16_t; /* TODO */ +typedef uint32_t; /* TODO */ +typedef uint64_t; /* TODO */ + +typedef int_least8_t; /* TODO */ +typedef int_least16_t; /* TODO */ +typedef int_least32_t; /* TODO */ +typedef int_least64_t; /* TODO */ + +typedef uint_least8_t; /* TODO */ +typedef uint_least16_t; /* TODO */ +typedef uint_least32_t; /* TODO */ +typedef uint_least64_t; /* TODO */ + +typedef int_fast8_t; /* TODO */ +typedef int_fast16_t; /* TODO */ +typedef int_fast32_t; /* TODO */ +typedef int_fast64_t; /* TODO */ + +typedef uint_fast8_t; /* TODO */ +typedef uint_fast16_t; /* TODO */ +typedef uint_fast32_t; /* TODO */ +typedef uint_fast64_t; /* TODO */ + +typedef intptr_t; /* TODO */ +typedef uintptr_t; /* TODO */ + +typedef intmax_t; /* TODO */ +typedef uintmax_t; /* TODO */ + +/* ---------------------------------------------------------------------------- + * MACROS + * --------------------------------------------------------------------------*/ + +#define INT8_MIN /* TODO */ +#define INT16_MIN /* TODO */ +#define INT32_MIN /* TODO */ +#define INT64_MIN /* TODO */ #define INT8_MAX 0x7f #define INT16_MAX 0x7fff @@ -67,69 +78,66 @@ typedef uintmax_t; // TODO #define UINT32_MAX 0xffffffff #define UINT64_MAX 0xffffffffffffffff -#define INT_LEAST8_MIN // TODO -#define INT_LEAST16_MIN // TODO -#define INT_LEAST32_MIN // TODO -#define INT_LEAST64_MIN // TODO +#define INT_LEAST8_MIN /* TODO */ +#define INT_LEAST16_MIN /* TODO */ +#define INT_LEAST32_MIN /* TODO */ +#define INT_LEAST64_MIN /* TODO */ -#define INT_LEAST8_MAX // TODO -#define INT_LEAST16_MAX // TODO -#define INT_LEAST32_MAX // TODO -#define INT_LEAST64_MAX // TODO +#define INT_LEAST8_MAX /* TODO */ +#define INT_LEAST16_MAX /* TODO */ +#define INT_LEAST32_MAX /* TODO */ +#define INT_LEAST64_MAX /* TODO */ -#define UINT_LEAST8_MAX // TODO -#define UINT_LEAST16_MAX // TODO -#define UINT_LEAST32_MAX // TODO -#define UINT_LEAST64_MAX // TODO +#define UINT_LEAST8_MAX /* TODO */ +#define UINT_LEAST16_MAX /* TODO */ +#define UINT_LEAST32_MAX /* TODO */ +#define UINT_LEAST64_MAX /* TODO */ -#define INT_FAST8_MIN // TODO -#define INT_FAST16_MIN // TODO -#define INT_FAST32_MIN // TODO -#define INT_FAST64_MIN // TODO +#define INT_FAST8_MIN /* TODO */ +#define INT_FAST16_MIN /* TODO */ +#define INT_FAST32_MIN /* TODO */ +#define INT_FAST64_MIN /* TODO */ -#define INT_FAST8_MAX // TODO -#define INT_FAST16_MAX // TODO -#define INT_FAST32_MAX // TODO -#define INT_FAST64_MAX // TODO +#define INT_FAST8_MAX /* TODO */ +#define INT_FAST16_MAX /* TODO */ +#define INT_FAST32_MAX /* TODO */ +#define INT_FAST64_MAX /* TODO */ -#define UINT_FAST8_MAX // TODO -#define UINT_FAST16_MAX // TODO -#define UINT_FAST32_MAX // TODO -#define UINT_FAST64_MAX // TODO +#define UINT_FAST8_MAX /* TODO */ +#define UINT_FAST16_MAX /* TODO */ +#define UINT_FAST32_MAX /* TODO */ +#define UINT_FAST64_MAX /* TODO */ -#define INTPTR_MIN // TODO -#define INTPTR_MAX // TODO -#define UINTPTR_MAX // TODO +#define INTPTR_MIN /* TODO */ +#define INTPTR_MAX /* TODO */ +#define UINTPTR_MAX /* TODO */ -#define INT8_C(x) // TODO -#define INT16_C(x) // TODO -#define INT32_C(x) // TODO -#define INT64_C(x) // TODO +#define INT8_C(x) /* TODO */ +#define INT16_C(x) /* TODO */ +#define INT32_C(x) /* TODO */ +#define INT64_C(x) /* TODO */ -#define UINT8_C(x) // TODO -#define UINT16_C(x) // TODO -#define UINT32_C(x) // TODO -#define UINT64_C(x) // TODO +#define UINT8_C(x) /* TODO */ +#define UINT16_C(x) /* TODO */ +#define UINT32_C(x) /* TODO */ +#define UINT64_C(x) /* TODO */ -#define INTMAX_C(x) // TODO -#define UINTMAX_C(x) // TODO +#define INTMAX_C(x) /* TODO */ +#define UINTMAX_C(x) /* TODO */ -#define PTRDIFF_MIN // TODO -#define PTRDIFF_MAX // TODO +#define PTRDIFF_MIN /* TODO */ +#define PTRDIFF_MAX /* TODO */ -#define SIG_ATOMIC_MIN // TODO -#define SIG_ATOMIC_MAX // TODO +#define SIG_ATOMIC_MIN /* TODO */ +#define SIG_ATOMIC_MAX /* TODO */ -#define SIZE_MAX // TODO +#define SIZE_MAX /* TODO */ -#define WCHAR_MIN // TODO -#define WCHAR_MAX // TODO +#define WCHAR_MIN _WCHAR_MIN +#define WCHAR_MAX _WCHAR_MAX -#define WINT_MIN // TODO -#define WINT_MAX // TODO +#define INTMAX_MIN /* TODO */ +#define INTMAX_MAX /* TODO */ +#define UINTMAX_MAX /* TODO */ -#define INTMAX_MIN // TODO -#define INTMAX_MAX // TODO -#define UINTMAX_MAX // TODO - -#endif // __STDINT_H +#endif // _STDINT_H