-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy patherrore.fs
103 lines (96 loc) · 2.5 KB
/
errore.fs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
\ Error messages in Klartext 26may95py
err$s syserrs
$03 c, ," Tight stack"
$04 c, ," Stack empty!"
$05 c, ," RS full"
$06 c, ," RS empty"
$07 c, ," LoopS full"
$08 c, ," Dictionary full"
$09 c, ," Bus Error !"
$0A c, ," Division by Zero !"
$0B c, ," Result out of range"
$0C c, ," wrong argument"
$0D c, ," don't know"
$0E c, ," compile only"
$0F c, ," protected"
$10 c, ," invalid name"
$11 c, ," holdV"
$12 c, ," parseV"
$13 c, ," too long name"
$14 c, ," Illegal Instruction !"
$15 c, ," can't do"
$16 c, ," unstructured"
$17 c, ," Address Error !"
$18 c, ," invalid number"
$19 c, ," RS imbalance"
$1A c, ," no loop pars"
$1B c, ," don't recurse"
$1C c, ," User interrupt"
$1D c, ," compiler nesting"
$1E c, ," out of use"
$1F c, ," no body!"
$20 c, ," can't tick"
$21 c, ," read error"
$22 c, ," write error"
$23 c, ," out of range!"
$24 c, ," out of file!"
$25 c, ," file I/O error"
$26 c, ," file not found"
$27 c, ," unexpected eof"
$28 c, ," wrong base"
$29 c, ," loss of precision"
$2A c, ," FP divide by zero"
$2B c, ," FP overflow"
$2C c, ," FP stack full"
$2D c, ," FP stack empty"
$2E c, ," FP invalid argument"
$2F c, ," don't compile"
$31 c, ," no more ALSO"
$32 c, ," no more TOSS"
$00 c, ," Unkown Error "
align
' syserrs error$s 0 cells + !
[IFDEF] unix
dos 1 libc strsignal strsignal
dos 1 libc strerror strerror
forth
Create strerrbuf $80 allot
: strerror$ ( n -- )
strerror >len strerrbuf place strerrbuf "error ! ;
: strsignal$ ( n -- )
strsignal >len strerrbuf place strerrbuf "error ! ;
' strsignal$ error$s 1 cells + !
' strerror$ error$s 4 cells + !
[THEN]
err$s memerr$
$01 c, ," Not enough memory!"
$02 c, ," Invalid Address!"
$03 c, ," Invalid Handle!"
$04 c, ," SetPtrSize not possible!"
$00 c, ," Internal Error "
' memerr$ error$s 2 cells + !
[IFDEF] go32
err$s go32errs
$01 c, ," inv. function code"
$02 c, ," file not found"
$03 c, ," path not found"
$04 c, ," too many open files"
$05 c, ," access denied"
$06 c, ," invalid handle"
$07 c, ," out of memory"
$08 c, ," insufficient memory"
$09 c, ," inv. segment selector"
$0A c, ," inv. environment"
$0B c, ," inv. file format"
$0C c, ," inv. file access code"
$0D c, ," inv. data"
$0F c, ," inv. drive id"
$11 c, ," not same device"
$12 c, ," no matching dir entry"
$21 c, ," already locked"
$50 c, ," file already exists"
$82 c, ," not supported under this DPMI implementation"
$FF c, ," inv. drive number"
$00 c, ," domain error "
' go32errs error$s 4 cells + !
[THEN]