X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=includes%2Finttypes.h;h=0c6830e6b963bed45279cf9e295c0d7b29716447;hb=e1c526e9bad3f6e69391e94059096145390508d3;hp=dc9af3540b99894c3bb7acfb5138f31b3a43681b;hpb=327639a3101db8d83fa81338b5f1455a07f15a60;p=pdclib diff --git a/includes/inttypes.h b/includes/inttypes.h old mode 100755 new mode 100644 index dc9af35..0c6830e --- a/includes/inttypes.h +++ b/includes/inttypes.h @@ -1,5 +1,3 @@ -/* $Id$ */ - /* 7.8 Format conversion of integer types This file is part of the Public Domain C Library (PDCLib). @@ -8,8 +6,8 @@ #ifndef _PDCLIB_INTTYPES_H #define _PDCLIB_INTTYPES_H _PDCLIB_INTTYPES_H - #include +_PDCLIB_BEGIN_EXTERN_C typedef struct _PDCLIB_imaxdiv_t imaxdiv_t; @@ -214,12 +212,12 @@ typedef struct _PDCLIB_imaxdiv_t imaxdiv_t; /* 7.8.2 Functions for greatest-width integer types */ /* Calculate the absolute value of j */ -intmax_t imaxabs( intmax_t j ); +intmax_t imaxabs( intmax_t j ) _PDCLIB_nothrow; /* Return quotient (quot) and remainder (rem) of an integer division in the imaxdiv_t struct. */ -imaxdiv_t imaxdiv( intmax_t numer, intmax_t denom ); +imaxdiv_t imaxdiv( intmax_t numer, intmax_t denom ) _PDCLIB_nothrow; /* Seperate the character array nptr into three parts: A (possibly empty) sequence of whitespace characters, a character representation of an integer @@ -243,10 +241,11 @@ imaxdiv_t imaxdiv( intmax_t numer, intmax_t denom ); /* This function is equivalent to strtol() / strtoul() in , but on the potentially larger type. */ -intmax_t strtoimax( const char * _PDCLIB_restrict nptr, char * * _PDCLIB_restrict endptr, int base ); -uintmax_t strtoumax( const char * _PDCLIB_restrict nptr, char * * _PDCLIB_restrict endptr, int base ); +intmax_t strtoimax( const char * _PDCLIB_restrict nptr, char * * _PDCLIB_restrict endptr, int base ) _PDCLIB_nothrow; +uintmax_t strtoumax( const char * _PDCLIB_restrict nptr, char * * _PDCLIB_restrict endptr, int base ) _PDCLIB_nothrow; /* TODO: wcstoimax(), wcstoumax() */ +_PDCLIB_END_EXTERN_C #endif