no need to expose errno_opt

This commit is contained in:
rumbledethumps
2025-09-27 23:27:02 -07:00
parent e182d5d324
commit 23b8bafbf6
2 changed files with 1 additions and 5 deletions

View File

@@ -120,7 +120,6 @@ int phi2 (void);
int codepage (int); int codepage (int);
long lrand (void); long lrand (void);
int __fastcall__ stdin_opt (unsigned long ctrl_bits, unsigned char str_length); int __fastcall__ stdin_opt (unsigned long ctrl_bits, unsigned char str_length);
int __fastcall__ errno_opt (unsigned char platform);
int __fastcall__ read_xstack (void* buf, unsigned count, int fildes); int __fastcall__ read_xstack (void* buf, unsigned count, int fildes);
int __fastcall__ read_xram (unsigned buf, unsigned count, int fildes); int __fastcall__ read_xram (unsigned buf, unsigned count, int fildes);
int __fastcall__ write_xstack (const void* buf, unsigned count, int fildes); int __fastcall__ write_xstack (const void* buf, unsigned count, int fildes);

View File

@@ -8,7 +8,7 @@
.include "rp6502.inc" .include "rp6502.inc"
.include "errno.inc" .include "errno.inc"
.export ___errno, _errno_opt .export ___errno
.import _ria_call_int .import _ria_call_int
.constructor _errno_opt_constructor .constructor _errno_opt_constructor
@@ -20,9 +20,6 @@ ___errno := RIA_ERRNO
; Request the RIA use cc65 values for RIA_ERRNO ; Request the RIA use cc65 values for RIA_ERRNO
_errno_opt_constructor: _errno_opt_constructor:
lda #$01 ; 1 = cc65 lda #$01 ; 1 = cc65
; int __fastcall__ errno_opt (unsigned char platform);
_errno_opt:
sta RIA_A sta RIA_A
lda #RIA_OP_ERRNO_OPT lda #RIA_OP_ERRNO_OPT
jmp _ria_call_int jmp _ria_call_int