diff options
Diffstat (limited to 'Build/source/texk/web2c/luatexdir/tex')
-rw-r--r-- | Build/source/texk/web2c/luatexdir/tex/mainbody.c | 14 | ||||
-rw-r--r-- | Build/source/texk/web2c/luatexdir/tex/mainbody.h | 1 |
2 files changed, 5 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. diff --git a/Build/source/texk/web2c/luatexdir/tex/mainbody.h b/Build/source/texk/web2c/luatexdir/tex/mainbody.h index 011b1958c5e..6aa7a15f647 100644 --- a/Build/source/texk/web2c/luatexdir/tex/mainbody.h +++ b/Build/source/texk/web2c/luatexdir/tex/mainbody.h @@ -148,6 +148,7 @@ extern boolean haltingonerrorp; extern boolean quoted_filename; extern int total_pages; +extern int check_dvi_total_pages; extern int dead_cycles; /* |