@@ -190,7 +190,9 @@ pub const INTER_CHAR_TEXT: u16 = 17;
190190pub const WRITE_TEXT : u16 = 18 ;
191191pub const TECTONIC_CODA_TEXT : u16 = 19 ;
192192
193+ pub const EOP : u8 = 140 ;
193194pub const POP : u8 = 142 ;
195+ pub const POST : u8 = 248 ;
194196
195197pub const TOKEN_LIST : u16 = 0 ;
196198
@@ -239,6 +241,7 @@ pub struct EngineCtx {
239241 pub ( crate ) use_err_help : bool ,
240242 pub ( crate ) help_ptr : usize ,
241243 pub ( crate ) help_line : [ * const libc:: c_char ; 6 ] ,
244+ pub ( crate ) mag_set : i32 ,
242245
243246 pub ( crate ) eqtb : Vec < MemoryWord > ,
244247 pub ( crate ) prim : Box < [ B32x2 ; PRIM_SIZE + 1 ] > ,
@@ -355,6 +358,7 @@ impl EngineCtx {
355358 use_err_help : false ,
356359 help_ptr : 0 ,
357360 help_line : [ ptr:: null ( ) ; 6 ] ,
361+ mag_set : 0 ,
358362
359363 eqtb : Vec :: new ( ) ,
360364 prim : Box :: new ( [ B32x2 { s0 : 0 , s1 : 0 } ; PRIM_SIZE + 1 ] ) ,
@@ -897,6 +901,16 @@ pub extern "C" fn set_help_line(idx: usize, ptr: *const libc::c_char) {
897901 ENGINE_CTX . with_borrow_mut ( |engine| engine. help_line [ idx] = ptr)
898902}
899903
904+ #[ no_mangle]
905+ pub extern "C" fn mag_set ( ) -> i32 {
906+ ENGINE_CTX . with_borrow ( |engine| engine. mag_set )
907+ }
908+
909+ #[ no_mangle]
910+ pub extern "C" fn set_mag_set ( val : i32 ) {
911+ ENGINE_CTX . with_borrow_mut ( |engine| engine. mag_set = val)
912+ }
913+
900914#[ no_mangle]
901915pub extern "C" fn eqtb ( idx : usize ) -> MemoryWord {
902916 ENGINE_CTX . with_borrow ( |engine| engine. eqtb [ idx] )
0 commit comments