mirror of
https://github.com/nineties/planckforth
synced 2024-12-25 21:58:22 +01:00
fixed a bug
This commit is contained in:
parent
e46dd0994a
commit
afa21387f1
1 changed files with 3 additions and 2 deletions
|
@ -1131,7 +1131,7 @@ decimal \ set default to decimal
|
|||
: strcpy,
|
||||
begin dup c@ dup while
|
||||
c, 1+
|
||||
repeat drop
|
||||
repeat 2drop
|
||||
0 c,
|
||||
;
|
||||
|
||||
|
@ -1203,9 +1203,10 @@ variable error-list
|
|||
|
||||
: add-error ( n c-addr -- )
|
||||
error-list here
|
||||
( n c-addr )
|
||||
over @ , \ fill link
|
||||
swap ! \ update error-list
|
||||
rot , \ fill error-code
|
||||
swap , \ fill error-code
|
||||
strcpy, \ fill message
|
||||
;
|
||||
|
||||
|
|
Loading…
Reference in a new issue