summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/luatexdir/tex/mainbody.w
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/web2c/luatexdir/tex/mainbody.w')
-rw-r--r--Build/source/texk/web2c/luatexdir/tex/mainbody.w32
1 files changed, 3 insertions, 29 deletions
diff --git a/Build/source/texk/web2c/luatexdir/tex/mainbody.w b/Build/source/texk/web2c/luatexdir/tex/mainbody.w
index 745a1531019..5936def5b9f 100644
--- a/Build/source/texk/web2c/luatexdir/tex/mainbody.w
+++ b/Build/source/texk/web2c/luatexdir/tex/mainbody.w
@@ -225,11 +225,6 @@ int get_luatexversion(void)
return luatex_version;
}
-int get_luatexsvn(void)
-{
- return luatex_svn;
-}
-
str_number get_luatexrevision(void)
{
return luatex_revision;
@@ -409,7 +404,7 @@ void main_body(void)
if (bad > 0) {
goto FINAL_END;
}
- print_banner(luatex_version_string, luatex_svn);
+ print_banner(luatex_version_string);
/* Get the first line of input and prepare to start */
/* When we begin the following code, \TeX's tables may still contain garbage;
@@ -441,10 +436,7 @@ void main_body(void)
if (draft_mode_option != 0) {
int_par(draft_mode_code) = draft_mode_value;
}
- /* this is specific for the pdf backend */
- if (int_par(draft_mode_code) != 0) { /* should move */
- static_pdf->draftmode = int_par(draft_mode_code);
- }
+ /* can this be moved? */
pdf_init_map_file((char *) pdftex_map);
/* */
if (end_line_char_inactive)
@@ -493,7 +485,6 @@ This program doesn't bother to close the input files that may still be open.
void close_files_and_terminate(void)
{
int callback_id;
- PDF pdf = static_pdf;
callback_id = callback_defined(stop_run_callback);
finalize_write_files();
if (int_par(tracing_stats_code) > 0) {
@@ -532,26 +523,9 @@ void close_files_and_terminate(void)
}
wake_up_terminal();
/* rubish, these pdf arguments, passed, needs to be fixed, e.g. with a dummy in dvi */
- ensure_output_state(pdf, ST_OMODE_FIX);
- switch (output_mode_used) {
- case OMODE_NONE: /* during initex run */
- break;
- case OMODE_PDF:
- if (history == fatal_error_stop) {
- remove_pdffile(pdf);
- print_err(" ==> Fatal error occurred, no output PDF file produced!");
- } else
- finish_pdf_file(pdf, luatex_version, get_luatexrevision());
- break;
- case OMODE_DVI:
- finish_dvi_file(pdf, luatex_version, get_luatexrevision());
- break;
- default:
- assert(0);
- }
+ wrapup_backend();
/* Close {\sl Sync\TeX} file and write status */
synctexterminate(log_opened_global); /* Let the {\sl Sync\TeX} controller close its files. */
-
free_text_codes();
free_math_codes();
if (log_opened_global) {