summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/luatexdir/tex/mainbody.c
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/web2c/luatexdir/tex/mainbody.c')
-rw-r--r--Build/source/texk/web2c/luatexdir/tex/mainbody.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/Build/source/texk/web2c/luatexdir/tex/mainbody.c b/Build/source/texk/web2c/luatexdir/tex/mainbody.c
index 066ca2866eb..cf42b68bfb6 100644
--- a/Build/source/texk/web2c/luatexdir/tex/mainbody.c
+++ b/Build/source/texk/web2c/luatexdir/tex/mainbody.c
@@ -311,6 +311,10 @@ int get_luatexversion(void)
int total_pages = 0;
+/*tex abort when DVI exceeds 65535 pages */
+
+int check_dvi_total_pages = 1;
+
/*tex recent outputs that didn't ship anything out */
int dead_cycles = 0;
@@ -650,16 +654,6 @@ void close_files_and_terminate(void)
}
}
wake_up_terminal();
- /* DVI format only supports 2^16 pages. If we have more than that,
- give an error. Original TeX does not, but nowadays people might
- have larger files, especially with tex4ht, which makes profligate
- use of pages, so it's useful to explicitly complain.
- */
- if (get_o_mode() == OMODE_DVI && total_pages > 65536) {
- formatted_error("dvi backend",
- "more than 65536 pages is unsupported: %d", total_pages);
- history = fatal_error_stop;
- }
/*tex
Rubish, these \PDF arguments, passed, needs to be fixed, e.g. with a
dummy in \DVI.