]> git.sur5r.net Git - cc65/commitdiff
Leave __cwd_buf_size intact
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Tue, 19 Apr 2005 11:48:05 +0000 (11:48 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Tue, 19 Apr 2005 11:48:05 +0000 (11:48 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@3467 b7a2c559-68d2-44c3-8de9-860c34a00d81

libsrc/common/_cwd.s

index 19e1af7033b9155945022f5f804d29a6d77e1d9f..a3ee362f6438f5cae12943ce73d6828d59f26a13 100644 (file)
@@ -8,23 +8,25 @@
 ;
 
                .export         __cwd
+        .export         __cwd_buf_size
         .constructor    cwd_init
 
         .import         initcwd
 
         .include        "stdio.inc"
-
+                                      
+        __cwd_buf_size  = FILENAME_MAX
 
         cwd_init        := initcwd
 
 .bss
 
-__cwd:  .res   FILENAME_MAX
+__cwd:  .res   __cwd_buf_size
 
 
 ; 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
 ; 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"