X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=internals%2F_PDCLIB_int.h;h=1f37c13bedd915fe8d96f1b2318f5f8d40658609;hb=61c50ee9e390879904e28f6e041dc86f4a1a8cd7;hp=24accb0da68e221d6f34821649f9cbb79a658257;hpb=5610f07dea92e0a4d1b558d19e82fc491954e23d;p=pdclib.old diff --git a/internals/_PDCLIB_int.h b/internals/_PDCLIB_int.h index 24accb0..1f37c13 100644 --- a/internals/_PDCLIB_int.h +++ b/internals/_PDCLIB_int.h @@ -85,7 +85,7 @@ #if _PDCLIB_LONG_BYTES == 4 #define _PDCLIB_LONG_MAX 0x7fffffffL #define _PDCLIB_LONG_MIN (-0x7fffffffL - 1L) -#define _PDCLIB_ULONG_MAX 0xffffffffUL +#define _PDCLIB_ULONG_MAX 0xffffffffUL #elif _PDCLIB_LONG_BYTES == 8 #define _PDCLIB_LONG_MAX 0x7fffffffffffffffL #define _PDCLIB_LONG_MIN (-0x7fffffffffffffffL - 1L) @@ -251,3 +251,13 @@ typedef unsigned _PDCLIB_intmax _PDCLIB_uintmax_t; #define _PDCLIB_UINTMAX_MAX concat( concat( _PDCLIB_U, _PDCLIB_INTMAX ), _MAX ) #define _PDCLIB_INTMAX_C( value ) concat( value, _PDCLIB_INTMAX_LITERAL ) #define _PDCLIB_UINTMAX_C( value ) concat( value, concat( u, _PDCLIB_INTMAX_LITERAL ) ) + +/* -------------------------------------------------------------------------- */ +/* Declaration of helper functions (implemented in functions/_PDCLIB). */ +/* -------------------------------------------------------------------------- */ + +/* This is the main function called by atoi(), atol() and atoll(). */ +_PDCLIB_intmax_t _PDCLIB_atomax( const char * s ); + +/* Digits array used by various integer conversion functions in */ +extern char _PDCLIB_digits[];