diff options
author | daurnimator <quae@daurnimator.com> | 2017-12-10 02:10:35 +1100 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2017-12-10 02:36:36 +1100 |
commit | fa8ba4f04623f66962c9fa2a502dd8d51a3eefa6 (patch) | |
tree | 2a0bafe9ca9c965544df25c3046b078a6141b351 /src | |
parent | 562ad6f874564c3770d096711f443b49f59ef686 (diff) | |
download | fengari-fa8ba4f04623f66962c9fa2a502dd8d51a3eefa6.tar.gz fengari-fa8ba4f04623f66962c9fa2a502dd8d51a3eefa6.tar.bz2 fengari-fa8ba4f04623f66962c9fa2a502dd8d51a3eefa6.zip |
src/: Comment out unused constants/functions
Diffstat (limited to 'src')
-rw-r--r-- | src/loslib.js | 2 | ||||
-rw-r--r-- | src/lstrlib.js | 4 | ||||
-rw-r--r-- | src/lvm.js | 6 |
3 files changed, 6 insertions, 6 deletions
diff --git a/src/loslib.js b/src/loslib.js index 16df4ea..19dfd02 100644 --- a/src/loslib.js +++ b/src/loslib.js @@ -82,7 +82,7 @@ const checkoption = function(L, conv, i, buff) { }; /* maximum size for an individual 'strftime' item */ -const SIZETIMEFMT = 250; +// const SIZETIMEFMT = 250; const os_date = function(L) { diff --git a/src/lstrlib.js b/src/lstrlib.js index 88518e7..cfd1c28 100644 --- a/src/lstrlib.js +++ b/src/lstrlib.js @@ -148,7 +148,7 @@ const lua_number2strx = function(L, fmt, x) { ** is maximum exponent + 1). (99+3+1 then rounded to 120 for "extra ** expenses", such as locale-dependent stuff) */ -const MAX_ITEM = 120;// TODO: + l_mathlim(MAX_10_EXP); +// const MAX_ITEM = 120;// TODO: + l_mathlim(MAX_10_EXP); /* valid flags in a format specification */ @@ -157,7 +157,7 @@ const FLAGS = ["-".charCodeAt(0), "+".charCodeAt(0), " ".charCodeAt(0), "#" /* ** maximum size of each format specification (such as "%-099.99d") */ -const MAX_FORMAT = 32; +// const MAX_FORMAT = 32; // TODO: locale ? and do it better const isalpha = e => ('a'.charCodeAt(0) <= e && e <= 'z'.charCodeAt(0)) || (e >= 'A'.charCodeAt(0) && e <= 'Z'.charCodeAt(0)); @@ -85,9 +85,9 @@ const RB = function(L, base, i) { return base + i.B; }; -const RC = function(L, base, i) { - return base + i.C; -}; +// const RC = function(L, base, i) { +// return base + i.C; +// }; const RKB = function(L, base, k, i) { return lopcodes.ISK(i.B) ? k[lopcodes.INDEXK(i.B)] : L.stack[base + i.B]; |