Commit 99d558a9 99d558a9e64e2cfa456c45080909f6bdb2c1fcb5 by Alain Magloire

* 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.
1 parent 7336f507
AUTOMAKE_OPTIONS = ansi2knr
noinst_LIBRARIES = libmailutils.a
SUBDIRS = posix
libmailutils_a_SOURCES = basename.c getopt.c getopt1.c md5.c getline.c \
xstrdup.c xmalloc.c argcv.c
......@@ -8,7 +10,7 @@ EXTRA_DIST = alloca.c fnmatch.c setenv.c snprintf.c strchrnul.c strndup.c \
strnlen.c strtok_r.c strsignal.c xstrtol.c vasprintf.c malloc.c realloc.c
noinst_HEADERS = argcv.h error.h fnmatch.h getline.h getopt.h md5.h \
snprintf.h xalloc.h xstrtol.h
regex.h snprintf.h xalloc.h xstrtol.h
libmailutils_a_LIBADD = @LIBOBJS@ @ALLOCA@
......
Makefile.in
Makefile
.deps
## Process this file with automake to create Makefile.in
AUTOMAKE_OPTIONS=no-dependencies
EXTRA_DIST = regex.h
This diff could not be displayed because it is too large.
#ifndef _REGEX_H
#include <posix/regex.h>
/* Document internal interfaces. */
extern reg_syntax_t __re_set_syntax _RE_ARGS ((reg_syntax_t syntax));
extern const char *__re_compile_pattern
_RE_ARGS ((const char *pattern, size_t length,
struct re_pattern_buffer *buffer));
extern int __re_compile_fastmap _RE_ARGS ((struct re_pattern_buffer *buffer));
extern int __re_search
_RE_ARGS ((struct re_pattern_buffer *buffer, const char *string,
int length, int start, int range, struct re_registers *regs));
extern int __re_search_2
_RE_ARGS ((struct re_pattern_buffer *buffer, const char *string1,
int length1, const char *string2, int length2,
int start, int range, struct re_registers *regs, int stop));
extern int __re_match
_RE_ARGS ((struct re_pattern_buffer *buffer, const char *string,
int length, int start, struct re_registers *regs));
extern int __re_match_2
_RE_ARGS ((struct re_pattern_buffer *buffer, const char *string1,
int length1, const char *string2, int length2,
int start, struct re_registers *regs, int stop));
extern void __re_set_registers
_RE_ARGS ((struct re_pattern_buffer *buffer, struct re_registers *regs,
unsigned num_regs, regoff_t *starts, regoff_t *ends));
extern int __regcomp _RE_ARGS ((regex_t *__preg, const char *__pattern,
int __cflags));
extern int __regexec _RE_ARGS ((const regex_t *__preg,
const char *__string, size_t __nmatch,
regmatch_t __pmatch[], int __eflags));
extern size_t __regerror _RE_ARGS ((int __errcode, const regex_t *__preg,
char *__errbuf, size_t __errbuf_size));
extern void __regfree _RE_ARGS ((regex_t *__preg));
#endif