File: eval.h

package info (click to toggle)
lookup 1.08b-5
  • links: PTS
  • area: contrib
  • in suites: woody
  • size: 1,108 kB
  • ctags: 1,305
  • sloc: ansic: 12,634; makefile: 236; perl: 174; sh: 53
file content (27 lines) | stat: -rw-r--r-- 740 bytes parent folder | download | duplicates (9)
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
/*
 * Jeffrey Friedl
 * Omron Corporation			ʳ
 * Nagaokakyoshi, Japan			617Ĺ
 *
 * jfriedl@nff.ncl.omron.co.jp
 *
 * This work is placed under the terms of the GNU General Purpose License
 * (the "GNU Copyleft").
 *
 * April 1994
 *
 */
extern int eval(const unsigned char *expression_string);

#define EVAL_OK                    0
#define EVAL_SYNTAX                1
#define EVAL_DIVZERO               2
#define EVAL_EOS                   3
#define EVAL_NOSYM                 4
#define EVAL_UNMATCHED_CLOSE       5
#define EVAL_UNMATCHED_OPEN        6

#define EVAL_MAX_ERROR EVAL_UNMATCHED_OPEN
extern int eval_error_val;
extern const unsigned char *eval_errstr[];
extern const unsigned char *eval_error_loc;