1
/* errnorx.h - error decls for rx
3
****************************************************************
4
* Copyright (C) 1998, 2000 Thomas Lord
6
* See the file "COPYING" for further information about
7
* the copyright and warranty status of this work.
11
#ifndef INCLUDE__RX_POSIX__ERRNORX_H
12
#define INCLUDE__RX_POSIX__ERRNORX_H
16
#include "hackerlab/machine/types.h"
20
extern const t_uchar * rx_error_msg[];
22
#define RX_ERRNO_LIST \
23
RX_ERRNO(REG_NOERROR, "no error") \
24
RX_ERRNO(REG_NOMATCH, "no match") \
25
RX_ERRNO(REG_MATCH_INTERRUPTED, "match interrupted") \
26
RX_ERRNO(REG_BADPAT, "invalid regular expression") \
27
RX_ERRNO(REG_ECOLLATE, "invalid collation character") \
28
RX_ERRNO(REG_ECTYPE, "invalid character class name") \
29
RX_ERRNO(REG_EESCAPE, "trailing backslash") \
30
RX_ERRNO(REG_ESUBREG, "invalid back reference") \
31
RX_ERRNO(REG_EBRACK, "unmatched [ or [^") \
32
RX_ERRNO(REG_EPAREN, "unmatched (, \\(, ) or \\)") \
33
RX_ERRNO(REG_EBRACE, "unmatched \\{") \
34
RX_ERRNO(REG_BADBR, "invalid content of \\{\\}") \
35
RX_ERRNO(REG_ERANGE, "invalid range end") \
36
RX_ERRNO(REG_ESPACE, "memory exhausted") \
37
RX_ERRNO(REG_BADRPT, "invalid preceding regular expression") \
38
RX_ERRNO(REG_EEND, "premature end of regular expression") \
39
RX_ERRNO(REG_ESIZE, "regular expression too big") \
40
RX_ERRNO(REG_ELPAREN, "unmatched (, or \\(") \
41
RX_ERRNO(REG_ERPAREN, "unmatched ) or \\)")
46
#define RX_ERRNO(A,B) A,
51
/* automatically generated __STDC__ prototypes */
52
#endif /* INCLUDE__RX_POSIX__ERRNORX_H */