Move File module and tests to the shell project

Signed-off-by: Ava Affine <ava@sunnypup.io>
This commit is contained in:
Ava Apples Affine 2024-07-12 21:07:04 -07:00
parent 6d2925984f
commit 74f73fb493
4 changed files with 87 additions and 82 deletions

View file

@ -31,8 +31,10 @@ use crate::posix;
#[path = "window.rs"]
mod window;
#[path = "store.rs"]
#[path = "store.rs"]
mod store;
#[path = "file.rs"]
mod file;
pub const CONSOLE_XDIM_VNAME: &str = "_FLESH_WIDTH";
pub const CONSOLE_YDIM_VNAME: &str = "_FLESH_HEIGHT";
@ -63,6 +65,7 @@ fn prompt_delimiter_default_callback(_: &Seg, _: &mut SymTable) -> Result<Ctr, T
pub fn static_stdlib_overwrites(syms: &mut SymTable) {
static_stdlib(syms);
window::add_window_lib_funcs(syms);
file::add_file_lib(syms);
syms.insert(
"call".to_string(),