]> pd.if.org Git - pdclib.old/blobdiff - includes/inttypes.h
Modify various POSIX platform files so you can build on top of glibc for testing
[pdclib.old] / includes / inttypes.h
old mode 100755 (executable)
new mode 100644 (file)
index dc9af35..32dd629
@@ -8,8 +8,8 @@
 
 #ifndef _PDCLIB_INTTYPES_H
 #define _PDCLIB_INTTYPES_H _PDCLIB_INTTYPES_H
-
 #include <stdint.h>
+_PDCLIB_BEGIN_EXTERN_C
 
 typedef struct _PDCLIB_imaxdiv_t imaxdiv_t;
 
@@ -214,12 +214,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 +243,11 @@ imaxdiv_t imaxdiv( intmax_t numer, intmax_t denom );
 /* This function is equivalent to strtol() / strtoul() in <stdlib.h>, 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