]> git.sur5r.net Git - cc65/commitdiff
Removed the mapping function called previously by the errno macro. It will be
authoruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 3 Jun 2010 20:03:52 +0000 (20:03 +0000)
committeruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 3 Jun 2010 20:03:52 +0000 (20:03 +0000)
replaced by a mapping in the functions itself.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4685 b7a2c559-68d2-44c3-8de9-860c34a00d81

include/errno.h

index edb4a0e8779c5416c8790ccf21cbea54c5a27b76..cacbe0e2f92377b919f50546e4a7d2dfb7cb88be 100644 (file)
@@ -6,10 +6,10 @@
 /*                                                                           */
 /*                                                                           */
 /*                                                                           */
-/* (C) 1998-2003 Ullrich von Bassewitz                                       */
-/*               Römerstrasse 52                                             */
-/*               D-70794 Filderstadt                                         */
-/* EMail:        uz@cc65.org                                                 */
+/* (C) 1998-2010, Ullrich von Bassewitz                                      */
+/*                Roemerstrasse 52                                           */
+/*                D-70794 Filderstadt                                        */
+/* EMail:         uz@cc65.org                                                */
 /*                                                                           */
 /*                                                                           */
 /* This software is provided 'as-is', without any expressed or implied       */
 /* Operating system specific error codes */
 extern unsigned char _oserror;
 
-/* Mapper function, don't call directly */
-void _maperrno (void);
-
-/* This one is called under the hood. User callable. */
+/* The following functions maps an operating system specific error code (for
+ * example from _oserror) into one of the E... codes below. It is user
+ * callable.
+ */
 int __fastcall__ _osmaperrno (unsigned char oserror);
 
 /* System error codes go here */
 extern int _errno;
 
-/* errno must be a macro, here the mapper is called */
-#define errno          (_maperrno(), _errno)
+/* errno must be a macro */
+#define errno   _errno