]> pd.if.org Git - pdclib/blobdiff - includes/errno.h
Whitespace cleanups.
[pdclib] / includes / errno.h
index 873166aab68a4c18d074dbd4ac2e2bdb5ae58e67..e0db955f556cf4040faf40b26983787a40a15d1c 100644 (file)
@@ -1,25 +1,17 @@
-// ----------------------------------------------------------------------------
-// $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.
-// ----------------------------------------------------------------------------
+/* Errors <errno.h>
 
-#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.
+*/
 
-// ----------------------------------------------------------------------------
-// DECLARATIONS
+#ifndef _PDCLIB_ERRNO_H
+#define _PDCLIB_ERRNO_H _PDCLIB_ERRNO_H
 
-extern int errno;
+#include "_PDCLIB_int.h"
 
-// ----------------------------------------------------------------------------
-// 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 // __ERRNO_H
+#endif