move error codes

This commit is contained in:
Koichi Nakamura 2021-01-05 21:33:56 +09:00
parent 3b272e982f
commit 8356ff933a

View file

@ -1301,6 +1301,16 @@ create word-buffer s" 64" >number drop cell+ allot drop
main main
( === Error-codes === )
decimal
-1 s" Aborted" def-error ABORTED-ERROR
-39 s" Unexpected end of file" def-error UNEXPECTED-EOF-ERROR
-68 s" FLUSH-FILE" def-error FLUSH-FILE-ERROR
-70 s" READ-FILE" def-error READ-FILE-ERROR
-71 s" READ-LINE" def-error READ-LINE-ERROR
-75 s" WRITE-FILE" def-error WRITE-FILE-ERROR
( === Dump of data stack === ) ( === Dump of data stack === )
: .s ( -- ) : .s ( -- )
sp0 sp@ - cell- cell / ( depth of the stack ) sp0 sp@ - cell- cell / ( depth of the stack )
@ -1356,13 +1366,6 @@ main
( === File I/O Abstraction === ) ( === File I/O Abstraction === )
decimal
-39 s" Unexpected end of file" def-error UNEXPECTED-EOF-ERROR
-68 s" FLUSH-FILE" def-error FLUSH-FILE-ERROR
-70 s" READ-FILE" def-error READ-FILE-ERROR
-71 s" READ-LINE" def-error READ-LINE-ERROR
-75 s" WRITE-FILE" def-error WRITE-FILE-ERROR
-1 constant EOF -1 constant EOF
\ file access methods (fam) \ file access methods (fam)