mirror of
https://github.com/cc65/cc65.git
synced 2026-04-26 13:18:31 +00:00
add underscores to _poserror and _stroserror
This commit is contained in:
@@ -39,10 +39,10 @@
|
||||
|
||||
|
||||
|
||||
void __fastcall__ _poserror (const char* msg)
|
||||
void __fastcall__ __poserror (const char* msg)
|
||||
{
|
||||
/* Fetch the message that corresponds to _oserror */
|
||||
const char* errormsg = _stroserror (_oserror);
|
||||
const char* errormsg = __stroserror (_oserror);
|
||||
|
||||
/* Different output depending on msg */
|
||||
if (msg) {
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
;
|
||||
; Ullrich von Bassewitz, 17.07.2002
|
||||
;
|
||||
; const char* __fastcall__ _stroserror (unsigned char errcode);
|
||||
; const char* __fastcall__ __stroserror (unsigned char errcode);
|
||||
; /* Map an operating system error number to an error message. */
|
||||
;
|
||||
|
||||
.export __stroserror
|
||||
.export ___stroserror
|
||||
.import __sys_oserrlist
|
||||
.importzp ptr1, tmp1
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
; and terminated by an entry with length zero that is returned if the
|
||||
; error code could not be found.
|
||||
|
||||
__stroserror:
|
||||
___stroserror:
|
||||
sta tmp1 ; Save the error code
|
||||
|
||||
ldy #<__sys_oserrlist
|
||||
|
||||
@@ -9,9 +9,9 @@
|
||||
#include <errno.h>
|
||||
#include <geos.h>
|
||||
|
||||
void __fastcall__ _poserror (const char* msg)
|
||||
void __fastcall__ __poserror (const char* msg)
|
||||
{
|
||||
const char *errmsg = _stroserror(_oserror);
|
||||
const char *errmsg = __stroserror(_oserror);
|
||||
|
||||
ExitTurbo();
|
||||
if (msg && *msg) {
|
||||
|
||||
Reference in New Issue
Block a user