diff options
Diffstat (limited to 'Build/source/utils/m-tx/TLpatches')
-rw-r--r-- | Build/source/utils/m-tx/TLpatches/ChangeLog | 27 | ||||
-rw-r--r-- | Build/source/utils/m-tx/TLpatches/TL-Changes | 13 | ||||
-rw-r--r-- | Build/source/utils/m-tx/TLpatches/patch-01-write-bin | 12 | ||||
-rw-r--r-- | Build/source/utils/m-tx/TLpatches/patch-02-malloc | 12 | ||||
-rw-r--r-- | Build/source/utils/m-tx/TLpatches/patch-03-different-size | 16 |
5 files changed, 80 insertions, 0 deletions
diff --git a/Build/source/utils/m-tx/TLpatches/ChangeLog b/Build/source/utils/m-tx/TLpatches/ChangeLog new file mode 100644 index 00000000000..0f2b678a6c1 --- /dev/null +++ b/Build/source/utils/m-tx/TLpatches/ChangeLog @@ -0,0 +1,27 @@ +2016-02-10 Akira Kakuto <kakuto@fuk.kindai.ac.jp> + + * patch-01-write-bin, patch-02-malloc, patch-03-different-size: + Update for 0.62. + +2015-12-17 Akira Kakuto <kakuto@fuk.kindai.ac.jp> + + * patch-01-write-bin, patch-02-malloc, patch-03-different-size: + Update for 0.61. + +2013-04-10 Peter Breitenlohner <peb@mppmu.mpg.de> + + * patch-03-different-size: Avoid 'cast to pointer from integer of + different size' when sizeof(int) is less than sizeof(void *). + +2012-10-04 Peter Breitenlohner <peb@mppmu.mpg.de> + + * patch-02-malloc (new): Check value returned by malloc(), i.e., + undo action of sed from Makefile.orig. Do not use libp2c.a. + +2012-05-16 Peter Breitenlohner <peb@mppmu.mpg.de> + + * patch-01-write-bin (new): Use binary mode for output files. + From Akira Kakuto <kakuto@fuk.kindai.ac.jp> (W32TeX). + +Copyright (C) 2012 Peter Breitenlohner <tex-live@tug.org> +You may freely use, modify and/or distribute this file. diff --git a/Build/source/utils/m-tx/TLpatches/TL-Changes b/Build/source/utils/m-tx/TLpatches/TL-Changes new file mode 100644 index 00000000000..49723579796 --- /dev/null +++ b/Build/source/utils/m-tx/TLpatches/TL-Changes @@ -0,0 +1,13 @@ +Changes applied to the mtx-0.62 tree as obtained from: + http://www.ctan.org/tex-archive/support/m-tx/ + +Remove: + Makefile.in + aclocal.m4 + configure + depcomp + install-sh + missing + +Move to top directory: + tests/* diff --git a/Build/source/utils/m-tx/TLpatches/patch-01-write-bin b/Build/source/utils/m-tx/TLpatches/patch-01-write-bin new file mode 100644 index 00000000000..0c85cedf4f8 --- /dev/null +++ b/Build/source/utils/m-tx/TLpatches/patch-01-write-bin @@ -0,0 +1,12 @@ +diff -ur mtx-0.62.orig/globals.c mtx-0.62/globals.c +--- mtx-0.62.orig/globals.c Tue Feb 09 05:51:40 2016 ++++ mtx-0.62/globals.c Thu Feb 11 01:50:54 2016 +@@ -223,7 +223,7 @@ + if (outfile != NULL) + fclose(outfile); + outfile = NULL; +- outfile = fopen(outfile_NAME, "w"); ++ outfile = fopen(outfile_NAME, "wb"); + if (outfile == NULL) + _EscIO2(FileNotFound, outfile_NAME); + fclose(outfile); diff --git a/Build/source/utils/m-tx/TLpatches/patch-02-malloc b/Build/source/utils/m-tx/TLpatches/patch-02-malloc new file mode 100644 index 00000000000..178d04ee483 --- /dev/null +++ b/Build/source/utils/m-tx/TLpatches/patch-02-malloc @@ -0,0 +1,12 @@ +diff -ur mtx-0.62.orig/multfile.c mtx-0.62/multfile.c +--- mtx-0.62.orig/multfile.c Tue Feb 09 05:52:29 2016 ++++ mtx-0.62/multfile.c Thu Feb 11 01:52:08 2016 +@@ -61,7 +61,7 @@ + printf("===! Ignoring recursive include of file %s\n", filename); + return; + } +- newnode = malloc(sizeof(filenode)); ++ newnode = Malloc(sizeof(filenode)); + newnode->actualfile = NULL; + strcpy(newnode->name, filename); + newnode->prev = current; diff --git a/Build/source/utils/m-tx/TLpatches/patch-03-different-size b/Build/source/utils/m-tx/TLpatches/patch-03-different-size new file mode 100644 index 00000000000..d51fd15b774 --- /dev/null +++ b/Build/source/utils/m-tx/TLpatches/patch-03-different-size @@ -0,0 +1,16 @@ +diff -ur mtx-0.62.orig/libp2c/p2c.h mtx-0.62/libp2c/p2c.h +--- mtx-0.62.orig/libp2c/p2c.h Tue Feb 09 05:23:09 2016 ++++ mtx-0.62/libp2c/p2c.h Thu Feb 11 01:54:30 2016 +@@ -428,10 +428,10 @@ + + /* Memory allocation */ + #ifdef __GCC__ +-# define Malloc(n) (malloc(n) ?: (Anyptr)_OutMem()) ++# define Malloc(n) (malloc(n) ?: (Anyptr)(size_t)_OutMem()) + #else + extern Anyptr __MallocTemp__; +-# define Malloc(n) ((__MallocTemp__ = malloc(n)) ? __MallocTemp__ : (Anyptr)_OutMem()) ++# define Malloc(n) ((__MallocTemp__ = malloc(n)) ? __MallocTemp__ : (Anyptr)(size_t)_OutMem()) + #endif + #define FreeR(p) (free((Anyptr)(p))) /* used if arg is an rvalue */ + #define Free(p) (free((Anyptr)(p)), (p)=NULL) |