version 1.5, 2000/09/23 15:05:58
|
version 1.7, 2002/03/22 18:40:00
|
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. |
|
|
|
|
\ Use this program like this: |
\ Use this program like this: |
Line 133 ans-report-words definitions
|
Line 133 ans-report-words definitions
|
: replace-word ( xt cfa -- ) |
: replace-word ( xt cfa -- ) |
\ replace word at cfa with xt. !! This is quite general-purpose |
\ replace word at cfa with xt. !! This is quite general-purpose |
\ and should migrate elsewhere. |
\ and should migrate elsewhere. |
dodefer: over code-address! |
\ the following no longer works with primitive-centric hybrid threading: |
>body ! ; |
\ dodefer: over code-address! |
|
\ >body ! ; |
|
dup @ docol: <> -12 and throw \ for colon defs only |
|
>body ['] branch compile-prim over ! |
|
cell+ >r >body r@ - r> ! ; |
|
|
forth definitions |
forth definitions |
ans-report-words |
ans-report-words |