| \ : delete-file 2drop 0 ; |
\ : delete-file 2drop 0 ; |
| |
|
| require struct.fs |
require struct.fs |
| |
require mkdir.fs |
| |
|
| \ c-function-ft word body: |
\ c-function-ft word body: |
| struct |
struct |
| open-wrappers dup if |
open-wrappers dup if |
| lib-handle-addr @ ! |
lib-handle-addr @ ! |
| else |
else |
| |
libcc-named-dir $1ff mkdir-parents drop |
| drop c-library-name-create |
drop c-library-name-create |
| endif ; |
endif ; |
| |
|
| : c-tmp-library-name ( c-addr u -- ) |
: c-tmp-library-name ( c-addr u -- ) |
| \ set up filenames for a new library; c-addr u is the basename of |
\ set up filenames for a new library; c-addr u is the basename of |
| \ the library |
\ the library |
| libcc-tmp-dir prepend-dirname c-library-name-setup c-library-name-create ; |
libcc-tmp-dir 2dup $1ff mkdir-parents drop |
| |
prepend-dirname c-library-name-setup c-library-name-create ; |
| |
|
| : lib-handle ( -- addr ) |
: lib-handle ( -- addr ) |
| lib-handle-addr @ @ ; |
lib-handle-addr @ @ ; |