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