1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-09 06:29:38 +00:00

stdio.inc,stdio.h: set CBM PATH_MAX/FILENAME_MAX value to 255

Some parts of the runtime library cannot handle larger paths.
This commit is contained in:
Christian Groessler 2021-06-10 16:17:43 +02:00 committed by Oliver Schmidt
parent ae9101961e
commit c90c3c9133
2 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ FILENAME_MAX = 64+1
.elseif .defined(__ATARI__) .elseif .defined(__ATARI__)
FILENAME_MAX = 63+1 FILENAME_MAX = 63+1
.elseif .defined(__CBM__) .elseif .defined(__CBM__)
FILENAME_MAX = 256+1 FILENAME_MAX = 255
.elseif .defined(__LUNIX__) .elseif .defined(__LUNIX__)
FILENAME_MAX = 80+1 FILENAME_MAX = 80+1
.elseif .defined(__TELESTRAT__) .elseif .defined(__TELESTRAT__)

View File

@ -69,7 +69,7 @@
#elif defined(__ATARI__) #elif defined(__ATARI__)
# define PATH_MAX (63+1) # define PATH_MAX (63+1)
#elif defined(__CBM__) #elif defined(__CBM__)
# define PATH_MAX (256+1) # define PATH_MAX (255) /* should be 256+1, see libsrc/common/_cmd.s why it's not */
#elif defined(__LUNIX__) #elif defined(__LUNIX__)
# define PATH_MAX (80+1) # define PATH_MAX (80+1)
#elif defined(__TELESTRAT__) #elif defined(__TELESTRAT__)