From: cuz Date: Sat, 3 May 2003 08:49:35 +0000 (+0000) Subject: Move FOPEN_MAX from _file.inc into stdio.inc X-Git-Tag: V2.12.0~1579 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=81b37f5443e1012e2337cf288de8e37923ad765a;p=cc65 Move FOPEN_MAX from _file.inc into stdio.inc git-svn-id: svn://svn.cc65.org/cc65/trunk@2135 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/asminc/_file.inc b/asminc/_file.inc index 14a9412a7..daf33a987 100644 --- a/asminc/_file.inc +++ b/asminc/_file.inc @@ -12,15 +12,12 @@ _FILE_f_fd = $00 _FILE_f_flags = $01 _FILE_size = $02 -; Flags field +; Flags field _FCLOSED = $00 _FOPEN = $01 _FEOF = $02 _FERROR = $04 _FPUSHBACK = $08 - -; Maximum number of open files (size of table) -FOPEN_MAX = 8 ; File table .global __filetab diff --git a/asminc/stdio.inc b/asminc/stdio.inc index fcf119b7e..95bb4a184 100644 --- a/asminc/stdio.inc +++ b/asminc/stdio.inc @@ -42,13 +42,15 @@ _IONBF = 2 BUFSIZ = 256 EOF = -1 FILENAME_MAX = 16 -FOPEN_MAX = 8 L_tmpnam = (FILENAME_MAX + 1) SEEK_CUR = 0 SEEK_END = 1 SEEK_SET = 2 TMP_MAX = 256 +; Maximum number of open files (size of the file table) +FOPEN_MAX = 8 + ;---------------------------------------------------------------------------- ; External variables