diff options
author | Luigi Scarso <luigi.scarso@gmail.com> | 2018-01-09 23:43:20 +0000 |
---|---|---|
committer | Luigi Scarso <luigi.scarso@gmail.com> | 2018-01-09 23:43:20 +0000 |
commit | aa5d0e8bf3515c424ba0594a2d4e06ae31da7796 (patch) | |
tree | e56fd10d89732547ddb207c1998a1ded4360382e /Build/source/texk/web2c/luatexdir/tex/mainbody.w | |
parent | d33684eeca435784c95c62c7981dd02f7818b263 (diff) |
Imported Luatex 1.06.3 (Lua 5.2.4)
git-svn-id: svn://tug.org/texlive/trunk@46269 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/luatexdir/tex/mainbody.w')
-rw-r--r-- | Build/source/texk/web2c/luatexdir/tex/mainbody.w | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/Build/source/texk/web2c/luatexdir/tex/mainbody.w b/Build/source/texk/web2c/luatexdir/tex/mainbody.w index faa6e1992da..4d38b9d4a47 100644 --- a/Build/source/texk/web2c/luatexdir/tex/mainbody.w +++ b/Build/source/texk/web2c/luatexdir/tex/mainbody.w @@ -230,12 +230,6 @@ str_number get_luatexrevision(void) return luatex_revision; } -int get_luatex_date_info(void) -{ - return luatex_date_info; /* todo, silly value */ -} - - @ This is it: the part of \TeX\ that executes all those procedures we have written. @@ -524,7 +518,18 @@ void close_files_and_terminate(void) /* rubish, these pdf arguments, passed, needs to be fixed, e.g. with a dummy in dvi */ wrapup_backend(); /* Close {\sl Sync\TeX} file and write status */ - synctexterminate(log_opened_global); /* Let the {\sl Sync\TeX} controller close its files. */ + synctexterminate(log_opened_global); + /* + The following is needed because synctex removes files and we want to keep them which + means renaming a temp file .. we can't bypass the terminate because it might do mem + cleanup. + */ + if (synctex_get_mode() > 0) { + callback_id = callback_defined(finish_synctex_callback); + if (callback_id > 0) { + run_callback(callback_id, "->"); + } + } free_text_codes(); free_math_codes(); if (log_opened_global) { |