2003-08-12 13:51:11 +00:00
|
|
|
;
|
2005-04-16 14:43:22 +00:00
|
|
|
; Ullrich von Bassewitz, 2003-08-12, 2005-04-16
|
2003-08-12 13:51:11 +00:00
|
|
|
;
|
|
|
|
; Place to store the current working directory.
|
2005-04-16 14:43:22 +00:00
|
|
|
; NOTE: Some of the code working with directories is not able to handle
|
2003-08-12 13:58:17 +00:00
|
|
|
; strings longer than 255 chars, so don't make __cwd_buf_size larger than 256
|
|
|
|
; without checking the other sources.
|
2005-04-16 14:43:22 +00:00
|
|
|
;
|
|
|
|
; __cwd is initialized by a platform specific function named "initcwd" called
|
|
|
|
; by the constructor defined in this module.
|
|
|
|
;
|
2003-08-12 13:51:11 +00:00
|
|
|
|
|
|
|
.export __cwd
|
|
|
|
.export __cwd_buf_size
|
2005-04-16 14:43:22 +00:00
|
|
|
.constructor cwd_init
|
|
|
|
|
|
|
|
.import initcwd
|
2003-08-12 13:51:11 +00:00
|
|
|
|
|
|
|
__cwd_buf_size = 64
|
2005-04-16 14:43:22 +00:00
|
|
|
cwd_init := initcwd
|
2003-08-12 13:51:11 +00:00
|
|
|
|
|
|
|
.bss
|
|
|
|
|
|
|
|
__cwd: .res __cwd_buf_size
|
|
|
|
|
|
|
|
|