* lib/regex.c: New file, GNU regex implementation.
* lib/regex.h: New file. * lib/posix: New directory. * lib/posix/Makefile.am: New file. * lib/posix/regex.h: New file. * lib/Makefile.am: Add SUBDIRS=posix and regex.c dependencies.
Showing
6 changed files
with
56 additions
and
1 deletions
1 | AUTOMAKE_OPTIONS = ansi2knr | 1 | AUTOMAKE_OPTIONS = ansi2knr |
2 | noinst_LIBRARIES = libmailutils.a | 2 | noinst_LIBRARIES = libmailutils.a |
3 | 3 | ||
4 | SUBDIRS = posix | ||
5 | |||
4 | libmailutils_a_SOURCES = basename.c getopt.c getopt1.c md5.c getline.c \ | 6 | libmailutils_a_SOURCES = basename.c getopt.c getopt1.c md5.c getline.c \ |
5 | xstrdup.c xmalloc.c argcv.c | 7 | xstrdup.c xmalloc.c argcv.c |
6 | 8 | ||
... | @@ -8,7 +10,7 @@ EXTRA_DIST = alloca.c fnmatch.c setenv.c snprintf.c strchrnul.c strndup.c \ | ... | @@ -8,7 +10,7 @@ EXTRA_DIST = alloca.c fnmatch.c setenv.c snprintf.c strchrnul.c strndup.c \ |
8 | strnlen.c strtok_r.c strsignal.c xstrtol.c vasprintf.c malloc.c realloc.c | 10 | strnlen.c strtok_r.c strsignal.c xstrtol.c vasprintf.c malloc.c realloc.c |
9 | 11 | ||
10 | noinst_HEADERS = argcv.h error.h fnmatch.h getline.h getopt.h md5.h \ | 12 | noinst_HEADERS = argcv.h error.h fnmatch.h getline.h getopt.h md5.h \ |
11 | snprintf.h xalloc.h xstrtol.h | 13 | regex.h snprintf.h xalloc.h xstrtol.h |
12 | 14 | ||
13 | libmailutils_a_LIBADD = @LIBOBJS@ @ALLOCA@ | 15 | libmailutils_a_LIBADD = @LIBOBJS@ @ALLOCA@ |
14 | 16 | ... | ... |
lib/posix/.cvsignore
0 → 100644
lib/posix/Makefile.am
0 → 100644
lib/posix/regex.h
0 → 100644
This diff is collapsed.
Click to expand it.
lib/regex.c
0 → 100644
This diff could not be displayed because it is too large.
lib/regex.h
0 → 100644
1 | #ifndef _REGEX_H | ||
2 | #include <posix/regex.h> | ||
3 | |||
4 | /* Document internal interfaces. */ | ||
5 | extern reg_syntax_t __re_set_syntax _RE_ARGS ((reg_syntax_t syntax)); | ||
6 | |||
7 | extern const char *__re_compile_pattern | ||
8 | _RE_ARGS ((const char *pattern, size_t length, | ||
9 | struct re_pattern_buffer *buffer)); | ||
10 | |||
11 | extern int __re_compile_fastmap _RE_ARGS ((struct re_pattern_buffer *buffer)); | ||
12 | |||
13 | extern int __re_search | ||
14 | _RE_ARGS ((struct re_pattern_buffer *buffer, const char *string, | ||
15 | int length, int start, int range, struct re_registers *regs)); | ||
16 | |||
17 | extern int __re_search_2 | ||
18 | _RE_ARGS ((struct re_pattern_buffer *buffer, const char *string1, | ||
19 | int length1, const char *string2, int length2, | ||
20 | int start, int range, struct re_registers *regs, int stop)); | ||
21 | |||
22 | extern int __re_match | ||
23 | _RE_ARGS ((struct re_pattern_buffer *buffer, const char *string, | ||
24 | int length, int start, struct re_registers *regs)); | ||
25 | |||
26 | extern int __re_match_2 | ||
27 | _RE_ARGS ((struct re_pattern_buffer *buffer, const char *string1, | ||
28 | int length1, const char *string2, int length2, | ||
29 | int start, struct re_registers *regs, int stop)); | ||
30 | |||
31 | extern void __re_set_registers | ||
32 | _RE_ARGS ((struct re_pattern_buffer *buffer, struct re_registers *regs, | ||
33 | unsigned num_regs, regoff_t *starts, regoff_t *ends)); | ||
34 | |||
35 | extern int __regcomp _RE_ARGS ((regex_t *__preg, const char *__pattern, | ||
36 | int __cflags)); | ||
37 | |||
38 | extern int __regexec _RE_ARGS ((const regex_t *__preg, | ||
39 | const char *__string, size_t __nmatch, | ||
40 | regmatch_t __pmatch[], int __eflags)); | ||
41 | |||
42 | extern size_t __regerror _RE_ARGS ((int __errcode, const regex_t *__preg, | ||
43 | char *__errbuf, size_t __errbuf_size)); | ||
44 | |||
45 | extern void __regfree _RE_ARGS ((regex_t *__preg)); | ||
46 | #endif |
-
Please register or sign in to post a comment