diff options
Diffstat (limited to 'Master/texmf-dist/tex/context/base/mkiv/luat-cod.lua')
-rw-r--r-- | Master/texmf-dist/tex/context/base/mkiv/luat-cod.lua | 38 |
1 files changed, 20 insertions, 18 deletions
diff --git a/Master/texmf-dist/tex/context/base/mkiv/luat-cod.lua b/Master/texmf-dist/tex/context/base/mkiv/luat-cod.lua index 8d5d65a452a..b3abecbbab4 100644 --- a/Master/texmf-dist/tex/context/base/mkiv/luat-cod.lua +++ b/Master/texmf-dist/tex/context/base/mkiv/luat-cod.lua @@ -20,19 +20,21 @@ local texconfig, lua = texconfig, lua texconfig.kpse_init = false texconfig.shell_escape = 't' -texconfig.error_line = 79 -- frozen / large values can crash -texconfig.expand_depth = 10000 -texconfig.half_error_line = 50 -- frozen -texconfig.max_in_open = 1000 -texconfig.max_print_line = 100000 -texconfig.max_strings = 500000 -texconfig.nest_size = 1000 -texconfig.param_size = 25000 -texconfig.save_size = 100000 -texconfig.stack_size = 10000 -texconfig.function_size = 32768 -texconfig.properties_size = 10000 -texconfig.fix_mem_init = 750000 +texconfig.error_line = 250 +texconfig.expand_depth = 10000 +texconfig.half_error_line = 125 +texconfig.max_in_open = 1000 +texconfig.max_print_line = 100000 +texconfig.max_strings = 500000 +texconfig.nest_size = 1000 +texconfig.param_size = 25000 +texconfig.save_size = 100000 +texconfig.stack_size = 10000 +texconfig.function_size = 32768 +texconfig.properties_size = 10000 +texconfig.fix_mem_init = 1000000 +texconfig.level_max = 500 +texconfig.level_chr = 46 -- period -- registering bytecode chunks @@ -59,9 +61,6 @@ local strip = false if arg then for i=-1,#arg do if arg[i] == "--c:strip" then s function lua.registercode(filename,options) local barename = gsub(filename,"%.[%a%d]+$","") - if barename == filename then - filename = filename .. ".lua" - end local basename = match(barename,"^.+[/\\](.-)$") or barename if not bytedone[basename] then local opts = { } @@ -70,10 +69,13 @@ function lua.registercode(filename,options) opts[s] = true end end + if barename == filename then + filename = filename .. ".lua" + end local code = environment.luafilechunk(filename,false,opts.optimize) if code then bytedone[basename] = true - if environment.initex then + if environment.initex and not opts.initexonly then local n = lua.lastbytecode + 1 bytedata[n] = { name = barename, options = opts } if strip or opts.strip then @@ -142,7 +144,7 @@ if LUATEXVERSION == nil then end if CONTEXTLMTXMODE == nil then - CONTEXTLMTXMODE = LUATEXENGINE == "luametatex" and 1 or 0 + CONTEXTLMTXMODE = 0 end if LUATEXFUNCTIONALITY == nil then |