diff options
author | Taco Hoekwater <taco@elvenkind.com> | 2010-06-10 17:09:33 +0000 |
---|---|---|
committer | Taco Hoekwater <taco@elvenkind.com> | 2010-06-10 17:09:33 +0000 |
commit | b07c45ce0346104798d9922961bd425b16e642db (patch) | |
tree | cf850489a4e2b461b45e8a90ce0e243b421a7429 /Build/source/texk/web2c/luatexdir/tex | |
parent | ce64726315bd1a7a64b2894079b6c6aa2f9d379f (diff) |
fix endianness of format files
git-svn-id: svn://tug.org/texlive/trunk@18874 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/luatexdir/tex')
-rw-r--r-- | Build/source/texk/web2c/luatexdir/tex/texfileio.w | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/Build/source/texk/web2c/luatexdir/tex/texfileio.w b/Build/source/texk/web2c/luatexdir/tex/texfileio.w index f19f7873339..73ca7146192 100644 --- a/Build/source/texk/web2c/luatexdir/tex/texfileio.w +++ b/Build/source/texk/web2c/luatexdir/tex/texfileio.w @@ -23,7 +23,7 @@ #include <kpathsea/absolute.h> static const char _svn_version[] = - "$Id: texfileio.w 3612 2010-04-13 09:29:42Z taco $" + "$Id: texfileio.w 3719 2010-06-10 16:58:16Z taco $" "$URL: http://foundry.supelec.fr/svn/luatex/branches/0.60.x/source/texk/web2c/luatexdir/tex/texfileio.w $"; @ @c @@ -913,7 +913,10 @@ is needed. @c static gzFile gz_fmtfile = NULL; -@ @c +@ That second swap is to make sure following calls don't get +confused in the case of |dump_things|. + +@c void do_zdump(char *p, int item_size, int nitems, FILE * out_file) { int err; @@ -929,6 +932,9 @@ void do_zdump(char *p, int item_size, int nitems, FILE * out_file) item_size, gzerror(gz_fmtfile, &err)); uexit(1); } +#if !defined (WORDS_BIGENDIAN) && !defined (NO_DUMP_SHARE) + swap_items(p, nitems, item_size); +#endif } @ @c |