X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=includes%2Ferrno.h;h=fb813eec46a638a99d6f5c02b375b2cf2409de66;hb=9f87d9e27e74d9e06e0c93114ffd70a45ee152fa;hp=0569284da550613d2501614a804705919c517bf1;hpb=ac3f809c3c10347c110fac3db93af0954eda98bb;p=pdclib diff --git a/includes/errno.h b/includes/errno.h index 0569284..fb813ee 100644 --- a/includes/errno.h +++ b/includes/errno.h @@ -1,25 +1,20 @@ -// ---------------------------------------------------------------------------- -// $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 -// ---------------------------------------------------------------------------- -// DECLARATIONS + This file is part of the Public Domain C Library (PDCLib). + Permission is granted to use, modify, and / or redistribute at will. +*/ -extern int errno; +#ifndef _PDCLIB_ERRNO_H +#define _PDCLIB_ERRNO_H _PDCLIB_ERRNO_H -// ---------------------------------------------------------------------------- -// DEFINES +#include <_PDCLIB_int.h> -#define EDOM 1 // domain error -#define EILSEQ 2 // illegal (multibyte) sequence -#define ERANGE 3 // range error +#define errno (*_PDCLIB_errno_func()) + +#define ERANGE _PDCLIB_ERANGE +#define EDOM _PDCLIB_EDOM + +#endif -#endif // __ERRNO_H