~ubuntu-branches/ubuntu/trusty/tla/trusty

« back to all changes in this revision

Viewing changes to src/hackerlab/rx-posix/errnorx.h

  • Committer: Bazaar Package Importer
  • Author(s): Andrew Suffield
  • Date: 2004-05-30 20:13:29 UTC
  • Revision ID: james.westby@ubuntu.com-20040530201329-mgovd2u99mkxi0hf
Tags: upstream-1.2
ImportĀ upstreamĀ versionĀ 1.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* errnorx.h - error decls for rx
 
2
 *
 
3
 ****************************************************************
 
4
 * Copyright (C) 1998, 2000 Thomas Lord
 
5
 * 
 
6
 * See the file "COPYING" for further information about
 
7
 * the copyright and warranty status of this work.
 
8
 */
 
9
 
 
10
 
 
11
#ifndef INCLUDE__RX_POSIX__ERRNORX_H
 
12
#define INCLUDE__RX_POSIX__ERRNORX_H
 
13
 
 
14
 
 
15
 
 
16
#include "hackerlab/machine/types.h"
 
17
 
 
18
 
 
19
 
 
20
extern const t_uchar * rx_error_msg[];
 
21
 
 
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 \\)")
 
42
 
 
43
enum rx_errno
 
44
{
 
45
#undef RX_ERRNO
 
46
#define RX_ERRNO(A,B)   A,
 
47
  RX_ERRNO_LIST
 
48
};
 
49
 
 
50
 
 
51
/* automatically generated __STDC__ prototypes */
 
52
#endif  /* INCLUDE__RX_POSIX__ERRNORX_H */