--- gforth/kernel/getdoers.fs 2005/12/31 15:46:14 1.11 +++ gforth/kernel/getdoers.fs 2007/12/31 19:02:25 1.16 @@ -1,12 +1,12 @@ \ -\ Copyright (C) 1996, 1998,1999,2003,2005 Free Software Foundation, Inc. +\ Copyright (C) 1996, 1998,1999,2003,2005,2006,2007 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 ; @@ -50,9 +55,10 @@ doer? :dodefer [IF] [THEN] doer? :dofield [IF] + : dofield: ( -- addr ) \ gforth \G The code address of a @code{field}. - ['] reveal-method >code-address ; + ['] >body >code-address ; [THEN] true [IF] \ !! don't know what to put here