summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/gftodvi.ch
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2012-02-06 14:51:33 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2012-02-06 14:51:33 +0000
commit28d6df0334340cc773572c1c4897bdc640d5423a (patch)
tree6e52cce35b8d4b8ff25904ba0a8826ed9a2ebc62 /Build/source/texk/web2c/gftodvi.ch
parentedcc5909521192431cf3dc89feada0b78a307c22 (diff)
GFtoDVI: write DVI file with error checking (as in TeX)
git-svn-id: svn://tug.org/texlive/trunk@25318 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/gftodvi.ch')
-rw-r--r--Build/source/texk/web2c/gftodvi.ch8
1 files changed, 3 insertions, 5 deletions
diff --git a/Build/source/texk/web2c/gftodvi.ch b/Build/source/texk/web2c/gftodvi.ch
index 3a523ec8163..5e0092cee7c 100644
--- a/Build/source/texk/web2c/gftodvi.ch
+++ b/Build/source/texk/web2c/gftodvi.ch
@@ -468,11 +468,9 @@ var k:dvi_index;
begin for k:=a to b do write(dvi_file,dvi_buf[k]);
end;
@y
-In C, we can write out the entire array with one call.
-@p procedure write_dvi(@!a,@!b:dvi_index);
-begin
- write_chunk (dvi_file, dvi_buf, a, b);
-end;
+In C, we use a macro to call |fwrite| or |write| directly, writing all
+the bytes in one shot. Much better even than writing four
+bytes at a time.
@z
@x [108] dvi_swap: check dvi file size