aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xPolygLua.lua18
-rwxr-xr-xaataaj.lua2
2 files changed, 10 insertions, 10 deletions
diff --git a/PolygLua.lua b/PolygLua.lua
index 727e62c..20925b7 100755
--- a/PolygLua.lua
+++ b/PolygLua.lua
@@ -29,13 +29,13 @@ local log = function(v, t, s)
29 io.flush() 29 io.flush()
30end 30end
31 31
32-- This sets the global values, here and in the caller. 32-- This sets the global values, here and in the caller. The "_G." part isn't needed, it's just there to make things more obvious to the reader.
33D = function(s) log(4, 'DEBUG ', s) end 33_G.D = function(s) log(4, 'DEBUG ', s) end
34I = function(s) log(3, 'INFO ', s) end 34_G.I = function(s) log(3, 'INFO ', s) end
35T = function(s) log(2, 'TIMEOUT ', s) end 35_G.T = function(s) log(2, 'TIMEOUT ', s) end
36W = function(s) log(1, 'WARNING ', s) end 36_G.W = function(s) log(1, 'WARNING ', s) end
37E = function(s) log(0, 'ERROR ', s) end 37_G.E = function(s) log(0, 'ERROR ', s) end
38C = function(s) log(-1, 'CRITICAL ', s) end 38_G.C = function(s) log(-1, 'CRITICAL ', s) end
39 39
40 40
41local optionsCommon = 41local optionsCommon =
@@ -190,7 +190,7 @@ _.readCmd = function(cmd)
190end 190end
191 191
192 192
193__ = function(c) 193_G.__ = function(c)
194 local exe = {status = 0, lines = {}, logging = false, showing = false, cmd = '', command = c, isScript = false, script = ''} 194 local exe = {status = 0, lines = {}, logging = false, showing = false, cmd = '', command = c, isScript = false, script = ''}
195 local n = 0 195 local n = 0
196 196
@@ -201,7 +201,7 @@ __ = function(c)
201 exe.cmd = exe.cmd .. l .. ' ; ' 201 exe.cmd = exe.cmd .. l .. ' ; '
202 end 202 end
203 elseif 'string' == type(c) then 203 elseif 'string' == type(c) then
204 exe.isScript = ('#!' == c:sub(1,2)) and (n == 0) 204 exe.isScript = (n == 0) and ('#!' == c:sub(1,2))
205 for l in string.gmatch(c, '\n*([^\n]+)\n*') do 205 for l in string.gmatch(c, '\n*([^\n]+)\n*') do
206 if '' ~= l then 206 if '' ~= l then
207 if exe.isScript then 207 if exe.isScript then
diff --git a/aataaj.lua b/aataaj.lua
index c01e4c3..d48ec94 100755
--- a/aataaj.lua
+++ b/aataaj.lua
@@ -175,7 +175,7 @@ end
175print('') 175print('')
176io.flush() 176io.flush()
177 177
178-- TODO - No idea why the fuck #Cards kept telling me 0. No number indexes? 178-- #Cards kept telling me 0, no number indexes.
179local cnt = 0 179local cnt = 0
180for i,C in pairs(Cards) do 180for i,C in pairs(Cards) do
181 cnt = cnt + 1 181 cnt = cnt + 1