From a8723a3d1ee935e8d403bd0f5d96a072c0974755 Mon Sep 17 00:00:00 2001 From: Hans Hagen Date: Sun, 9 Aug 2020 22:28:36 +0200 Subject: 2020-08-09 22:03:00 --- scripts/context/stubs/mswin/mtxrun.lua | 23 +++++++---------------- scripts/context/stubs/unix/mtxrun | 23 +++++++---------------- scripts/context/stubs/win64/mtxrun.lua | 23 +++++++---------------- 3 files changed, 21 insertions(+), 48 deletions(-) (limited to 'scripts/context/stubs') diff --git a/scripts/context/stubs/mswin/mtxrun.lua b/scripts/context/stubs/mswin/mtxrun.lua index d39161568..0e419a646 100644 --- a/scripts/context/stubs/mswin/mtxrun.lua +++ b/scripts/context/stubs/mswin/mtxrun.lua @@ -13080,7 +13080,7 @@ do -- create closure to overcome 200 locals limit package.loaded["trac-log"] = package.loaded["trac-log"] or true --- original size: 33280, stripped down to: 21854 +-- original size: 33025, stripped down to: 21687 if not modules then modules={} end modules ['trac-log']={ version=1.001, @@ -13880,13 +13880,11 @@ end if utilities then utilities.report=report_system end -if tex and tex.error then +do + local texerror=tex and tex.error or print + local formatters=string.formatters function logs.texerrormessage(...) - tex.error(format(...)) - end -else - function logs.texerrormessage(...) - print(format(...)) + texerror(first and formatters[fmt](first,...) or fmt) end end if package.helpers.report then @@ -13978,13 +13976,6 @@ if tex then end end end -if tex.error then - local texerror=tex.error - local formatters=string.formatters - function logs.reporterror(fmt,first,...) - texerror(first and formatters[fmt](first,...) or fmt) - end -end end -- of closure @@ -26198,8 +26189,8 @@ end -- of closure -- used libraries : l-bit32.lua l-lua.lua l-macro.lua l-sandbox.lua l-package.lua l-lpeg.lua l-function.lua l-string.lua l-table.lua l-io.lua l-number.lua l-set.lua l-os.lua l-file.lua l-gzip.lua l-md5.lua l-sha.lua l-url.lua l-dir.lua l-boolean.lua l-unicode.lua l-math.lua util-str.lua util-tab.lua util-fil.lua util-sac.lua util-sto.lua util-prs.lua util-fmt.lua util-soc-imp-reset.lua util-soc-imp-socket.lua util-soc-imp-copas.lua util-soc-imp-ltn12.lua util-soc-imp-mime.lua util-soc-imp-url.lua util-soc-imp-headers.lua util-soc-imp-tp.lua util-soc-imp-http.lua util-soc-imp-ftp.lua util-soc-imp-smtp.lua trac-set.lua trac-log.lua trac-inf.lua trac-pro.lua util-lua.lua util-deb.lua util-tpl.lua util-sbx.lua util-mrg.lua util-env.lua luat-env.lua util-zip.lua lxml-tab.lua lxml-lpt.lua lxml-mis.lua lxml-aux.lua lxml-xml.lua trac-xml.lua data-ini.lua data-exp.lua data-env.lua data-tmp.lua data-met.lua data-res.lua data-pre.lua data-inp.lua data-out.lua data-fil.lua data-con.lua data-use.lua data-zip.lua data-tre.lua data-sch.lua data-lua.lua data-aux.lua data-tmf.lua data-lst.lua libs-ini.lua luat-sta.lua luat-fmt.lua -- skipped libraries : - --- original bytes : 1040573 --- stripped bytes : 410989 +-- original bytes : 1040318 +-- stripped bytes : 410901 -- end library merge diff --git a/scripts/context/stubs/unix/mtxrun b/scripts/context/stubs/unix/mtxrun index d39161568..0e419a646 100644 --- a/scripts/context/stubs/unix/mtxrun +++ b/scripts/context/stubs/unix/mtxrun @@ -13080,7 +13080,7 @@ do -- create closure to overcome 200 locals limit package.loaded["trac-log"] = package.loaded["trac-log"] or true --- original size: 33280, stripped down to: 21854 +-- original size: 33025, stripped down to: 21687 if not modules then modules={} end modules ['trac-log']={ version=1.001, @@ -13880,13 +13880,11 @@ end if utilities then utilities.report=report_system end -if tex and tex.error then +do + local texerror=tex and tex.error or print + local formatters=string.formatters function logs.texerrormessage(...) - tex.error(format(...)) - end -else - function logs.texerrormessage(...) - print(format(...)) + texerror(first and formatters[fmt](first,...) or fmt) end end if package.helpers.report then @@ -13978,13 +13976,6 @@ if tex then end end end -if tex.error then - local texerror=tex.error - local formatters=string.formatters - function logs.reporterror(fmt,first,...) - texerror(first and formatters[fmt](first,...) or fmt) - end -end end -- of closure @@ -26198,8 +26189,8 @@ end -- of closure -- used libraries : l-bit32.lua l-lua.lua l-macro.lua l-sandbox.lua l-package.lua l-lpeg.lua l-function.lua l-string.lua l-table.lua l-io.lua l-number.lua l-set.lua l-os.lua l-file.lua l-gzip.lua l-md5.lua l-sha.lua l-url.lua l-dir.lua l-boolean.lua l-unicode.lua l-math.lua util-str.lua util-tab.lua util-fil.lua util-sac.lua util-sto.lua util-prs.lua util-fmt.lua util-soc-imp-reset.lua util-soc-imp-socket.lua util-soc-imp-copas.lua util-soc-imp-ltn12.lua util-soc-imp-mime.lua util-soc-imp-url.lua util-soc-imp-headers.lua util-soc-imp-tp.lua util-soc-imp-http.lua util-soc-imp-ftp.lua util-soc-imp-smtp.lua trac-set.lua trac-log.lua trac-inf.lua trac-pro.lua util-lua.lua util-deb.lua util-tpl.lua util-sbx.lua util-mrg.lua util-env.lua luat-env.lua util-zip.lua lxml-tab.lua lxml-lpt.lua lxml-mis.lua lxml-aux.lua lxml-xml.lua trac-xml.lua data-ini.lua data-exp.lua data-env.lua data-tmp.lua data-met.lua data-res.lua data-pre.lua data-inp.lua data-out.lua data-fil.lua data-con.lua data-use.lua data-zip.lua data-tre.lua data-sch.lua data-lua.lua data-aux.lua data-tmf.lua data-lst.lua libs-ini.lua luat-sta.lua luat-fmt.lua -- skipped libraries : - --- original bytes : 1040573 --- stripped bytes : 410989 +-- original bytes : 1040318 +-- stripped bytes : 410901 -- end library merge diff --git a/scripts/context/stubs/win64/mtxrun.lua b/scripts/context/stubs/win64/mtxrun.lua index d39161568..0e419a646 100644 --- a/scripts/context/stubs/win64/mtxrun.lua +++ b/scripts/context/stubs/win64/mtxrun.lua @@ -13080,7 +13080,7 @@ do -- create closure to overcome 200 locals limit package.loaded["trac-log"] = package.loaded["trac-log"] or true --- original size: 33280, stripped down to: 21854 +-- original size: 33025, stripped down to: 21687 if not modules then modules={} end modules ['trac-log']={ version=1.001, @@ -13880,13 +13880,11 @@ end if utilities then utilities.report=report_system end -if tex and tex.error then +do + local texerror=tex and tex.error or print + local formatters=string.formatters function logs.texerrormessage(...) - tex.error(format(...)) - end -else - function logs.texerrormessage(...) - print(format(...)) + texerror(first and formatters[fmt](first,...) or fmt) end end if package.helpers.report then @@ -13978,13 +13976,6 @@ if tex then end end end -if tex.error then - local texerror=tex.error - local formatters=string.formatters - function logs.reporterror(fmt,first,...) - texerror(first and formatters[fmt](first,...) or fmt) - end -end end -- of closure @@ -26198,8 +26189,8 @@ end -- of closure -- used libraries : l-bit32.lua l-lua.lua l-macro.lua l-sandbox.lua l-package.lua l-lpeg.lua l-function.lua l-string.lua l-table.lua l-io.lua l-number.lua l-set.lua l-os.lua l-file.lua l-gzip.lua l-md5.lua l-sha.lua l-url.lua l-dir.lua l-boolean.lua l-unicode.lua l-math.lua util-str.lua util-tab.lua util-fil.lua util-sac.lua util-sto.lua util-prs.lua util-fmt.lua util-soc-imp-reset.lua util-soc-imp-socket.lua util-soc-imp-copas.lua util-soc-imp-ltn12.lua util-soc-imp-mime.lua util-soc-imp-url.lua util-soc-imp-headers.lua util-soc-imp-tp.lua util-soc-imp-http.lua util-soc-imp-ftp.lua util-soc-imp-smtp.lua trac-set.lua trac-log.lua trac-inf.lua trac-pro.lua util-lua.lua util-deb.lua util-tpl.lua util-sbx.lua util-mrg.lua util-env.lua luat-env.lua util-zip.lua lxml-tab.lua lxml-lpt.lua lxml-mis.lua lxml-aux.lua lxml-xml.lua trac-xml.lua data-ini.lua data-exp.lua data-env.lua data-tmp.lua data-met.lua data-res.lua data-pre.lua data-inp.lua data-out.lua data-fil.lua data-con.lua data-use.lua data-zip.lua data-tre.lua data-sch.lua data-lua.lua data-aux.lua data-tmf.lua data-lst.lua libs-ini.lua luat-sta.lua luat-fmt.lua -- skipped libraries : - --- original bytes : 1040573 --- stripped bytes : 410989 +-- original bytes : 1040318 +-- stripped bytes : 410901 -- end library merge -- cgit v1.2.3