summaryrefslogtreecommitdiff
path: root/Build/source/texk/chktex
diff options
context:
space:
mode:
authorHironobu Yamashita <h.y.acetaminophen@gmail.com>2021-07-13 10:52:31 +0000
committerHironobu Yamashita <h.y.acetaminophen@gmail.com>2021-07-13 10:52:31 +0000
commit64474c87a93ca01caa60f05d6ccebf4b0d8ca606 (patch)
tree9d67eff062b41410cf825942e42d01262609e552 /Build/source/texk/chktex
parent1683f7658ce7f282558a140237f5c130726ce085 (diff)
chktex/regex: sync with pdftexdir/regex
git-svn-id: svn://tug.org/texlive/trunk@59913 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/chktex')
-rw-r--r--Build/source/texk/chktex/ChangeLog4
-rw-r--r--Build/source/texk/chktex/regex/regex_internal.h3
2 files changed, 7 insertions, 0 deletions
diff --git a/Build/source/texk/chktex/ChangeLog b/Build/source/texk/chktex/ChangeLog
index cb55112e3fd..46cb3e45174 100644
--- a/Build/source/texk/chktex/ChangeLog
+++ b/Build/source/texk/chktex/ChangeLog
@@ -1,3 +1,7 @@
+2021-07-13 Hironobu Yamashita <h.y.acetaminophen@gmail.com>
+
+ * regex/regex_internal.h: sync with pdftexdir/regex 2017-02-16.
+
2017-03-27 Karl Berry <karl@freefriends.org>
* Makefile.am (AM_TESTS_ENVIRONMENT): use instead of TESTS_ENVIRONMENT.
diff --git a/Build/source/texk/chktex/regex/regex_internal.h b/Build/source/texk/chktex/regex/regex_internal.h
index b0c4d355abb..6b6abca9e6d 100644
--- a/Build/source/texk/chktex/regex/regex_internal.h
+++ b/Build/source/texk/chktex/regex/regex_internal.h
@@ -1,4 +1,5 @@
/* Extended regular expression matching and search library.
+ Copyright (C) 2017 Karl Berry <tex-live@tug.org>
Copyright (C) 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>.
@@ -420,6 +421,7 @@ static unsigned int re_string_context_at (const re_string_t *input, int idx,
#define re_string_skip_bytes(pstr,idx) ((pstr)->cur_idx += (idx))
#define re_string_set_index(pstr,idx) ((pstr)->cur_idx = (idx))
+#ifndef alloca /* if alloca is already defined, fine */
#ifdef __GNUC__
# define alloca(size) __builtin_alloca (size)
# define HAVE_ALLOCA 1
@@ -430,6 +432,7 @@ static unsigned int re_string_context_at (const re_string_t *input, int idx,
#else
# error No alloca()
#endif
+#endif /* not alloca */
#ifndef _LIBC
# if HAVE_ALLOCA