Removed the mapping function called previously by the errno macro. It will be
replaced by a mapping in the functions itself. git-svn-id: svn://svn.cc65.org/cc65/trunk@4685 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -6,8 +6,8 @@
|
|||||||
/* */
|
/* */
|
||||||
/* */
|
/* */
|
||||||
/* */
|
/* */
|
||||||
/* (C) 1998-2003 Ullrich von Bassewitz */
|
/* (C) 1998-2010, Ullrich von Bassewitz */
|
||||||
/* R<EFBFBD>merstrasse 52 */
|
/* Roemerstrasse 52 */
|
||||||
/* D-70794 Filderstadt */
|
/* D-70794 Filderstadt */
|
||||||
/* EMail: uz@cc65.org */
|
/* EMail: uz@cc65.org */
|
||||||
/* */
|
/* */
|
||||||
@@ -41,17 +41,17 @@
|
|||||||
/* Operating system specific error codes */
|
/* Operating system specific error codes */
|
||||||
extern unsigned char _oserror;
|
extern unsigned char _oserror;
|
||||||
|
|
||||||
/* Mapper function, don't call directly */
|
/* The following functions maps an operating system specific error code (for
|
||||||
void _maperrno (void);
|
* example from _oserror) into one of the E... codes below. It is user
|
||||||
|
* callable.
|
||||||
/* This one is called under the hood. User callable. */
|
*/
|
||||||
int __fastcall__ _osmaperrno (unsigned char oserror);
|
int __fastcall__ _osmaperrno (unsigned char oserror);
|
||||||
|
|
||||||
/* System error codes go here */
|
/* System error codes go here */
|
||||||
extern int _errno;
|
extern int _errno;
|
||||||
|
|
||||||
/* errno must be a macro, here the mapper is called */
|
/* errno must be a macro */
|
||||||
#define errno (_maperrno(), _errno)
|
#define errno _errno
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user