version 1.20, 2003/01/20 17:07:38
|
version 1.24, 2007/12/31 17:34:58
|
Line 1
|
Line 1
|
\ data structures (like C structs) |
\ data structures (like C structs) |
|
|
\ Copyright (C) 1995,1997,2000 Free Software Foundation, Inc. |
\ Copyright (C) 1995,1997,2000,2003,2007 Free Software Foundation, Inc. |
|
|
\ This file is part of Gforth. |
\ This file is part of Gforth. |
|
|
Line 29
|
Line 29
|
\ a field that makes no change |
\ a field that makes no change |
\ to enable accessing the offset with "['] <field> >body @" this |
\ to enable accessing the offset with "['] <field> >body @" this |
\ is not implemented with "['] noop alias" |
\ is not implemented with "['] noop alias" |
last @ |
latest |
if |
if |
immediate |
immediate |
then |
then |
Line 102 cell% 2* 2constant double%
|
Line 102 cell% 2* 2constant double%
|
\g similar to @code{allocate}. |
\g similar to @code{allocate}. |
nip allocate ; |
nip allocate ; |
|
|
: %alloc ( size align -- addr ) \ gforth |
: %alloc ( align size -- addr ) \ gforth |
\g Allocate @var{size} address units with alignment @var{align}, |
\g Allocate @var{size} address units with alignment @var{align}, |
\g giving a data block at @var{addr}; @code{throw} an ior code |
\g giving a data block at @var{addr}; @code{throw} an ior code |
\g if not successful. |
\g if not successful. |