Mescal
Loading...
Searching...
No Matches
shell_errors.h
1
6#ifndef ERRORS_H_
7#define ERRORS_H_
8
9#include "shell_keywords.h"
10#include "tools.h"
11#include <limits.h>
12#include <stdio.h>
13
14enum shell_errors {
15 INTERRUPTION = INT_MIN,
16 COMPUTATION_FAILURE,
17 SYNTAX_ERROR,
18 INVALID_OBJECT,
19 MEMORY_LIMIT,
20 TIMEOUT_OCCURRED,
21};
22
27void shell_error_dispatch(int err);
28
33void shell_error_syntax(void);
34
39void shell_error_full(void);
40
45void shell_error_unknownvar(const char*
46);
47
52void shell_error_disallowedvar(const char*
53);
54
59void shell_error_unknownrel(const char*
60 ,
61 const char*
62);
63
68void shell_error_notrecdef(com_command*
69);
70
75void shell_error_notregexp(com_command*
76);
77
82void shell_error_wrongrecindex(uint
83 ,
84 const char*
85);
86
91void shell_error_copyrec(void);
92
97void shell_error_notrecvar(const char*
98);
99
104void shell_error_recnotok(const char*
105);
106
111void shell_error_noreturn(com_command*
112);
113
118void shell_error_leastparams(const char*
119 ,
120 uchar
121);
122
127void shell_error_nbparams(const char*
128 ,
129 uchar
130);
131
136void shell_error_rangeparams(const char*
137 ,
138 uchar
139 ,
140 uchar
141);
142
147void shell_error_exppar(const char*
148 ,
149 uchar
150);
151
156void shell_error_autopar(const char*
157 ,
158 uchar
159);
160
165void shell_error_morpar(const char*
166 ,
167 uchar
168);
169
174void shell_error_numpar(const char*
175 ,
176 uchar
177);
178
183void shell_error_filepar(const char*
184 ,
185 uchar
186);
187
192void shell_error_wordpar(const char*
193 ,
194 uchar
195);
196
201void shell_error_varpar(const char*
202 ,
203 uchar
204);
205
210void shell_error_classpar(const char*
211 ,
212 uchar
213);
214
219void shell_error_invalidpar(const char*
220 ,
222);
223
228void shell_error_classnsup(com_command*
229 ,
230 const char*
231);
232
237void shell_error_null(void);
238
239
240
249bool error_nbpars(const char* str,
250 com_parameters* pars,
251 short pmin,
252 short pmax
253);
254
262bool error_parobtype(const char* str,
263 int p,
264 int i,
265 ob_type type
266);
267
268
273void error_parinteger(const char* str,
274 int p
275);
276
281void error_partextraw(const char* str,
282 int p
283);
284
289void error_parvar(const char* str,
290 int p
291);
292
297void error_parunkvar(const char* var
298);
299
300#endif
Keywords and commands used in the shell.
A command.
Definition shell_keywords.h:221
Parameters of a command.
Definition shell_keywords.h:211