From 9621add2918cc4943e6693b74ae85d51dd264fcf Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Mon, 21 Apr 2014 20:59:39 +1000 Subject: We don't need the testlua directory any more. --- LuaSL/testLua/yueliang-0.4.1/test_lua/5.0/globals.lua | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 LuaSL/testLua/yueliang-0.4.1/test_lua/5.0/globals.lua (limited to 'LuaSL/testLua/yueliang-0.4.1/test_lua/5.0/globals.lua') diff --git a/LuaSL/testLua/yueliang-0.4.1/test_lua/5.0/globals.lua b/LuaSL/testLua/yueliang-0.4.1/test_lua/5.0/globals.lua deleted file mode 100644 index d4c20e1..0000000 --- a/LuaSL/testLua/yueliang-0.4.1/test_lua/5.0/globals.lua +++ /dev/null @@ -1,13 +0,0 @@ --- reads luac listings and reports global variable usage --- lines where a global is written to are marked with "*" --- typical usage: luac -p -l file.lua | lua globals.lua | sort | lua table.lua - -while 1 do - local s=io.read() - if s==nil then break end - local ok,_,l,op,g=string.find(s,"%[%-?(%d*)%]%s*([GS])ETGLOBAL.-;%s+(.*)$") - if ok then - if op=="S" then op="*" else op="" end - io.write(g,"\t",l,op,"\n") - end -end -- cgit v1.1