X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=internals%2F_PDCLIB_int.h;h=90276c08dfc5098d14ab67246a7525d169468150;hb=bdd913fd4a86f506a7fc42a04363c75fcb0ab093;hp=56eb5389e73403c2dc901f6932c52f2aab6f28b0;hpb=56bacb39160e13397fde32a36329461f3ae56ec1;p=pdclib diff --git a/internals/_PDCLIB_int.h b/internals/_PDCLIB_int.h index 56eb538..90276c0 100644 --- a/internals/_PDCLIB_int.h +++ b/internals/_PDCLIB_int.h @@ -12,8 +12,8 @@ /* would be considered a bug / missing feature: notify the author(s). */ /* -------------------------------------------------------------------------- */ -#include <_PDCLIB_config.h> -#include <_PDCLIB_aux.h> +#include "_PDCLIB_config.h" +#include "_PDCLIB_aux.h" /* null pointer constant */ #define _PDCLIB_NULL 0 @@ -257,7 +257,7 @@ typedef unsigned _PDCLIB_intmax _PDCLIB_uintmax_t; */ #define _PDCLIB_FREAD 8u #define _PDCLIB_FWRITE 16u -#define _PDCLIB_FAPPEND 32u +#define _PDCLIB_FAPPEND 32u #define _PDCLIB_FRW 64u #define _PDCLIB_FBIN 128u @@ -354,8 +354,8 @@ const char * _PDCLIB_strtox_prelim( const char * p, char * sign, int * base ); _PDCLIB_uintmax_t _PDCLIB_strtox_main( const char ** p, unsigned int base, _PDCLIB_uintmax_t error, _PDCLIB_uintmax_t limval, int limdigit, char * sign ); /* Digits arrays used by various integer conversion functions */ -extern char _PDCLIB_digits[]; -extern char _PDCLIB_Xdigits[]; +extern const char _PDCLIB_digits[]; +extern const char _PDCLIB_Xdigits[]; /* The worker for all printf() type of functions. The pointer spec should point to the introducing '%' of a conversion specifier. The status structure is to @@ -380,7 +380,7 @@ const char * _PDCLIB_scan( const char * spec, struct _PDCLIB_status_t * status ) /* Parsing any fopen() style filemode string into a number of flags. */ unsigned int _PDCLIB_filemode( const char * mode ); -/* Sanity checking and preparing of read buffer, should be called first thing +/* Sanity checking and preparing of read buffer, should be called first thing by any stdio read-data function. Returns 0 on success, EOF on error. On error, EOF / error flags and errno are set appropriately. @@ -453,5 +453,7 @@ _PDCLIB_static_assert( sizeof( sizeof( int ) ) == sizeof( _PDCLIB_size ), "Compi int _PDCLIB_assert_array[2]; _PDCLIB_static_assert( sizeof( &_PDCLIB_assert_array[1] - &_PDCLIB_assert_array[0] ) == sizeof( _PDCLIB_ptrdiff ), "Compiler disagrees on _PDCLIB_ptrdiff." ); +_PDCLIB_static_assert( sizeof( void * ) == sizeof( _PDCLIB_intmax_t ), "Compiler disagrees on _PDCLIB_intmax_t." ); +_PDCLIB_static_assert( sizeof( void * ) == sizeof( _PDCLIB_uintmax_t ), "Compiler disagrees on _PDCLIB_uintmax_t." ); #endif