mumufs/lib.rs
1#![allow(unused_attributes)]
2
3use std::ffi::c_void;
4use core_mumu::parser::interpreter::Interpreter;
5
6mod exists;
7use exists::register_fs_exists;
8
9#[no_mangle]
10pub unsafe extern "C" fn Cargo_lock(
11 interp_ptr: *mut c_void,
12 _extra_str: *const c_void,
13) -> i32 {
14 if interp_ptr.is_null() {
15 return 1;
16 }
17 let interp = &mut *(interp_ptr as *mut Interpreter);
18
19 register_fs_exists(interp);
20
21 0
22}
23