X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=includes%2Finttypes.h;h=944793aa6a91ca9073047bc8988b27dd673ce889;hp=2b4eafef71c26772bbbe45231b17c421c5729235;hb=1d9d92ba957a0b8307c9a65c35867fde68e6533b;hpb=70f1c6f7c9d515ef426da68973511f46de57005a diff --git a/includes/inttypes.h b/includes/inttypes.h index 2b4eafe..944793a 100644 --- a/includes/inttypes.h +++ b/includes/inttypes.h @@ -1,19 +1,20 @@ -// ---------------------------------------------------------------------------- -// $Id$ -// ---------------------------------------------------------------------------- -// Public Domain C Library - http://pdclib.sourceforge.net -// This code is Public Domain. Use, modify, and redistribute at will. -// ---------------------------------------------------------------------------- -// Format conversion of integer types -// ---------------------------------------------------------------------------- +/* ---------------------------------------------------------------------------- + * $Id$ + * ---------------------------------------------------------------------------- + * Public Domain C Library - http://pdclib.sourceforge.net + * This code is Public Domain. Use, modify, and redistribute at will. + * ---------------------------------------------------------------------------- + * Format conversion of integer types + * --------------------------------------------------------------------------*/ -#ifndef __INTTYPES_H -#define __INTTYPES_H __INTTYPES_H +#ifndef _INTTYPES_H +#define _INTTYPES_H _INTTYPES_H -// TODO: Documentation +/* TODO: Documentation */ -// ---------------------------------------------------------------------------- -// TYPEDEFS +/* ---------------------------------------------------------------------------- + * TYPEDEFS + * --------------------------------------------------------------------------*/ typedef struct { @@ -22,16 +23,9 @@ typedef struct } imaxdiv_t; -// ---------------------------------------------------------------------------- -// FUNCTIONS - C++ - -#ifdef __cplusplus -intmax_t abs( intmax_t i ); -imaxdiv_t div( intmax_t numer, intmax_t denom ); -#endif __cplusplus - -// ---------------------------------------------------------------------------- -// FUNCTIONS - Standard C +/* ---------------------------------------------------------------------------- + * FUNCTIONS + * --------------------------------------------------------------------------*/ intmax_t imaxabs( intmax_t i ); imaxdiv_t imaxdiv( intmax_t numer, intmax_t denom ); @@ -41,8 +35,9 @@ uintmax_t strtoumax( const char * restrict s, char * * restrict endptr, int base intmax_t wcstoimax( const wchar_t * restrict s, wchar_t * * restrict endptr, int base ); uintmax_t wcstoumax( const wchar_t * restrict s, wchar_t * * restrict endptr, int base ); -// ---------------------------------------------------------------------------- -// MACROS (PRINT) +/* ---------------------------------------------------------------------------- + * MACROS (PRINT) + * --------------------------------------------------------------------------*/ #define PRId8 #define PRId16 @@ -152,8 +147,9 @@ uintmax_t wcstoumax( const wchar_t * restrict s, wchar_t * * restrict endptr, in #define PRIXMAX #define PRIXPTR -// ---------------------------------------------------------------------------- -// MACROS (SCAN) +/* ---------------------------------------------------------------------------- + * MACROS (SCAN) + * --------------------------------------------------------------------------*/ #define SCNd8 #define SCNd16 @@ -263,4 +259,4 @@ uintmax_t wcstoumax( const wchar_t * restrict s, wchar_t * * restrict endptr, in #define SCNXMAX #define SCNXPTR -#endif // __INTTYPES_H +#endif /* _INTTYPES_H */