1
0
mirror of https://github.com/cc65/cc65.git synced 2024-11-19 06:31:31 +00:00

Leave __cwd_buf_size intact

git-svn-id: svn://svn.cc65.org/cc65/trunk@3467 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz 2005-04-19 11:48:05 +00:00
parent ccd4955384
commit 00633945b8

View File

@ -8,23 +8,25 @@
; ;
.export __cwd .export __cwd
.export __cwd_buf_size
.constructor cwd_init .constructor cwd_init
.import initcwd .import initcwd
.include "stdio.inc" .include "stdio.inc"
__cwd_buf_size = FILENAME_MAX
cwd_init := initcwd cwd_init := initcwd
.bss .bss
__cwd: .res FILENAME_MAX __cwd: .res __cwd_buf_size
; NOTE: Some of the code working with directories is not able to handle ; NOTE: Some of the code working with directories is not able to handle
; strings longer than 255 chars, so don't make __cwd larger than 256 without ; strings longer than 255 chars, so don't make __cwd larger than 256 without
; checking the other sources. ; checking the other sources.
.assert FILENAME_MAX < 256, error, "FILENAME_MAX must not be > 255" .assert __cwd_buf_size < 256, error, "__cwd_buf_size must not be > 255"