texlive[43243] Build/source/texk/web2c/pdftexdir: avoid re-#define

commits+karl at tug.org commits+karl at tug.org
Thu Feb 16 17:32:45 CET 2017


Revision: 43243
          http://tug.org/svn/texlive?view=revision&revision=43243
Author:   karl
Date:     2017-02-16 17:32:45 +0100 (Thu, 16 Feb 2017)
Log Message:
-----------
avoid re-#define alloca, pdftex r765

Revision Links:
--------------
    http://tug.org/svn/texlive?view=revision&revision=765

Modified Paths:
--------------
    trunk/Build/source/texk/web2c/pdftexdir/ChangeLog
    trunk/Build/source/texk/web2c/pdftexdir/regex/regex_internal.h

Modified: trunk/Build/source/texk/web2c/pdftexdir/ChangeLog
===================================================================
--- trunk/Build/source/texk/web2c/pdftexdir/ChangeLog	2017-02-16 13:07:47 UTC (rev 43242)
+++ trunk/Build/source/texk/web2c/pdftexdir/ChangeLog	2017-02-16 16:32:45 UTC (rev 43243)
@@ -1,3 +1,10 @@
+2017-02-16  Karl Berry  <karl at freefriends.org>
+
+	* regex/regex_internal.h (alloca) [!alloca]: do not try
+	to #define if already #defined.
+	Report from Vincent Torri on tex-live list, 7 Jul 2016 10:48:15.
+	(pdftex r765)
+
 2016-11-05  Karl Berry  <karl at tug.org>
 
 	* pdftoepdf.cc: doc fix.
@@ -17,7 +24,18 @@
 	plus check that rm_eo >= rm_so.
 	Original bug report from David Carlisle,
         http://tug.org/pipermail/tex-live/2016-June/038664.html
+        (pdftex r759)
 
+2016-06-12  Karl Berry  <karl at freefriends.org>
+        and Akira Kakuto  <kakuto at fuk.kindai.ac.jp>
+
+	* utils.c (last_match_succeeded): new static boolean.
+	(matchstrings): set it.
+	(getmatch): use it, plus check for non-NULL match_string sooner,
+	plus check that rm_eo >= rm_so.
+	Original bug report from David Carlisle,
+        http://tug.org/pipermail/tex-live/2016-June/038664.html
+
 2016-05-20  Karl Berry  <karl at tug.org>
 
 	* TeX Live 2016 release.
@@ -336,7 +354,7 @@
 2012-08-08  Akira Kakuto  <kakuto at fuk.kindai.ac.jp>
 
 	* ptexlib.h: extern void writestreamlength(longinteger, longinteger);
-	for largefile. 
+	for largefile.
 	extern void storepacket(internalfontnumber, integer, strnumber); to
 	avoid a compiler warning.
 	* utils.c: void writestreamlength(longinteger length, longinteger offset)
@@ -421,7 +439,7 @@
 	(escape_eol): new fn, replacing print_str, now returning a string.
 
 	* writettf.c (ttf_reindex_glyphs): use %n to sscanf forms
-	uniABCD and index123. 
+	uniABCD and index123.
 
 	* mapfile.c (suppress_warn): way to avoid dup warnings.
 	
@@ -594,7 +612,7 @@
 	* pdftexextra.c (new): #include <pdftexd.h> and <lib/texmfmp.c>.
 
 	* am/pdftex.am: pdftexextra.[ch] are now distributed;
-	create {e,pdf}tex_version.h instead of {e,pdf}tex.version. 
+	create {e,pdf}tex_version.h instead of {e,pdf}tex.version.
 
 2010-12-01  Peter Breitenlohner  <peb at mppmu.mpg.de>
 
@@ -803,7 +821,7 @@
 
 	* writet1.c (append_cs_return): Drop unused local variable 'k'.
 
-	* avlstuff.c (destroy_oentry, PdfObjTree_free), 
+	* avlstuff.c (destroy_oentry, PdfObjTree_free),
 	writet1.c (free_glyph_names):
 	Skip unused static functions (via #if 0 ... #endif).
 
@@ -916,7 +934,7 @@
 
 2009-06-25  Peter Breitenlohner  <peb at mppmu.mpg.de>
 
-	* epdf.h, ttf2afm.c, writet1.c: 
+	* epdf.h, ttf2afm.c, writet1.c:
 	removed #include <kpathsea/c-proto.h>.
 	* avlstuff.c, epdf.c: removed #include <kpathsea/c-proto.h> and
 	#include <stdarg.h>.

Modified: trunk/Build/source/texk/web2c/pdftexdir/regex/regex_internal.h
===================================================================
--- trunk/Build/source/texk/web2c/pdftexdir/regex/regex_internal.h	2017-02-16 13:07:47 UTC (rev 43242)
+++ trunk/Build/source/texk/web2c/pdftexdir/regex/regex_internal.h	2017-02-16 16:32:45 UTC (rev 43243)
@@ -1,4 +1,5 @@
 /* Extended regular expression matching and search library.
+   Copyright (C) 2017 Karl Berry <tex-live at 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 at yamato.ibm.com>.
@@ -420,6 +421,7 @@
 #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 @@
 #else
 # error No alloca()
 #endif
+#endif /* not alloca */
 
 #ifndef _LIBC
 # if HAVE_ALLOCA



More information about the tex-live-commits mailing list