summaryrefslogtreecommitdiff
path: root/support/ltx2x/l2xierr.h
blob: a8f853bbfe92c10d280764931879c3fe04bf5f03 (plain)
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
/* l2xierr.h   for LTX2X interpreter */

#ifndef error_h
#define error_h

#define MAX_SYNTAX_ERRORS 25

/* error codes */


  /* parser error codes */
typedef enum {
#define petc(a, b) a,
#define pwtc(a, b)
#define rtetc(a, b)
#define rtwtc(a, b)
#include "l2xiertc.h"
#undef petc
#undef pwtc
#undef rtetc
#undef rtwtc
} ERROR_CODE;

  /* parser warning codes */
typedef enum {
#define petc(a, b)
#define pwtc(a, b) a,
#define rtetc(a, b)
#define rtwtc(a, b)
#include "l2xiertc.h"
#undef petc
#undef pwtc
#undef rtetc
#undef rtwtc
} WARNING_CODE;

  /* runtime error codes */
typedef enum {
#define petc(a, b)
#define pwtc(a, b)
#define rtetc(a, b) a,
#define rtwtc(a, b)
#include "l2xiertc.h"
#undef petc
#undef pwtc
#undef rtetc
#undef rtwtc
} RUNTIME_ERROR_CODE;

  /* runtime warning codes */
typedef enum {
#define petc(a, b)
#define pwtc(a, b)
#define rtetc(a, b)
#define rtwtc(a, b) a,
#include "l2xiertc.h"
#undef petc
#undef pwtc
#undef rtetc
#undef rtwtc
} RUNTIME_WARNING_CODE;


#endif