--- gforth/kernel/getdoers.fs 2000/10/29 20:27:03 1.6 +++ gforth/kernel/getdoers.fs 2007/12/31 18:40:26 1.15 @@ -1,12 +1,12 @@ \ -\ Copyright (C) 1996, 1998,1999 Free Software Foundation, Inc. +\ Copyright (C) 1996, 1998,1999,2003,2005,2006 Free Software Foundation, Inc. \ This file is part of Gforth. \ Gforth is free software; you can redistribute it and/or \ modify it under the terms of the GNU General Public License -\ as published by the Free Software Foundation; either version 2 +\ as published by the Free Software Foundation, either version 3 \ of the License, or (at your option) any later version. \ This program is distributed in the hope that it will be useful, @@ -15,8 +15,7 @@ \ GNU General Public License for more details. \ You should have received a copy of the GNU General Public License -\ along with this program; if not, write to the Free Software -\ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA. +\ along with this program. If not, see http://www.gnu.org/licenses/. doer? :docon [IF] : docon: ( -- addr ) \ gforth @@ -24,6 +23,12 @@ doer? :docon [IF] ['] bl >code-address ; [THEN] +doer? :dovalue [IF] +: dovalue: ( -- addr ) \ gforth + \G The code address of a @code{CONSTANT}. + ['] def#tib >code-address ; +[THEN] + : docol: ( -- addr ) \ gforth \G The code address of a colon definition. ['] on >code-address ; @@ -46,17 +51,18 @@ doer? :douser [IF] doer? :dodefer [IF] : dodefer: ( -- addr ) \ gforth \G The code address of a @code{defer}ed word. - ['] parser >code-address ; + ['] parser1 >code-address ; [THEN] doer? :dofield [IF] + : dofield: ( -- addr ) \ gforth \G The code address of a @code{field}. - ['] reveal-method >code-address ; + ['] >body >code-address ; [THEN] -has? prims 0= [IF] +true [IF] \ !! don't know what to put here : dodoes: ( -- addr ) \ gforth \G The code address of a @code{field}??? - ['] spaces >code-address ; + ['] DOES> >code-address ; [THEN]