Subversion Repositories tendra.SVN

Rev

Rev 2 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 7u83 1
#   		 Crown Copyright (c) 1997
2
#   
3
#   This TenDRA(r) Computer Program is subject to Copyright
4
#   owned by the United Kingdom Secretary of State for Defence
5
#   acting through the Defence Evaluation and Research Agency
6
#   (DERA).  It is made available to Recipients with a
7
#   royalty-free licence for its use, reproduction, transfer
8
#   to other parties and amendment for any purpose not excluding
9
#   product development provided that any such use et cetera
10
#   shall be deemed to be acceptance of the following conditions:-
11
#   
12
#       (1) Its Recipients shall ensure that this Notice is
13
#       reproduced upon any copies or amended versions of it;
14
#   
15
#       (2) Any amended version of it shall be clearly marked to
16
#       show both the nature of and the organisation responsible
17
#       for the relevant amendment or amendments;
18
#   
19
#       (3) Its onward transfer from a recipient to another
20
#       party shall be deemed to be that party's acceptance of
21
#       these conditions;
22
#   
23
#       (4) DERA gives no warranty or assurance as to its
24
#       quality or suitability for any purpose and DERA accepts
25
#       no liability whatsoever in relation to any use to which
26
#       it may be put.
27
#
28
+USE "ansi", "stddef.h", "size_t" (!?) ;
29
 
30
+CONST int REG_EXTENDED, REG_ICASE, REG_NOSUB, REG_NEWLINE, REG_NOTBOL ;
31
+CONST int REG_NOTEOL, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE, REG_ECTYPE ;
32
+CONST int REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN, REG_EBRACE ;
33
+CONST int REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_ENOSYS ;
34
 
35
+FIELD ( struct ) regex_t {
36
    size_t re_nsub ;
37
} ;
38
 
7 7u83 39
+TYPE ( signed ) regoff_t ;
2 7u83 40
 
41
+FIELD ( struct ) regmatch_t {
42
    regoff_t rm_so ;
43
    regoff_t rm_eo ;
44
} ;
45
 
46
+FUNC int regcomp ( regex_t *, const char *, int ) ;
47
+FUNC int regexec ( const regex_t *, const char *, size_t, regmatch_t *, int ) ;
48
+FUNC size_t regerror ( int, const regex_t *, char *, size_t ) ;
49
+FUNC void regfree ( regex_t * ) ;