summaryrefslogtreecommitdiff
path: root/com32/lua/test/globals.lua
diff options
context:
space:
mode:
authorFerenc Wágner <wferi@niif.hu>2013-10-10 16:48:04 +0200
committerFerenc Wágner <wferi@niif.hu>2014-03-01 17:40:34 +0100
commit4cfcef19a983dfa971608a8917cd74ebfa0d7376 (patch)
tree0c5abe5d8abc190d02847bd99424c24be6fadb18 /com32/lua/test/globals.lua
parenta06818de2a4c49bd64a024dd4f4a09a0caf1f0ac (diff)
downloadsyslinux-4cfcef19a983dfa971608a8917cd74ebfa0d7376.tar.gz
lua: import Lua 5.2.2
Source downloaded from http://www.lua.org/ftp/lua-5.2.2.tar.gz. The com32/lua directory now matches exactly the source distribution, plus the various Syslinux extension modules and their documentation.
Diffstat (limited to 'com32/lua/test/globals.lua')
-rw-r--r--com32/lua/test/globals.lua13
1 files changed, 0 insertions, 13 deletions
diff --git a/com32/lua/test/globals.lua b/com32/lua/test/globals.lua
deleted file mode 100644
index d4c20e15..00000000
--- a/com32/lua/test/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