From: cpg Date: Sun, 25 Jun 2000 01:40:29 +0000 (+0000) Subject: renamed fd_table, fd_index to __fd_table and __fd_index (C naming) X-Git-Tag: V2.12.0~3391 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=695f260449c171ff9022cd8360c6ed926f41a4c0;p=cc65 renamed fd_table, fd_index to __fd_table and __fd_index (C naming) git-svn-id: svn://svn.cc65.org/cc65/trunk@122 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/libsrc/atari/fdtable.s b/libsrc/atari/fdtable.s index 1a428764a..1cf574136 100644 --- a/libsrc/atari/fdtable.s +++ b/libsrc/atari/fdtable.s @@ -14,15 +14,15 @@ .export newfd .export getfd - .export _fd_table,_fd_index ; for test purposes + .export ___fd_table,___fd_index ; for test(debug purposes only .data MAX_FD_INDEX = 12 -_fd_index: +___fd_index: fd_index: ; fd number is index into this table, entry's value specifies the fd_table entry .res MAX_FD_INDEX,$ff -_fd_table: +___fd_table: fd_table: ; each entry represents an open iocb .byte 0,0,'E',0 ; system console, app starts with opened iocb #0 for E: .byte 0,$ff,0,0 diff --git a/testcode/lib/ft.c b/testcode/lib/ft.c index e62a32517..c887e1c87 100644 --- a/testcode/lib/ft.c +++ b/testcode/lib/ft.c @@ -24,14 +24,14 @@ extern int getsp(void); /* is provided in getsp.s */ #ifdef __ATARI__ /* Atari's fd indirection table */ -extern char fd_index[]; +extern char __fd_index[]; struct fd_t { char usage; char iocb; char dev; char flag; }; -extern struct fd_t fd_table[]; +extern struct fd_t __fd_table[]; #endif /* #ifdef __ATARI__ */ int main(int argc,char **argv) @@ -74,13 +74,13 @@ int main(int argc,char **argv) printf("open success -- handle = $%x, sp = %d\n",fd,csp); #ifdef __ATARI__ printf("fd_index:\n "); - for (i=0; i<12; i++) printf("%02X ",fd_index[i]); + for (i=0; i<12; i++) printf("%02X ",__fd_index[i]); printf("\nfd_table:\n"); for (i=0; i<8; i++) { printf(" usa: %d, iocb: %02X, dev: %02X\n", - fd_table[i].usage, - fd_table[i].iocb, - fd_table[i].dev); + __fd_table[i].usage, + __fd_table[i].iocb, + __fd_table[i].dev); } #endif /* #ifdef __ATARI__ */ lr = read(fd,buf,16); /* read first 16 bytes */