X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=includes%2Ferrno.h;h=039368c8f53ec2878fbaf0d151fe164e9f7f4af5;hb=7af1f0a20869ff41a951132d14bcc5f6b647fd07;hp=873166aab68a4c18d074dbd4ac2e2bdb5ae58e67;hpb=3f035390c831709593428e88bb1c640604434d60;p=pdclib.old diff --git a/includes/errno.h b/includes/errno.h index 873166a..039368c 100644 --- a/includes/errno.h +++ b/includes/errno.h @@ -1,25 +1,21 @@ -// ---------------------------------------------------------------------------- -// $Id$ -// ---------------------------------------------------------------------------- -// Public Domain C Library - http://pdclib.sourceforge.net -// This code is Public Domain. Use, modify, and redistribute at will. -// ---------------------------------------------------------------------------- -// Provides 'errno', the auxiliary error handling of the standard library. -// ---------------------------------------------------------------------------- +/* $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 +#include <_PDCLIB_int.h> +_PDCLIB_BEGIN_EXTERN_C -// ---------------------------------------------------------------------------- -// 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 + +_PDCLIB_END_EXTERN_C +#endif -#endif // __ERRNO_H