1 /* public things from eval.c */
2 
3 #ifndef _EVAL_H_
4 #define _EVAL_H_
5 
6 #define STACK_OV_ERROR        1
7 #define STACK_UND_ERROR	      2
8 #define DYN_STACK_OV_ERROR    3
9 #define DYN_STACK_UND_ERROR   4
10 #define SYNTAX_ERROR          5
11 #define NO_OPERATOR_ERROR     6
12 #define NO_VALUE_ERROR        7
13 #define DIV_BY_ZERO_ERROR     8
14 #define OUT_RANGE_ERROR       9
15 #define MISSING_PAREN_ERROR  10
16 #define MISMATCH_PAREN_ERROR 11
17 #define INTERNAL_ERROR	     12
18 #define NOT_SUPPORTED_ERROR  13
19 #define NOT_DONE_ERROR       14
20 #define NO_MEM_ERROR         15
21 #define MEM_LIMIT_ERROR      16
22 #define MAX_LOOP_ERROR       17
23 #define NO_NUM_VALUE_ERROR   18
24 #define NO_STRING_ERROR      19
25 #define NO_LABEL_ERROR       20
26 #define MISSING_SEPARATOR_ERROR  21
27 #define HISTORY_RECURSION_ERROR  22
28 #define USER_BREAK		 23
29 #define OUT_OF_VAR_SPACE_ERROR   24
30 #define UNDEFINED_VARIABLE_ERROR 25
31 #define OUT_BASE_ERROR		 26
32 #define BAD_ATTR_ERROR		 27
33 #define INVALID_NAME_ERROR	 28
34 
35 #define TYPE_NUM 1
36 #define TYPE_TXT 2
37 #define TYPE_NUM_VAR 3
38 #define TYPE_TXT_VAR 4
39 
40 #define PRINT_NOTHING 0
41 #define PRINT_AS_PTR  1
42 #define PRINT_AS_LONG 2
43 
44 int  eval_any	__P ((long *lres, ptr *pres, char **what));
45 int  evalp	__P ((            ptr *pres, char **what));
46 int  evall	__P ((long *lres,            char **what));
47 int  evaln	__P ((                       char **what));
48 
49 void print_error __P ((int err_num));
50 
51 extern char *error_msg[];
52 extern int error;
53 
54 #define REAL_ERROR (error && error != USER_BREAK)
55 #define MEM_ERROR  (error == NO_MEM_ERROR || error == MEM_LIMIT_ERROR)
56 
57 #endif /* _EVAL_H_ */
58 
59