Mutable argv

This commit is contained in:
Jeremy Soller
2018-12-02 20:14:33 -07:00
parent 925d9f6bbf
commit e8377d259a
2 changed files with 32 additions and 20 deletions
+5
View File
@@ -37,6 +37,11 @@ pub mod types;
#[no_mangle]
pub static mut errno: c_int = 0;
#[allow(non_upper_case_globals)]
pub static mut argv: *mut *mut c_char = ptr::null_mut();
#[allow(non_upper_case_globals)]
pub static mut inner_argv: Vec<*mut c_char> = Vec::new();
#[allow(non_upper_case_globals)]
#[no_mangle]
pub static mut environ: *mut *mut c_char = ptr::null_mut();