--- gforth/intcomp.fs 2003/03/22 10:04:07 1.9 +++ gforth/intcomp.fs 2007/12/31 18:40:24 1.12 @@ -1,12 +1,12 @@ \ defining words for words with non-default and non-immediate compilation semantics -\ Copyright (C) 1996,1997,2000 Free Software Foundation, Inc. +\ Copyright (C) 1996,1997,2000,2003 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/. \ used like \ : create-interpret/compile ... @@ -50,22 +49,22 @@ constant no-interpretation-does-code cell+ cell+ maxaligned /does-handler + \ to does-code swap @ does-code! ; -: (interpretation>) ( -- ) - latestxt interpret/compile-int r@ fix-does-code ; +: (interpretation>1) ( addr R:retaddr -- ) + latestxt interpret/compile-int swap fix-does-code ; : interpretation> ( compilation. -- orig colon-sys ) \ gforth - POSTPONE (interpretation>) POSTPONE ahead + here 4 cells + POSTPONE literal POSTPONE (interpretation>1) POSTPONE ahead dodoes, defstart dead-code off 0 set-locals-size-list ; immediate restrict : ) ( -- ) - latestxt interpret/compile-comp r@ fix-does-code ; +: (compilation>1) ( addr R:retaddr -- ) + latestxt interpret/compile-comp swap fix-does-code ; : compilation> ( compilation. -- orig colon-sys ) \ gforth - POSTPONE (compilation>) POSTPONE ahead + here 4 cells + POSTPONE literal POSTPONE (compilation>1) POSTPONE ahead dodoes, defstart dead-code off 0 set-locals-size-list POSTPONE >body ; immediate restrict comp'