From 64474c87a93ca01caa60f05d6ccebf4b0d8ca606 Mon Sep 17 00:00:00 2001 From: Hironobu Yamashita Date: Tue, 13 Jul 2021 10:52:31 +0000 Subject: chktex/regex: sync with pdftexdir/regex git-svn-id: svn://tug.org/texlive/trunk@59913 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/chktex/ChangeLog | 4 ++++ Build/source/texk/chktex/regex/regex_internal.h | 3 +++ 2 files changed, 7 insertions(+) (limited to 'Build/source') 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 + + * regex/regex_internal.h: sync with pdftexdir/regex 2017-02-16. + 2017-03-27 Karl Berry * 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 Copyright (C) 2002, 2003, 2004, 2005 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Isamu Hasegawa . @@ -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 -- cgit v1.2.3