Diff for /gforth/intcomp.fs between versions 1.2 and 1.4

version 1.2, 1996/09/10 16:08:38 version 1.4, 1997/07/31 16:17:09
Line 32  lastxt >does-code Line 32  lastxt >does-code
 constant no-compilation-does-code  constant no-compilation-does-code
 constant no-interpretation-does-code  constant no-interpretation-does-code
   
 : create-interpret/compile ( -- )  : create-interpret/compile ( "name" -- ) \ gforth
     0 0 interpret/compile:      0 0 interpret/compile:
     here lastxt interpret/compile-comp !      here lastxt interpret/compile-comp !
     no-compilation-does-code here does-code!      no-compilation-does-code here does-code!
Line 42  constant no-interpretation-does-code Line 42  constant no-interpretation-does-code
     [ 0 >body ] literal allot ; \ restrict?      [ 0 >body ] literal allot ; \ restrict?
   
 : fix-does-code ( addr ret-addr -- )  : fix-does-code ( addr ret-addr -- )
     lastxt [ interpret/compile-struct drop ] literal + >r      lastxt [ interpret/compile-struct %size ] literal + >r
     lastxt interpret/compile?      lastxt interpret/compile?
     lastxt interpret/compile-int @ r@ >body = and      lastxt interpret/compile-int @ r@ >body = and
     lastxt interpret/compile-comp @ r> = and      lastxt interpret/compile-comp @ r> = and
Line 53  constant no-interpretation-does-code Line 53  constant no-interpretation-does-code
 : (interpretation>) ( -- )  : (interpretation>) ( -- )
     lastxt interpret/compile-int r@ fix-does-code ;      lastxt interpret/compile-int r@ fix-does-code ;
   
 : interpretation> ( -- orig colon-sys )  : interpretation> ( compilation. -- orig colon-sys ) \ gforth
     POSTPONE (interpretation>) POSTPONE ahead      POSTPONE (interpretation>) POSTPONE ahead
     dodoes, defstart dead-code off 0 set-locals-size-list ; immediate restrict      dodoes, defstart dead-code off 0 set-locals-size-list ; immediate restrict
   
 : <interpretation ( orig colon-sys -- )  : <interpretation ( compilation. orig colon-sys -- ) \ gforth
     ?struc POSTPONE exit      ?struc POSTPONE exit
     POSTPONE then ; immediate restrict      POSTPONE then ; immediate restrict
   
 : (compilation>) ( -- )  : (compilation>) ( -- )
     lastxt interpret/compile-comp r@ fix-does-code ;      lastxt interpret/compile-comp r@ fix-does-code ;
   
 : compilation> ( -- orig colon-sys )  : compilation> ( compilation. -- orig colon-sys ) \ gforth
     POSTPONE (compilation>) POSTPONE ahead      POSTPONE (compilation>) POSTPONE ahead
     dodoes, defstart dead-code off 0 set-locals-size-list POSTPONE >body ; immediate restrict      dodoes, defstart dead-code off 0 set-locals-size-list POSTPONE >body ; immediate restrict
   
 comp' <interpretation drop Alias <compilation immediate restrict  comp' <interpretation drop
   Alias <compilation ( compilation. orig colon-sys -- ) \ gforth
   immediate restrict
   
 \ example  \ example
 \ : constant ( n "name" -- )  \ : constant ( n "name" -- )

Removed from v.1.2  
changed lines
  Added in v.1.4


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>