X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=includes%2Ferrno.h;h=e0db955f556cf4040faf40b26983787a40a15d1c;hb=d865c4403fc91d1f1ac95ba76febcee9f429bb97;hp=e85d3024b670f3dd31f750c1d08e23b0228a3e72;hpb=70f1c6f7c9d515ef426da68973511f46de57005a;p=pdclib diff --git a/includes/errno.h b/includes/errno.h index e85d302..e0db955 100644 --- a/includes/errno.h +++ b/includes/errno.h @@ -1,27 +1,17 @@ -// ---------------------------------------------------------------------------- -// $Id$ -// ---------------------------------------------------------------------------- -// Public Domain C Library - http://pdclib.sourceforge.net -// This code is Public Domain. Use, modify, and redistribute at will. -// ---------------------------------------------------------------------------- -// Errors -// ---------------------------------------------------------------------------- +/* Errors -#ifndef __ERRNO_H -#define __ERRNO_H __ERRNO_H + This file is part of the Public Domain C Library (PDCLib). + Permission is granted to use, modify, and / or redistribute at will. +*/ -// TODO: Documentation +#ifndef _PDCLIB_ERRNO_H +#define _PDCLIB_ERRNO_H _PDCLIB_ERRNO_H -// ---------------------------------------------------------------------------- -// DECLARATIONS +#include "_PDCLIB_int.h" -extern int errno; +#define errno (*_PDCLIB_errno_func()) -// ---------------------------------------------------------------------------- -// DEFINES +#define ERANGE _PDCLIB_ERANGE +#define EDOM _PDCLIB_EDOM -#define EDOM 1 // domain error -#define EILSEQ 2 // illegal (multibyte) sequence -#define ERANGE 3 // range error - -#endif // __ERRNO_H +#endif