]> pd.if.org Git - pdclib.old/commitdiff
errno: parts of old errno system were left in _PDCLIB_int.h
authorOwen Shepherd <owen.shepherd@e43.eu>
Mon, 7 Jan 2013 15:08:50 +0000 (15:08 +0000)
committerOwen Shepherd <owen.shepherd@e43.eu>
Mon, 7 Jan 2013 15:08:50 +0000 (15:08 +0000)
internals/_PDCLIB_int.h
opt/tss_errno/errno.h

index 9ff9e69e321b3a1809747449bed85d697984e1ed..0c48f33755a6c2e728a329a28f4b464bffcd6a44 100644 (file)
@@ -309,22 +309,6 @@ _PDCLIB_uintmax_t _PDCLIB_strtox_main( const char ** p, unsigned int base, _PDCL
 extern char _PDCLIB_digits[];
 extern char _PDCLIB_Xdigits[];
 
-/* -------------------------------------------------------------------------- */
-/* errno                                                                      */
-/* -------------------------------------------------------------------------- */
-
-/* If PDCLib would call its error number "errno" directly, there would be no way
-   to catch its value from underlying system calls that also use it (i.e., POSIX
-   operating systems). That is why we use an internal name, providing a means to
-   access it through <errno.h>.
-*/
-extern int _PDCLIB_errno;
-
-/* A mechanism for delayed evaluation. (Not sure if this is really necessary, so
-   no detailed documentation on the "why".)
-*/
-int * _PDCLIB_errno_func( void ) _PDCLIB_nothrow;
-
 /* -------------------------------------------------------------------------- */
 /* locale / wchar / uchar                                                     */
 /* -------------------------------------------------------------------------- */
index 27eacb7048bdefc957fd3cd59d5537fe2c24eb13..37da36f01bb47f4669eb689fee039c684f18fcf9 100644 (file)
@@ -9,6 +9,7 @@
 #include <_PDCLIB_int.h>
 _PDCLIB_BEGIN_EXTERN_C
 
+extern int * _PDCLIB_errno( void );
 #define errno (*_PDCLIB_errno())
 
 /* C99 */