diff options
author | Karl Berry <karl@freefriends.org> | 2019-12-10 18:39:13 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2019-12-10 18:39:13 +0000 |
commit | fb79a713b57e5f60ec8b94b5559602fb12368c80 (patch) | |
tree | 5cb515f13dcdf1af615ad11024fd981637161a91 /Build/source/texk/web2c/texmfmp.h | |
parent | 2bc8de74125743b8e3fb84e02f33c65bf9959e82 (diff) |
compress (with zlib) .fmt files for all but tex and aleph, following xetex; from Hironori KITAGAWA
git-svn-id: svn://tug.org/texlive/trunk@53078 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/texmfmp.h')
-rw-r--r-- | Build/source/texk/web2c/texmfmp.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/Build/source/texk/web2c/texmfmp.h b/Build/source/texk/web2c/texmfmp.h index b12281d1ffd..f5b8cce6736 100644 --- a/Build/source/texk/web2c/texmfmp.h +++ b/Build/source/texk/web2c/texmfmp.h @@ -248,6 +248,14 @@ extern void topenin (void); #define aclose(f) close_file_or_pipe(f) #endif +/* define FMT_COMPRESS for engines which compress formats */ +#if defined(pTeX) || defined(epTeX) || defined(upTeX) || defined(eupTeX) +#define FMT_COMPRESS 1 +#endif +#if defined(eTeX) || defined(pdfTeX) || defined(XeTeX) +#define FMT_COMPRESS 1 +#endif + /* `bopenin' (and out) is used only for reading (and writing) .tfm files; `wopenin' (and out) only for dump files. The filenames are passed in as a global variable, `nameoffile'. */ @@ -257,7 +265,7 @@ extern void topenin (void); #define bopenout(f) open_output (&(f), FOPEN_WBIN_MODE) #define bclose aclose -#ifdef XeTeX +#ifdef FMT_COMPRESS /* f is declared as gzFile, but we temporarily use it for a FILE * so that we can use the standard open calls */ #define wopenin(f) (open_input ((FILE**)&(f), DUMP_FORMAT, FOPEN_RBIN_MODE) \ @@ -352,7 +360,7 @@ extern void paintrow (/*screenrow, pixelcolor, transspec, screencol*/); } while (0) /* We define the routines to do the actual work in texmfmp.c. */ -#ifdef XeTeX +#ifdef FMT_COMPRESS #include <zlib.h> extern void do_dump (char *, int, int, gzFile); extern void do_undump (char *, int, int, gzFile); |