Diff for /gforth/kernel/doers.fs between versions 1.2 and 1.7

version 1.2, 1998/12/08 22:03:09 version 1.7, 2003/03/09 15:17:05
Line 1 Line 1
 \ run-time code for defining words  \ run-time code for defining words
   
 \ Copyright (C) 1995,1996,1997,1998 Free Software Foundation, Inc.  \ Copyright (C) 1995,1996,1997,1998,1999,2000 Free Software Foundation, Inc.
   
 \ This file is part of Gforth.  \ This file is part of Gforth.
   
Line 16 Line 16
   
 \ You should have received a copy of the GNU General Public License  \ You should have received a copy of the GNU General Public License
 \ along with this program; if not, write to the Free Software  \ along with this program; if not, write to the Free Software
 \ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  \ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.
   
   
 \ If we leave out the compiler we need the runtime code for our defining  \ If we leave out the compiler we need the runtime code for our defining
Line 26 Line 26
 has? compiler 0= [IF]  has? compiler 0= [IF]
   
 \ fillers for interpreter only mode  \ fillers for interpreter only mode
 .( Do-Fillers: )  \D compileddofillers .( Do-Fillers: )
   
 : (does>) ;      : (does>) ;    
   
 doer? :dofield 0= [IF] .( DOFIELD )  doer? :dofield 0= [IF] \D compileddofillers .( DOFIELD )
 | : (Field)  DOES> @ + ;  | : (Field)  DOES> @ + ;
 [THEN]  [THEN]
   
 doer? :dodefer 0= [IF] .( DODEFER )  doer? :dodefer 0= [IF] \D compileddofillers .( DODEFER )
 | : Defer ( "name" -- ) DOES> @ execute ;  | : Defer ( "name" -- ) DOES> @ execute ;
 [THEN]  [THEN]
   
 | : 2Constant ( w1 w2 "name" -- ) \ double  \D compileddofillers .( DO2CON )
   | : 2Constant ( w1 w2 "name" -- ) 
     DOES> ( -- w1 w2 )      DOES> ( -- w1 w2 )
         2@ ;          2@ ;
   
 doer? :docon 0= [IF] .( DOCON )  doer? :docon 0= [IF] \D compileddofillers .( DOCON )
 | : (Constant)  DOES> @ ;  | : (Constant)  DOES> @ ;
 [THEN]  [THEN]
   
 doer? :douser 0= [IF] .( DOUSER )  doer? :douser 0= [IF] \D compileddofillers .( DOUSER )
 | : User DOES> @ up @ + ;  | : User DOES> @ [IFDEF] up@ up@ [ELSE] up @ [THEN] + ;
 [THEN]  [THEN]
   
 doer? :dovar 0= [IF] .( DOVAR )  doer? :dovar 0= [IF] \D compileddofillers .( DOVAR )
 | : Create ( "name" -- ) \ core  | : Create ( "name" -- ) \ core
     DOES> ;      DOES> ;
   
 .( .)  \D compileddofillers .( .)
 [THEN]  [THEN]
   

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


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