diff options
Diffstat (limited to 'scripts/context/lua/mtxrun.lua')
| -rw-r--r-- | scripts/context/lua/mtxrun.lua | 18 | 
1 files changed, 13 insertions, 5 deletions
| diff --git a/scripts/context/lua/mtxrun.lua b/scripts/context/lua/mtxrun.lua index f0b9b7cd2..362fceabd 100644 --- a/scripts/context/lua/mtxrun.lua +++ b/scripts/context/lua/mtxrun.lua @@ -3806,7 +3806,7 @@ do -- create closure to overcome 200 locals limit  package.loaded["l-os"] = package.loaded["l-os"] or true --- original size: 19120, stripped down to: 10208 +-- original size: 19323, stripped down to: 10350  if not modules then modules={} end modules ['l-os']={   version=1.001, @@ -4200,11 +4200,19 @@ local function isleapyear(year)  end  os.isleapyear=isleapyear  local days={ 31,28,31,30,31,30,31,31,30,31,30,31 } -local function nofdays(year,month) +local function nofdays(year,month,day)   if not month then    return isleapyear(year) and 365 or 364 - else + elseif not day then    return month==2 and isleapyear(year) and 29 or days[month] + else +  for i=1,month-1 do +   day=day+days[i] +  end +  if month>2 and isleapyear(year) then +   day=day+1 +  end +  return day   end  end  os.nofdays=nofdays @@ -26172,8 +26180,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    : 1039700 --- stripped bytes    : 410173 +-- original bytes    : 1039903 +-- stripped bytes    : 410234  -- end library merge | 
