1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-27 10:54:40 +00:00
emacs/lib
Paul Eggert d904cc83f3 Use Gnulib regex for lib-src
Emacs regular expressions forked from everyone else long ago.
This makes it official and should allow simplification later.
etags.c now uses the glibc regex API, falling back on a
Gnulib-supplied substitute lib/regex.c if necessary.
Emacs proper now uses its own regular expression module.
Although this patch may look dauntingly large, most of it
was generated automatically by admin/merge-gnulib
and contains an exact copy of the glibc regex source,
and the by-hand changes do not grow the Emacs source code.
* admin/merge-gnulib (GNULIB_MODULES): Add regex.
(AVOIDED_MODULES): Add btowc, langinfo, lock, mbrtowc, mbsinit,
nl_langinfo, wchar, wcrtomb, wctype-h.
* lib-src/Makefile.in (regex-emacs.o): Remove; Gnulib does it now.
(etags_deps, etags_libs): Remove regex-emacs.o.
* lib-src/etags.c: Go back to including regex.h.
(add_regex): Use unsigned char translation array,
since glibc regex requires that.
* lib/Makefile.in (not_emacs_OBJECTS, for_emacs_OBJECTS): New macros.
(libegnu_a_OBJECTS): Use them, to avoid building e-regex.o.
* lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate.
* lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
* lib/regex_internal.h, lib/regexec.c, m4/builtin-expect.m4:
* m4/eealloc.m4, m4/glibc21.m4, m4/mbstate_t.m4, m4/regex.m4:
New files, copied from Gnulib.
* src/regex-emacs.h, src/conf_post.h:
(RE_TRANSLATE_TYPE, RE_TRANSLATE, RE_TRANSLATE_P):
Move from src/conf_post.h to src/regex-emacs.h,
so that they don’t interfere with compiling lib/regex.c.
2018-08-05 19:36:09 -07:00
..
_Noreturn.h Merge from gnulib 2017-03-14 14:50:02 -07:00
acl_entries.c Merge from Gnulib 2017-12-31 17:21:33 -08:00
acl-errno-valid.c Merge from Gnulib 2017-12-31 17:21:33 -08:00
acl-internal.c Update from Gnulib 2018-06-29 17:32:35 -07:00
acl-internal.h Update from Gnulib 2018-06-29 17:32:35 -07:00
acl.h Merge from Gnulib 2017-12-31 17:21:33 -08:00
alloca.in.h Merge from Gnulib 2017-12-31 17:21:33 -08:00
allocator.c
allocator.h Merge from Gnulib 2017-12-31 17:21:33 -08:00
arg-nonnull.h Merge from Gnulib 2017-12-31 17:21:33 -08:00
at-func.c Merge from Gnulib 2017-12-31 17:21:33 -08:00
binary-io.c Merge from Gnulib 2017-12-31 17:21:33 -08:00
binary-io.h Update from Gnulib 2018-03-07 17:56:28 -08:00
byteswap.in.h Merge from Gnulib 2017-12-31 17:21:33 -08:00
c-ctype.c Merge from gnulib 2015-09-25 00:23:18 -07:00
c-ctype.h Merge from Gnulib 2017-12-31 17:21:33 -08:00
c-strcase.h Merge from Gnulib 2017-12-31 17:21:33 -08:00
c-strcasecmp.c Merge from Gnulib 2017-12-31 17:21:33 -08:00
c-strncasecmp.c Merge from Gnulib 2017-12-31 17:21:33 -08:00
c++defs.h Merge from Gnulib 2017-12-31 17:21:33 -08:00
careadlinkat.c Merge from Gnulib 2017-12-31 17:21:33 -08:00
careadlinkat.h Merge from Gnulib 2017-12-31 17:21:33 -08:00
cloexec.c Merge from Gnulib 2017-12-31 17:21:33 -08:00
cloexec.h Merge from Gnulib 2017-12-31 17:21:33 -08:00
close-stream.c Merge from Gnulib 2017-12-31 17:21:33 -08:00
close-stream.h
COPYING Merge from Gnulib 2017-10-01 18:31:10 -07:00
count-leading-zeros.c logb now works correctly on large integers 2017-03-03 09:19:08 -08:00
count-leading-zeros.h Merge from Gnulib 2017-12-31 17:21:33 -08:00
count-one-bits.c Improve support for popcount and counting trailing zeros. 2013-10-07 14:37:19 -07:00
count-one-bits.h Merge from Gnulib 2017-12-31 17:21:33 -08:00
count-trailing-zeros.c Improve support for popcount and counting trailing zeros. 2013-10-07 14:37:19 -07:00
count-trailing-zeros.h Merge from Gnulib 2017-12-31 17:21:33 -08:00
diffseq.h Merge from Gnulib 2017-12-31 17:21:33 -08:00
dirent.in.h Merge from Gnulib 2017-12-31 17:21:33 -08:00
dirfd.c Merge from Gnulib 2017-12-31 17:21:33 -08:00
dosname.h Update from Gnulib 2018-05-21 11:43:07 -07:00
dtoastr.c
dtotimespec.c Merge from Gnulib 2017-12-31 17:21:33 -08:00
dup2.c Update from Gnulib 2018-05-21 11:43:07 -07:00
errno.in.h Update from Gnulib 2018-05-21 11:43:07 -07:00
euidaccess.c Update from Gnulib 2018-05-21 11:43:07 -07:00
execinfo.c
execinfo.in.h Merge from Gnulib 2017-12-31 17:21:33 -08:00
explicit_bzero.c Merge from Gnulib 2017-12-31 17:21:33 -08:00
faccessat.c Merge from Gnulib 2017-12-31 17:21:33 -08:00
fcntl.c Update from Gnulib 2018-05-21 11:43:07 -07:00
fcntl.in.h Update from Gnulib 2018-05-21 11:43:07 -07:00
fdatasync.c Merge from Gnulib 2017-12-31 17:21:33 -08:00
fdopendir.c Merge from Gnulib 2017-12-31 17:21:33 -08:00
filemode.c Merge from Gnulib 2017-12-31 17:21:33 -08:00
filemode.h Merge from Gnulib 2017-12-31 17:21:33 -08:00
filevercmp.c Merge from Gnulib 2017-12-31 17:21:33 -08:00
filevercmp.h Merge from Gnulib 2017-12-31 17:21:33 -08:00
flexmember.h Merge from Gnulib 2017-12-31 17:21:33 -08:00
fpending.c Update from Gnulib 2018-05-21 11:43:07 -07:00
fpending.h Merge from Gnulib 2017-12-31 17:21:33 -08:00
fstatat.c Merge from Gnulib 2017-12-31 17:21:33 -08:00
fsusage.c Merge from gnulib, mostly to fix copyright years 2018-01-01 01:25:56 -08:00
fsusage.h Update copyright year to 2018 2018-01-01 01:25:56 -08:00
fsync.c Update from Gnulib 2018-05-21 11:43:07 -07:00
ftoastr.c Merge from Gnulib 2017-12-31 17:21:33 -08:00
ftoastr.h Merge from Gnulib 2017-12-31 17:21:33 -08:00
get-permissions.c Update from Gnulib 2018-06-29 17:32:35 -07:00
getdtablesize.c Update from Gnulib 2018-05-21 11:43:07 -07:00
getgroups.c Merge from Gnulib 2017-12-31 17:21:33 -08:00
getloadavg.c Update from Gnulib 2018-07-03 23:51:31 -07:00
getopt1.c Merge from Gnulib 2017-12-31 17:21:33 -08:00
getopt_int.h Merge from Gnulib 2017-12-31 17:21:33 -08:00
getopt-cdefs.in.h Merge from Gnulib 2017-12-31 17:21:33 -08:00
getopt-core.h Merge from Gnulib 2017-12-31 17:21:33 -08:00
getopt-ext.h Merge from Gnulib 2017-12-31 17:21:33 -08:00
getopt-pfx-core.h Merge from Gnulib 2017-12-31 17:21:33 -08:00
getopt-pfx-ext.h Merge from Gnulib 2017-12-31 17:21:33 -08:00
getopt.c Update from Gnulib 2018-05-21 11:43:07 -07:00
getopt.in.h Merge from Gnulib 2017-12-31 17:21:33 -08:00
gettext.h Merge from Gnulib 2017-12-31 17:21:33 -08:00
gettime.c Merge from Gnulib 2017-12-31 17:21:33 -08:00
gettimeofday.c Update from Gnulib 2018-06-29 17:32:35 -07:00
gnulib.mk.in Use Gnulib regex for lib-src 2018-08-05 19:36:09 -07:00
group-member.c Merge from Gnulib 2017-12-31 17:21:33 -08:00
ieee754.in.h Substitute a <ieee754.h> on hosts lacking it 2018-08-01 19:01:51 -07:00
ignore-value.h Merge from Gnulib 2017-12-31 17:21:33 -08:00
intprops.h Merge from Gnulib 2017-12-31 17:21:33 -08:00
inttypes.in.h Update from Gnulib 2018-05-21 11:43:07 -07:00
limits.in.h Merge from Gnulib 2017-12-31 17:21:33 -08:00
localtime-buffer.c Merge from Gnulib 2017-12-31 17:21:33 -08:00
localtime-buffer.h Merge from Gnulib 2017-12-31 17:21:33 -08:00
lstat.c Merge from Gnulib 2017-12-31 17:21:33 -08:00
Makefile.in Use Gnulib regex for lib-src 2018-08-05 19:36:09 -07:00
md5.c Update from Gnulib 2018-06-29 17:32:35 -07:00
md5.h Update from Gnulib 2018-05-21 11:43:07 -07:00
memrchr.c Merge from Gnulib 2017-12-31 17:21:33 -08:00
min-max.h
minmax.h Merge from Gnulib 2017-12-31 17:21:33 -08:00
mkostemp.c Merge from Gnulib 2017-12-31 17:21:33 -08:00
mktime-internal.h Merge from Gnulib 2017-12-31 17:21:33 -08:00
mktime.c Merge from Gnulib 2017-12-31 17:21:33 -08:00
nstrftime.c Update from gnulib 2018-02-01 09:21:39 -08:00
open.c Update from Gnulib 2018-05-21 11:43:07 -07:00
openat-die.c Limit <config.h>’s includes 2016-09-30 12:38:52 -07:00
openat-priv.h Merge from Gnulib 2017-12-31 17:21:33 -08:00
openat-proc.c Merge from Gnulib 2017-12-31 17:21:33 -08:00
openat.h Merge from Gnulib 2017-12-31 17:21:33 -08:00
pipe2.c Update from Gnulib 2018-05-21 11:43:07 -07:00
pselect.c Update from Gnulib 2018-06-29 17:32:35 -07:00
pthread_sigmask.c Merge from Gnulib 2017-12-31 17:21:33 -08:00
putenv.c Update from Gnulib 2018-05-21 11:43:07 -07:00
qcopy-acl.c Merge from Gnulib 2017-12-31 17:21:33 -08:00
readlink.c Merge from Gnulib 2017-12-31 17:21:33 -08:00
readlinkat.c Merge from Gnulib 2017-12-31 17:21:33 -08:00
regcomp.c Use Gnulib regex for lib-src 2018-08-05 19:36:09 -07:00
regex_internal.c Use Gnulib regex for lib-src 2018-08-05 19:36:09 -07:00
regex_internal.h Use Gnulib regex for lib-src 2018-08-05 19:36:09 -07:00
regex.c Use Gnulib regex for lib-src 2018-08-05 19:36:09 -07:00
regex.h Use Gnulib regex for lib-src 2018-08-05 19:36:09 -07:00
regexec.c Use Gnulib regex for lib-src 2018-08-05 19:36:09 -07:00
root-uid.h Merge from Gnulib 2017-12-31 17:21:33 -08:00
save-cwd.c Update copyright year to 2018 2018-01-01 00:57:59 -08:00
save-cwd.h Update copyright year to 2018 2018-01-01 00:57:59 -08:00
set-permissions.c Update from Gnulib 2018-06-29 17:32:35 -07:00
sha1.c Update from Gnulib 2018-06-29 17:32:35 -07:00
sha1.h Update from Gnulib 2018-05-21 11:43:07 -07:00
sha256.c Update from Gnulib 2018-06-29 17:32:35 -07:00
sha256.h Update from Gnulib 2018-05-21 11:43:07 -07:00
sha512.c Update from Gnulib 2018-06-29 17:32:35 -07:00
sha512.h Update from Gnulib 2018-05-21 11:43:07 -07:00
sig2str.c Merge from Gnulib 2017-12-31 17:21:33 -08:00
sig2str.h Merge from Gnulib 2017-12-31 17:21:33 -08:00
signal.in.h Merge from Gnulib 2018-01-09 15:22:37 -08:00
stat-time.c
stat-time.h Update from Gnulib 2018-05-21 11:43:07 -07:00
stdalign.in.h Merge from Gnulib 2017-12-31 17:21:33 -08:00
stddef.in.h Merge from Gnulib 2017-12-31 17:21:33 -08:00
stdint.in.h Merge from Gnulib 2017-12-31 17:21:33 -08:00
stdio-impl.h Update from Gnulib 2018-05-21 11:43:07 -07:00
stdio.in.h Update from Gnulib 2018-05-21 11:43:07 -07:00
stdlib.in.h Update from Gnulib 2018-05-21 11:43:07 -07:00
stpcpy.c Merge from Gnulib 2017-12-31 17:21:33 -08:00
strftime.h Merge from Gnulib 2017-12-31 17:21:33 -08:00
string.in.h Merge from Gnulib 2017-12-31 17:21:33 -08:00
strtoimax.c Merge from Gnulib 2017-12-31 17:21:33 -08:00
strtol.c Merge from Gnulib 2017-12-31 17:21:33 -08:00
strtoll.c Merge from Gnulib 2017-12-31 17:21:33 -08:00
symlink.c Merge from Gnulib 2017-12-31 17:21:33 -08:00
sys_select.in.h Merge from Gnulib 2017-12-31 17:21:33 -08:00
sys_stat.in.h Update from Gnulib 2018-05-21 11:43:07 -07:00
sys_time.in.h Merge from Gnulib 2017-12-31 17:21:33 -08:00
sys_types.in.h Update from Gnulib 2018-05-21 11:43:07 -07:00
tempname.c Merge from Gnulib 2017-12-31 17:21:33 -08:00
tempname.h Merge from Gnulib 2017-12-31 17:21:33 -08:00
time_r.c Merge from Gnulib 2017-12-31 17:21:33 -08:00
time_rz.c Update from Gnulib 2018-03-27 13:31:23 -07:00
time-internal.h Merge from Gnulib 2017-12-31 17:21:33 -08:00
time.in.h Update from Gnulib 2018-06-29 17:32:35 -07:00
timegm.c Merge from Gnulib 2017-12-31 17:21:33 -08:00
timespec-add.c Merge from Gnulib 2017-12-31 17:21:33 -08:00
timespec-sub.c Merge from Gnulib 2017-12-31 17:21:33 -08:00
timespec.c
timespec.h Update from Gnulib 2018-05-21 11:43:07 -07:00
u64.c Merge from gnulib 2015-10-13 23:34:47 -07:00
u64.h Merge from Gnulib 2017-12-31 17:21:33 -08:00
unistd.c Merge from gnulib 2015-10-13 23:34:47 -07:00
unistd.in.h Update from gnulib 2018-08-05 17:40:48 -07:00
unlocked-io.h Merge from Gnulib 2017-12-31 17:21:33 -08:00
utimens.c Update from Gnulib 2018-05-21 11:43:07 -07:00
utimens.h Merge from Gnulib 2017-12-31 17:21:33 -08:00
verify.h Merge from Gnulib 2017-12-31 17:21:33 -08:00
vla.h Merge from Gnulib 2017-12-31 17:21:33 -08:00
warn-on-use.h Update from gnulib 2018-08-05 17:40:48 -07:00
xalloc-oversized.h Merge from Gnulib 2017-12-31 17:21:33 -08:00