diff options
author | Mike Pall <mike> | 2016-07-17 14:29:03 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2016-07-17 14:29:03 +0200 |
commit | 1914de71c7dc10c502ecf033c63665eb6d3e6433 (patch) | |
tree | f70aaa67c8b61c29f2f8687594b553a2b0a227ed /src | |
parent | aef4edddbabb9b510541abd131f9298a25a52e7d (diff) | |
download | luajit-1914de71c7dc10c502ecf033c63665eb6d3e6433.tar.gz luajit-1914de71c7dc10c502ecf033c63665eb6d3e6433.tar.bz2 luajit-1914de71c7dc10c502ecf033c63665eb6d3e6433.zip |
Fix unused vars etc. in internal Lua files.
Thanks to François Perrad.
Diffstat (limited to 'src')
-rw-r--r-- | src/host/genminilua.lua | 8 | ||||
-rw-r--r-- | src/jit/dis_arm.lua | 2 | ||||
-rw-r--r-- | src/jit/dis_mips.lua | 4 | ||||
-rw-r--r-- | src/jit/dis_ppc.lua | 2 | ||||
-rw-r--r-- | src/jit/dump.lua | 6 |
5 files changed, 11 insertions, 11 deletions
diff --git a/src/host/genminilua.lua b/src/host/genminilua.lua index e9a68297..16a81a23 100644 --- a/src/host/genminilua.lua +++ b/src/host/genminilua.lua | |||
@@ -157,11 +157,11 @@ local function merge_includes(src) | |||
157 | if includes[name] then return "" end | 157 | if includes[name] then return "" end |
158 | includes[name] = true | 158 | includes[name] = true |
159 | local fp = assert(io.open(LUA_SOURCE..name, "r")) | 159 | local fp = assert(io.open(LUA_SOURCE..name, "r")) |
160 | local src = fp:read("*a") | 160 | local inc = fp:read("*a") |
161 | assert(fp:close()) | 161 | assert(fp:close()) |
162 | src = gsub(src, "#ifndef%s+%w+_h\n#define%s+%w+_h\n", "") | 162 | inc = gsub(inc, "#ifndef%s+%w+_h\n#define%s+%w+_h\n", "") |
163 | src = gsub(src, "#endif%s*$", "") | 163 | inc = gsub(inc, "#endif%s*$", "") |
164 | return merge_includes(src) | 164 | return merge_includes(inc) |
165 | end) | 165 | end) |
166 | end | 166 | end |
167 | 167 | ||
diff --git a/src/jit/dis_arm.lua b/src/jit/dis_arm.lua index 661f661a..8ad902cd 100644 --- a/src/jit/dis_arm.lua +++ b/src/jit/dis_arm.lua | |||
@@ -12,7 +12,7 @@ | |||
12 | 12 | ||
13 | local type = type | 13 | local type = type |
14 | local sub, byte, format = string.sub, string.byte, string.format | 14 | local sub, byte, format = string.sub, string.byte, string.format |
15 | local match, gmatch, gsub = string.match, string.gmatch, string.gsub | 15 | local match, gmatch = string.match, string.gmatch |
16 | local concat = table.concat | 16 | local concat = table.concat |
17 | local bit = require("bit") | 17 | local bit = require("bit") |
18 | local band, bor, ror, tohex = bit.band, bit.bor, bit.ror, bit.tohex | 18 | local band, bor, ror, tohex = bit.band, bit.bor, bit.ror, bit.tohex |
diff --git a/src/jit/dis_mips.lua b/src/jit/dis_mips.lua index 5b68b069..fe9cadb8 100644 --- a/src/jit/dis_mips.lua +++ b/src/jit/dis_mips.lua | |||
@@ -11,8 +11,8 @@ | |||
11 | ------------------------------------------------------------------------------ | 11 | ------------------------------------------------------------------------------ |
12 | 12 | ||
13 | local type = type | 13 | local type = type |
14 | local sub, byte, format = string.sub, string.byte, string.format | 14 | local byte, format = string.byte, string.format |
15 | local match, gmatch, gsub = string.match, string.gmatch, string.gsub | 15 | local match, gmatch = string.match, string.gmatch |
16 | local concat = table.concat | 16 | local concat = table.concat |
17 | local bit = require("bit") | 17 | local bit = require("bit") |
18 | local band, bor, tohex = bit.band, bit.bor, bit.tohex | 18 | local band, bor, tohex = bit.band, bit.bor, bit.tohex |
diff --git a/src/jit/dis_ppc.lua b/src/jit/dis_ppc.lua index 8afecbe6..1a98c7ec 100644 --- a/src/jit/dis_ppc.lua +++ b/src/jit/dis_ppc.lua | |||
@@ -13,7 +13,7 @@ | |||
13 | ------------------------------------------------------------------------------ | 13 | ------------------------------------------------------------------------------ |
14 | 14 | ||
15 | local type = type | 15 | local type = type |
16 | local sub, byte, format = string.sub, string.byte, string.format | 16 | local byte, format = string.byte, string.format |
17 | local match, gmatch, gsub = string.match, string.gmatch, string.gsub | 17 | local match, gmatch, gsub = string.match, string.gmatch, string.gsub |
18 | local concat = table.concat | 18 | local concat = table.concat |
19 | local bit = require("bit") | 19 | local bit = require("bit") |
diff --git a/src/jit/dump.lua b/src/jit/dump.lua index ec5f8276..7b776422 100644 --- a/src/jit/dump.lua +++ b/src/jit/dump.lua | |||
@@ -63,9 +63,9 @@ local traceinfo, traceir, tracek = jutil.traceinfo, jutil.traceir, jutil.tracek | |||
63 | local tracemc, tracesnap = jutil.tracemc, jutil.tracesnap | 63 | local tracemc, tracesnap = jutil.tracemc, jutil.tracesnap |
64 | local traceexitstub, ircalladdr = jutil.traceexitstub, jutil.ircalladdr | 64 | local traceexitstub, ircalladdr = jutil.traceexitstub, jutil.ircalladdr |
65 | local bit = require("bit") | 65 | local bit = require("bit") |
66 | local band, shl, shr = bit.band, bit.lshift, bit.rshift | 66 | local band, shr = bit.band, bit.rshift |
67 | local sub, gsub, format = string.sub, string.gsub, string.format | 67 | local sub, gsub, format = string.sub, string.gsub, string.format |
68 | local byte, char, rep = string.byte, string.char, string.rep | 68 | local byte, rep = string.byte, string.rep |
69 | local type, tostring = type, tostring | 69 | local type, tostring = type, tostring |
70 | local stdout, stderr = io.stdout, io.stderr | 70 | local stdout, stderr = io.stdout, io.stderr |
71 | 71 | ||
@@ -207,7 +207,7 @@ local colortype_ansi = { | |||
207 | "\027[35m%s\027[m", | 207 | "\027[35m%s\027[m", |
208 | } | 208 | } |
209 | 209 | ||
210 | local function colorize_text(s, t) | 210 | local function colorize_text(s) |
211 | return s | 211 | return s |
212 | end | 212 | end |
213 | 213 | ||