view modules/regex @ 17422:08883714ab3e

regex: adapt to locking regime instead of depending on pthread Instead of depending on pthread, adapt to whatever thread modules are in use. Problem reported by Ludovic Courtès in <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00082.html> and by Mats Erik Andersson in <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00100.html>. * lib/regex_internal.h (lock_define, lock_init, lock_fini): Support either the 'lock' module, or the 'pthread' module, or no module. (lock_lock, lock_unlock): New macros. * lib/regexec.c (regexec, re_search_stub): Use the new macros. * modules/lock, modules/pthread (configure.ac): Add module indicator. * modules/regex (Depends-on): Remove pthread.
author Paul Eggert <eggert@cs.ucla.edu>
date Wed, 29 May 2013 10:24:17 -0700
parents 020c917cba9d
children bbdfd5c3b6d3
line wrap: on
line source

Description:
Regular expression matching.

Files:
lib/regex.h
lib/regex.c
lib/regex_internal.c
lib/regex_internal.h
lib/regexec.c
lib/regcomp.c
m4/eealloc.m4
m4/regex.m4
m4/mbstate_t.m4

Depends-on:
extensions
ssize_t
alloca-opt      [test $ac_use_included_regex = yes]
btowc           [test $ac_use_included_regex = yes]
gettext-h       [test $ac_use_included_regex = yes]
malloc-gnu      [test $ac_use_included_regex = yes]
memcmp          [test $ac_use_included_regex = yes]
memmove         [test $ac_use_included_regex = yes]
mbrtowc         [test $ac_use_included_regex = yes]
mbsinit         [test $ac_use_included_regex = yes]
nl_langinfo     [test $ac_use_included_regex = yes]
stdbool         [test $ac_use_included_regex = yes]
stdint          [test $ac_use_included_regex = yes]
wchar           [test $ac_use_included_regex = yes]
wcrtomb         [test $ac_use_included_regex = yes]
wctype-h        [test $ac_use_included_regex = yes]
wctype          [test $ac_use_included_regex = yes]

configure.ac:
gl_REGEX
if test $ac_use_included_regex = yes; then
  AC_LIBOBJ([regex])
  gl_PREREQ_REGEX
fi

Makefile.am:

Include:
<regex.h>

Link:
$(LTLIBINTL) when linking with libtool, $(LIBINTL) otherwise

License:
LGPLv2+

Maintainer:
all