From: cuz Date: Tue, 17 Jun 2003 20:52:33 +0000 (+0000) Subject: Renamed one letter label X-Git-Tag: V2.12.0~1495 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c63d25f43f75155796c3f0c55d8e17ee461940f2;p=cc65 Renamed one letter label git-svn-id: svn://svn.cc65.org/cc65/trunk@2223 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/libsrc/common/_fopen.s b/libsrc/common/_fopen.s index abf67dd21..9010139e4 100644 --- a/libsrc/common/_fopen.s +++ b/libsrc/common/_fopen.s @@ -22,8 +22,8 @@ .proc __fopen - sta f - stx f+1 ; Save f + sta file + stx file ; Save f ; Get a pointer to the mode string @@ -97,15 +97,15 @@ modeok: ldy #$00 ; Open call succeeded -openok: ldy f +openok: ldy file sty ptr1 - ldy f+1 + ldy file+1 sty ptr1+1 ldy #_FILE_f_fd - sta (ptr1),y ; f->f_fd = fd; + sta (ptr1),y ; file->f_fd = fd; ldy #_FILE_f_flags lda #_FOPEN - sta (ptr1),y ; f->f_flags = _FOPEN; + sta (ptr1),y ; file->f_flags = _FOPEN; ; Return the pointer to the file structure @@ -119,6 +119,6 @@ openok: ldy f ; Data .bss -f: .res 2 +file: .res 2 diff --git a/libsrc/common/fread.s b/libsrc/common/fread.s index 9ef6a7c4b..781bc1a02 100644 --- a/libsrc/common/fread.s +++ b/libsrc/common/fread.s @@ -1,7 +1,7 @@ ; ; Ullrich von Bassewitz, 22.11.2002 ; -; size_t __fastcall__ fread (void* buf, size_t size, size_t count, FILE* f); +; size_t __fastcall__ fread (void* buf, size_t size, size_t count, FILE* file); ; /* Read from a file */ ; @@ -22,11 +22,11 @@ .proc _fread -; Save f and place it into ptr1 +; Save file and place it into ptr1 - sta f + sta file sta ptr1 - stx f+1 + stx file+1 stx ptr1+1 ; Check if the file is open @@ -47,7 +47,7 @@ ; Check if the stream is in an error state -@L2: lda (ptr1),y ; get f->f_flags again +@L2: lda (ptr1),y ; get file->f_flags again and #_FERROR bne @L1 @@ -56,12 +56,12 @@ ldy #_FILE_f_fd lda (ptr1),y ldx #$00 - jsr pushax ; f->f_fd + jsr pushax ; file->f_fd ldy #9 jsr pushwysp ; buf -; Stack is now: buf/size/count/f->fd/buf +; Stack is now: buf/size/count/file->fd/buf ; Calculate the number of bytes to read: count * size ldy #7 @@ -100,9 +100,9 @@ lda #_FERROR @L4: sta tmp1 - lda f + lda file sta ptr1 - lda f+1 + lda file+1 sta ptr1+1 ldy #_FILE_f_flags lda (ptr1),y @@ -137,5 +137,5 @@ ; Data .bss -f: .res 2 +file: .res 2 diff --git a/libsrc/common/fwrite.s b/libsrc/common/fwrite.s index c3ffd8fc3..0efc8fc69 100644 --- a/libsrc/common/fwrite.s +++ b/libsrc/common/fwrite.s @@ -1,7 +1,7 @@ ; ; Ullrich von Bassewitz, 22.11.2002 ; -; size_t __fastcall__ fwrite (const void* buf, size_t size, size_t count, FILE* f); +; size_t __fastcall__ fwrite (const void* buf, size_t size, size_t count, FILE* file); ; /* Write to a file */ ; @@ -22,11 +22,11 @@ .proc _fwrite -; Save f and place it into ptr1 +; Save file and place it into ptr1 - sta f + sta file sta ptr1 - stx f+1 + stx file+1 stx ptr1+1 ; Check if the file is open @@ -47,7 +47,7 @@ ; Check if the stream is in an error state -@L2: lda (ptr1),y ; get f->f_flags again +@L2: lda (ptr1),y ; get file->f_flags again and #_FERROR bne @L1 @@ -56,12 +56,12 @@ ldy #_FILE_f_fd lda (ptr1),y ldx #$00 - jsr pushax ; f->f_fd + jsr pushax ; file->f_fd ldy #9 jsr pushwysp ; buf -; Stack is now: buf/size/count/f->fd/buf +; Stack is now: buf/size/count/file->fd/buf ; Calculate the number of bytes to write: count * size ldy #7 @@ -98,9 +98,9 @@ ; Error in write. Set the stream error flag and bail out. _oserror and/or ; errno are already set by write(). - lda f + lda file sta ptr1 - lda f+1 + lda file+1 sta ptr1+1 ldy #_FILE_f_flags lda (ptr1),y @@ -124,5 +124,5 @@ ; Data .bss -f: .res 2 +file: .res 2