version 1.25, 2003/01/20 22:16:04
|
version 1.27, 2003/01/22 17:12:49
|
Line 76 has? new-input [IF]
|
Line 76 has? new-input [IF]
|
: included1 ( i*x file-id c-addr u -- j*x ) \ gforth |
: included1 ( i*x file-id c-addr u -- j*x ) \ gforth |
\G Include the file file-id with the name given by @var{c-addr u}. |
\G Include the file file-id with the name given by @var{c-addr u}. |
save-mem 2dup add-included-file ( file-id ) |
save-mem 2dup add-included-file ( file-id ) |
['] include-file2 catch |
['] read-loop execute-parsing-named-file ; |
throw ; |
|
[ELSE] |
[ELSE] |
: included1 ( i*x file-id c-addr u -- j*x ) \ gforth |
: included1 ( i*x file-id c-addr u -- j*x ) \ gforth |
\G Include the file file-id with the name given by @var{c-addr u}. |
\G Include the file file-id with the name given by @var{c-addr u}. |
loadfilename 2@ 2>r |
save-mem 2dup loadfilename>r |
save-mem 2dup loadfilename 2! |
|
add-included-file ( file-id ) |
add-included-file ( file-id ) |
['] include-file2 catch |
['] include-file2 catch |
2r> loadfilename 2! |
r>loadfilename |
throw ; |
throw ; |
[THEN] |
[THEN] |
|
|