]> pd.if.org Git - pdclib/blobdiff - includes/errno.h
Merged branch stdio_rewrite back into trunk.
[pdclib] / includes / errno.h
similarity index 51%
rename from functions/_PDCLIB/Xdigits.c
rename to includes/errno.h
index 7568474248e90b78857d10ac88b9a961dfd41886..2795fdf6c727128b247a0c742471e23a0f228ff6 100644 (file)
@@ -1,27 +1,23 @@
 /* $Id$ */
 
-/* _PDCLIB_Xdigits
+/* Errors <errno.h>
 
    This file is part of the Public Domain C Library (PDCLib).
    Permission is granted to use, modify, and / or redistribute at will.
 */
 
+#ifndef _PDCLIB_ERRNO_H
+#define _PDCLIB_ERRNO_H _PDCLIB_ERRNO_H
+
 #ifndef _PDCLIB_INT_H
 #define _PDCLIB_INT_H _PDCLIB_INT_H
 #include <_PDCLIB_int.h>
 #endif
 
-char _PDCLIB_Xdigits[] = "0123456789ABCDEF";
-
-#ifdef TEST
-#include <_PDCLIB_test.h>
+#define errno (*_PDCLIB_errno_func())
 
-#include <string.h>
-
-int main( void )
-{
-    TESTCASE( strcmp( _PDCLIB_Xdigits, "0123456789ABCDEF" ) == 0 );
-    return TEST_RESULTS;
-}
+#define ERANGE _PDCLIB_ERANGE
+#define EDOM _PDCLIB_EDOM
 
 #endif
+