X-Git-Url: https://pd.if.org/git/?p=pdclib.old;a=blobdiff_plain;f=includes%2Ferrno.h;fp=functions%2F_PDCLIB%2FXdigits.c;h=2795fdf6c727128b247a0c742471e23a0f228ff6;hp=7568474248e90b78857d10ac88b9a961dfd41886;hb=0d54a75af25ca44411e7c4190cc2a93a390e61a2;hpb=18af9d0a4cd252433e0cbd5daf4640e325c9d0ab diff --git a/functions/_PDCLIB/Xdigits.c b/includes/errno.h similarity index 51% rename from functions/_PDCLIB/Xdigits.c rename to includes/errno.h index 7568474..2795fdf 100644 --- a/functions/_PDCLIB/Xdigits.c +++ b/includes/errno.h @@ -1,27 +1,23 @@ /* $Id$ */ -/* _PDCLIB_Xdigits +/* Errors 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 - -int main( void ) -{ - TESTCASE( strcmp( _PDCLIB_Xdigits, "0123456789ABCDEF" ) == 0 ); - return TEST_RESULTS; -} +#define ERANGE _PDCLIB_ERANGE +#define EDOM _PDCLIB_EDOM #endif +