Commit 74ab81d6 authored by Renato Figueiro Maia's avatar Renato Figueiro Maia

Pequenos ajustes de código

- Inclusão de dependências faltando.
- Correção de typos (erros de digitação) e outros bugs menores.

git-svn-id: https://subversion.tecgraf.puc-rio.br/engdist/openbus/sdk/lua/branches/02_00_00@158081 ae0415b3-e90b-0410-900d-d0be9363c56b
parent 3b726812
local _G = require "_G"
local assert = _G.assert
local error = _G.error
local ipairs = _G.ipairs
local pcall = _G.pcall
......
......@@ -377,7 +377,7 @@ do
for _, desc in ipairs(offers) do
desc.ref = Wrapper{
__object = desc.ref,
assistant = self,
assistant = assistant,
description = desc,
describe = RegisteredOffer.describe,
subscribeObserver = RegisteredOffer.subscribeObserver,
......
......@@ -3,7 +3,9 @@ local ipairs = _G.ipairs
local pairs = _G.pairs
local pcall = _G.pcall
local rawget = _G.rawget
local select = _G.select
local setmetatable = _G.setmetatable
local type = _G.type
local array = require "table"
local unpack = array.unpack or _G.unpack
......
......@@ -3,6 +3,7 @@ local assert = _G.assert
local error = _G.error
local getmetatable = _G.getmetatable
local ipairs = _G.ipairs
local next = _G.next
local pairs = _G.pairs
local select = _G.select
local tonumber = _G.tonumber
......@@ -45,7 +46,7 @@ local function convertconstructor(constructor, typedef)
for name, typename in pairs(typedef) do
local checker = (type(typename)=="string") and checktype or checkmeta
checker(name, "field '"..name.."'", typename, fields[name])
return constructor(fiedls, ...)
return constructor(fields, ...)
end
end
end
......
local _G = require "_G"
local next = _G.next
local rawget = _G.rawget
local select = _G.select
......
......@@ -6,6 +6,7 @@ local ipairs = _G.ipairs
local loadfile = _G.loadfile
local pairs = _G.pairs
local pcall = _G.pcall
local select = _G.select
local setmetatable = _G.setmetatable
local os = require "os"
......@@ -97,6 +98,7 @@ local function saveto(path, ...)
if result == nil then
errmsg = "unable to write temporary file '"..temp.."' ("..errmsg..")"
else
local code
result, errmsg, code = renamefile(temp, path)
if result == nil then
if errmsg == "File exists" and code == 17 then
......
local _G = require "_G"
local assert = _G.assert
local pairs = _G.pairs
local select = _G.select
local table = require "loop.table"
local copy = table.copy
......
......@@ -9,6 +9,7 @@ local pairs = _G.pairs
local setmetatable = _G.setmetatable
local tostring = _G.tostring
local type = _G.type
local xpcall = _G.xpcall
local array = require "table"
local concat = array.concat
......@@ -17,6 +18,9 @@ local io = require "io"
local openfile = io.open
local stderr = io.stderr
local debug = require "debug"
local traceback = debug.traceback
local pubkey = require "lce.pubkey"
local decodeprivatekey = pubkey.decodeprivate
local x509 = require "lce.x509"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment