1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-20 10:23:57 +00:00
emacs/m4
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
..
00gnulib.m4 Merge from Gnulib 2017-12-31 17:21:33 -08:00
absolute-header.m4 Merge from Gnulib 2017-12-31 17:21:33 -08:00
acl.m4 Merge from Gnulib 2017-12-31 17:21:33 -08:00
alloca.m4 Merge from Gnulib 2017-12-31 17:21:33 -08:00
builtin-expect.m4 Use Gnulib regex for lib-src 2018-08-05 19:36:09 -07:00
byteswap.m4 Merge from Gnulib 2017-12-31 17:21:33 -08:00
c-strtod.m4 Update from Gnulib 2018-05-21 11:43:07 -07:00
clock_time.m4 Merge from Gnulib 2017-12-31 17:21:33 -08:00
close-stream.m4 Merge from Gnulib 2017-12-31 17:21:33 -08:00
count-leading-zeros.m4 Merge from Gnulib 2017-12-31 17:21:33 -08:00
count-one-bits.m4 Merge from Gnulib 2017-12-31 17:21:33 -08:00
count-trailing-zeros.m4 Merge from Gnulib 2017-12-31 17:21:33 -08:00
d-type.m4 Merge from Gnulib 2017-12-31 17:21:33 -08:00
dirent_h.m4 Merge from Gnulib 2017-12-31 17:21:33 -08:00
dirfd.m4 Merge from Gnulib 2017-12-31 17:21:33 -08:00
dup2.m4 Merge from Gnulib 2017-12-31 17:21:33 -08:00
eealloc.m4 Use Gnulib regex for lib-src 2018-08-05 19:36:09 -07:00
environ.m4 Merge from Gnulib 2017-12-31 17:21:33 -08:00
errno_h.m4 Merge from Gnulib 2017-12-31 17:21:33 -08:00
euidaccess.m4 Merge from Gnulib 2017-12-31 17:21:33 -08:00
execinfo.m4 Merge from Gnulib 2017-12-31 17:21:33 -08:00
explicit_bzero.m4 Merge from Gnulib 2017-12-31 17:21:33 -08:00
extensions.m4 Update from gnulib 2018-02-01 09:21:39 -08:00
extern-inline.m4 Update from gnulib 2018-08-05 17:40:48 -07:00
faccessat.m4 Merge from Gnulib 2017-12-31 17:21:33 -08:00
fcntl_h.m4 Merge from Gnulib 2017-12-31 17:21:33 -08:00
fcntl.m4 Merge from Gnulib 2017-12-31 17:21:33 -08:00
fdatasync.m4 Merge from Gnulib 2017-12-31 17:21:33 -08:00
fdopendir.m4 Merge from Gnulib 2017-12-31 17:21:33 -08:00
filemode.m4 Merge from Gnulib 2017-12-31 17:21:33 -08:00
flexmember.m4 Merge from Gnulib 2017-12-31 17:21:33 -08:00
fpending.m4 Merge from Gnulib 2017-12-31 17:21:33 -08:00
fpieee.m4 Fix floating point exceptions on Alpha (Bug#32086) 2018-07-08 09:26:22 -07:00
fstatat.m4 Merge from Gnulib 2017-12-31 17:21:33 -08:00
fsusage.m4 Merge from gnulib, mostly to fix copyright years 2018-01-01 01:25:56 -08:00
fsync.m4 Merge from Gnulib 2017-12-31 17:21:33 -08:00
getdtablesize.m4 Merge from Gnulib 2017-12-31 17:21:33 -08:00
getgroups.m4 Merge from Gnulib 2017-12-31 17:21:33 -08:00
getloadavg.m4 Update from Gnulib 2018-06-29 17:32:35 -07:00
getopt.m4 Merge from Gnulib 2017-12-31 17:21:33 -08:00
gettime.m4 Merge from Gnulib 2017-12-31 17:21:33 -08:00
gettimeofday.m4 Merge from Gnulib 2017-12-31 17:21:33 -08:00
glibc21.m4 Use Gnulib regex for lib-src 2018-08-05 19:36:09 -07:00
gnulib-common.m4 Update from Gnulib 2018-06-29 17:32:35 -07:00
gnulib-comp.m4 Use Gnulib regex for lib-src 2018-08-05 19:36:09 -07:00
group-member.m4 Merge from Gnulib 2017-12-31 17:21:33 -08:00
ieee754-h.m4 Substitute a <ieee754.h> on hosts lacking it 2018-08-01 19:01:51 -07:00
include_next.m4 Merge from Gnulib 2017-12-31 17:21:33 -08:00
inttypes.m4 Update from Gnulib 2018-05-21 11:43:07 -07:00
largefile.m4 Merge from Gnulib 2017-12-31 17:21:33 -08:00
limits-h.m4 Merge from Gnulib 2017-12-31 17:21:33 -08:00
localtime-buffer.m4 Merge from Gnulib 2017-12-31 17:21:33 -08:00
longlong.m4 Merge from Gnulib 2017-12-31 17:21:33 -08:00
lstat.m4 Update from Gnulib 2018-05-21 11:43:07 -07:00
manywarnings.m4 Update from Gnulib 2018-07-03 23:51:31 -07:00
mbstate_t.m4 Use Gnulib regex for lib-src 2018-08-05 19:36:09 -07:00
md5.m4 Merge from Gnulib 2017-12-31 17:21:33 -08:00
memrchr.m4 Merge from Gnulib 2017-12-31 17:21:33 -08:00
minmax.m4 Merge from Gnulib 2017-12-31 17:21:33 -08:00
mkostemp.m4 Merge from Gnulib 2017-12-31 17:21:33 -08:00
mktime.m4 Merge from Gnulib 2017-12-31 17:21:33 -08:00
mode_t.m4 Merge from Gnulib 2017-12-31 17:21:33 -08:00
multiarch.m4 Merge from Gnulib 2017-12-31 17:21:33 -08:00
nocrash.m4 Update from Gnulib 2018-05-21 11:43:07 -07:00
nstrftime.m4 Merge from Gnulib 2017-12-31 17:21:33 -08:00
off_t.m4 Merge from Gnulib 2017-12-31 17:21:33 -08:00
open-cloexec.m4 Merge from Gnulib 2017-12-31 17:21:33 -08:00
open.m4 Merge from Gnulib 2017-12-31 17:21:33 -08:00
pipe2.m4 Merge from Gnulib 2017-12-31 17:21:33 -08:00
pkg.m4 Merge from pkg-config 2018-02-11 13:10:41 -08:00
pselect.m4 Update from Gnulib 2018-05-21 11:43:07 -07:00
pthread_sigmask.m4 Update from Gnulib 2018-06-29 17:32:35 -07:00
putenv.m4 Merge from Gnulib 2017-12-31 17:21:33 -08:00
readlink.m4 Update from Gnulib 2018-05-21 11:43:07 -07:00
readlinkat.m4 Merge from Gnulib 2017-12-31 17:21:33 -08:00
regex.m4 Use Gnulib regex for lib-src 2018-08-05 19:36:09 -07:00
sha1.m4 Merge from Gnulib 2017-12-31 17:21:33 -08:00
sha256.m4 Merge from Gnulib 2017-12-31 17:21:33 -08:00
sha512.m4 Merge from Gnulib 2017-12-31 17:21:33 -08:00
sig2str.m4 Merge from Gnulib 2017-12-31 17:21:33 -08:00
signal_h.m4 Merge from Gnulib 2017-12-31 17:21:33 -08:00
socklen.m4 Merge from Gnulib 2017-12-31 17:21:33 -08:00
ssize_t.m4 Merge from Gnulib 2017-12-31 17:21:33 -08:00
st_dm_mode.m4 Merge from Gnulib 2017-12-31 17:21:33 -08:00
stat-time.m4 Merge from Gnulib 2017-12-31 17:21:33 -08:00
std-gnu11.m4 Merge from Gnulib 2017-12-31 17:21:33 -08:00
stdalign.m4 Merge from Gnulib 2017-12-31 17:21:33 -08:00
stddef_h.m4 Merge from Gnulib 2017-12-31 17:21:33 -08:00
stdint.m4 Merge from Gnulib 2017-12-31 17:21:33 -08:00
stdio_h.m4 Update from Gnulib 2018-05-21 11:43:07 -07:00
stdlib_h.m4 Update from gnulib 2018-02-20 13:45:27 -08:00
stpcpy.m4 Merge from Gnulib 2017-12-31 17:21:33 -08:00
string_h.m4 Merge from Gnulib 2017-12-31 17:21:33 -08:00
strtoimax.m4 Merge from Gnulib 2017-12-31 17:21:33 -08:00
strtoll.m4 Merge from Gnulib 2017-12-31 17:21:33 -08:00
symlink.m4 Update from Gnulib 2018-05-21 11:43:07 -07:00
sys_select_h.m4 Merge from Gnulib 2017-12-31 17:21:33 -08:00
sys_socket_h.m4 Merge from Gnulib 2017-12-31 17:21:33 -08:00
sys_stat_h.m4 Merge from Gnulib 2017-12-31 17:21:33 -08:00
sys_time_h.m4 Merge from Gnulib 2017-12-31 17:21:33 -08:00
sys_types_h.m4 Merge from Gnulib 2017-12-31 17:21:33 -08:00
tempname.m4 Merge from Gnulib 2017-12-31 17:21:33 -08:00
time_h.m4 Merge from Gnulib 2017-12-31 17:21:33 -08:00
time_r.m4 Merge from Gnulib 2017-12-31 17:21:33 -08:00
time_rz.m4 Update from Gnulib 2018-03-28 14:23:20 -07:00
timegm.m4 Merge from Gnulib 2017-12-31 17:21:33 -08:00
timer_time.m4 Merge from Gnulib 2017-12-31 17:21:33 -08:00
timespec.m4 Merge from Gnulib 2017-12-31 17:21:33 -08:00
tm_gmtoff.m4 Merge from Gnulib 2017-12-31 17:21:33 -08:00
unistd_h.m4 Update from Gnulib 2018-05-21 11:43:07 -07:00
unlocked-io.m4 Merge from Gnulib 2017-12-31 17:21:33 -08:00
utimbuf.m4 Update copyright year to 2018 2018-01-01 00:57:59 -08:00
utimens.m4 Update from Gnulib 2018-05-21 11:43:07 -07:00
utimes.m4 Merge from Gnulib 2017-12-31 17:21:33 -08:00
vararrays.m4 Update from Gnulib 2018-06-29 17:32:35 -07:00
warnings.m4 Update from gnulib 2018-02-20 13:45:27 -08:00
wchar_t.m4 Merge from Gnulib 2017-12-31 17:21:33 -08:00