Make the main frame "extendable" allowing us to not have locals until needed
This commit is contained in:
@@ -16,7 +16,6 @@ use heap::Heap;
|
||||
use netstack::NetStack;
|
||||
|
||||
pub const MAGIC_HEADER: u32 = 0x1DEA_DFAD;
|
||||
const ANTI_BS_SIZE: usize = 0xFF;
|
||||
|
||||
pub struct Machine {
|
||||
pub wide: bool,
|
||||
@@ -41,7 +40,7 @@ impl Machine {
|
||||
halted: false,
|
||||
pool,
|
||||
block,
|
||||
frame: vec![Frame::new(ANTI_BS_SIZE, 0)],
|
||||
frame: vec![Frame::new_extendable(0)],
|
||||
stream_in: Box::new(::std::io::stdin()),
|
||||
stream_out: Arc::new(Mutex::new(::std::io::stdout())),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user