From 1e74733e95e8a624a8d6ed637087aa25480b61df Mon Sep 17 00:00:00 2001 From: Marius Date: Sat, 27 Nov 2010 14:40:13 +0200 Subject: beta 2010.11.27 13:21 --- scripts/context/lua/mtxrun.lua | 8 +++++--- scripts/context/stubs/mswin/mtxrun.lua | 8 +++++--- scripts/context/stubs/unix/mtxrun | 8 +++++--- 3 files changed, 15 insertions(+), 9 deletions(-) (limited to 'scripts') diff --git a/scripts/context/lua/mtxrun.lua b/scripts/context/lua/mtxrun.lua index c41de7fb8..3be305bed 100644 --- a/scripts/context/lua/mtxrun.lua +++ b/scripts/context/lua/mtxrun.lua @@ -10435,7 +10435,7 @@ function resolvers.methodhandler(what, filename, filetype) -- ... if trace_locating then report_resolvers("using special handler for '%s' -> '%s' -> '%s'",specification.original,what,table.sequenced(specification)) end - return resolver[scheme](filename,filetype) + return resolver[scheme](filename,filetype,specification) -- todo: query else if trace_locating then report_resolvers("no handler for '%s' -> '%s' -> '%s'",specification.original,what,table.sequenced(specification)) @@ -12041,7 +12041,7 @@ if not modules then modules = { } end modules ['data-out'] = { license = "see context related readme files" } --- not used yet +resolvers.savers = utilities.storage.allocate { } @@ -12301,6 +12301,8 @@ if not modules then modules = { } end modules ['data-zip'] = { license = "see context related readme files" } +-- to be redone using the more recent schemes mechanism + local format, find, match = string.format, string.find, string.match local unpack = unpack or table.unpack @@ -12436,7 +12438,7 @@ function openers.zip(specification) if trace_locating then report_resolvers("zip opener, file '%s' found",q.name) end - return openers.textopener(specification,dfile,'zip') + return openers.textopener('zip',specification,dfile) elseif trace_locating then report_resolvers("zip opener, file '%s' not found",q.name) end diff --git a/scripts/context/stubs/mswin/mtxrun.lua b/scripts/context/stubs/mswin/mtxrun.lua index c41de7fb8..3be305bed 100644 --- a/scripts/context/stubs/mswin/mtxrun.lua +++ b/scripts/context/stubs/mswin/mtxrun.lua @@ -10435,7 +10435,7 @@ function resolvers.methodhandler(what, filename, filetype) -- ... if trace_locating then report_resolvers("using special handler for '%s' -> '%s' -> '%s'",specification.original,what,table.sequenced(specification)) end - return resolver[scheme](filename,filetype) + return resolver[scheme](filename,filetype,specification) -- todo: query else if trace_locating then report_resolvers("no handler for '%s' -> '%s' -> '%s'",specification.original,what,table.sequenced(specification)) @@ -12041,7 +12041,7 @@ if not modules then modules = { } end modules ['data-out'] = { license = "see context related readme files" } --- not used yet +resolvers.savers = utilities.storage.allocate { } @@ -12301,6 +12301,8 @@ if not modules then modules = { } end modules ['data-zip'] = { license = "see context related readme files" } +-- to be redone using the more recent schemes mechanism + local format, find, match = string.format, string.find, string.match local unpack = unpack or table.unpack @@ -12436,7 +12438,7 @@ function openers.zip(specification) if trace_locating then report_resolvers("zip opener, file '%s' found",q.name) end - return openers.textopener(specification,dfile,'zip') + return openers.textopener('zip',specification,dfile) elseif trace_locating then report_resolvers("zip opener, file '%s' not found",q.name) end diff --git a/scripts/context/stubs/unix/mtxrun b/scripts/context/stubs/unix/mtxrun index c41de7fb8..3be305bed 100644 --- a/scripts/context/stubs/unix/mtxrun +++ b/scripts/context/stubs/unix/mtxrun @@ -10435,7 +10435,7 @@ function resolvers.methodhandler(what, filename, filetype) -- ... if trace_locating then report_resolvers("using special handler for '%s' -> '%s' -> '%s'",specification.original,what,table.sequenced(specification)) end - return resolver[scheme](filename,filetype) + return resolver[scheme](filename,filetype,specification) -- todo: query else if trace_locating then report_resolvers("no handler for '%s' -> '%s' -> '%s'",specification.original,what,table.sequenced(specification)) @@ -12041,7 +12041,7 @@ if not modules then modules = { } end modules ['data-out'] = { license = "see context related readme files" } --- not used yet +resolvers.savers = utilities.storage.allocate { } @@ -12301,6 +12301,8 @@ if not modules then modules = { } end modules ['data-zip'] = { license = "see context related readme files" } +-- to be redone using the more recent schemes mechanism + local format, find, match = string.format, string.find, string.match local unpack = unpack or table.unpack @@ -12436,7 +12438,7 @@ function openers.zip(specification) if trace_locating then report_resolvers("zip opener, file '%s' found",q.name) end - return openers.textopener(specification,dfile,'zip') + return openers.textopener('zip',specification,dfile) elseif trace_locating then report_resolvers("zip opener, file '%s' not found",q.name) end -- cgit v1.2.3