X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=includes%2Ferrno.h;h=5bd397d12424d23e250e4976a20bbddf06ecc8ee;hp=e85d3024b670f3dd31f750c1d08e23b0228a3e72;hb=1d9d92ba957a0b8307c9a65c35867fde68e6533b;hpb=8c8750c2826684c2420571a8007b9606f72c9040 diff --git a/includes/errno.h b/includes/errno.h index e85d302..5bd397d 100644 --- a/includes/errno.h +++ b/includes/errno.h @@ -1,27 +1,34 @@ -// ---------------------------------------------------------------------------- -// $Id$ -// ---------------------------------------------------------------------------- -// Public Domain C Library - http://pdclib.sourceforge.net -// This code is Public Domain. Use, modify, and redistribute at will. -// ---------------------------------------------------------------------------- -// Errors -// ---------------------------------------------------------------------------- +/* ---------------------------------------------------------------------------- + * $Id$ + * ---------------------------------------------------------------------------- + * Public Domain C Library - http://pdclib.sourceforge.net + * This code is Public Domain. Use, modify, and redistribute at will. + * ---------------------------------------------------------------------------- + * Errors + * --------------------------------------------------------------------------*/ -#ifndef __ERRNO_H -#define __ERRNO_H __ERRNO_H +#ifndef _ERRNO_H +#define _ERRNO_H _ERRNO_H -// TODO: Documentation +#ifndef _PERSONALITY +#define _PERSONALITY _PERSONALITY +#include "__personality.h" +#endif /* _PERSONALITY */ -// ---------------------------------------------------------------------------- -// DECLARATIONS +/* TODO: Documentation */ + +/* ---------------------------------------------------------------------------- + * DECLARATIONS + * --------------------------------------------------------------------------*/ extern int errno; -// ---------------------------------------------------------------------------- -// DEFINES +/* ---------------------------------------------------------------------------- + * DEFINES + * --------------------------------------------------------------------------*/ -#define EDOM 1 // domain error -#define EILSEQ 2 // illegal (multibyte) sequence -#define ERANGE 3 // range error +#define EDOM _EDOM /* domain error */ +#define EILSEQ _EILSEQ /* illegal (multibyte) sequence */ +#define ERANGE _ERANGE /* range error */ -#endif // __ERRNO_H +#endif /* _ERRNO_H */