This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/say.m b/src/say.m | |
index 6d08187..e0012ef 100644 | |
--- a/src/say.m | |
+++ b/src/say.m | |
@@ -140,14 +140,7 @@ vsay(int level, const char *filename, int line, const char *error, const char *f | |
if (*f == '/' && *(f + 1) != '\0') | |
filename = f + 1; | |
- time_t now = (time_t) ev_now(); | |
- struct tm tm; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env tarantool | |
-- Simple Lint: check for unintended globals | |
-- | |
-- One can spot all globals by checking the bytecode: | |
-- search for GSET and GGET instructions. Based on jit/bc.lua | |
local function is_main() | |
return debug.getinfo(2).what == "main" and pcall(debug.getlocal, 5, 1) == false | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local x = 0 | |
while x < 1000000000 do | |
local k, v = math.random(10, 20), math.random(100, 500) | |
if k < 10 or k > 20 or v < 100 or v > 500 then | |
print(k, v) | |
break | |
end | |
x = x + 1 | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- wal is off, good opportunity to test something more CPU intensive: | |
env = require('test_run') | |
--- | |
... | |
test_run = env.new() | |
--- | |
... | |
spaces = {} | |
--- | |
... |
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
---- TRACE 11 start msgpackffi.lua:527 | |
---- TRACE 11 abort msgpackffi.lua:528 -- error thrown or hook called during recording | |
---- TRACE 11 start msgpackffi.lua:467 | |
---- TRACE 11 abort msgpackffi.lua:468 -- error thrown or hook called during recording | |
---- TRACE 11 start msgpackffi.lua:467 | |
0017 GGET 8 3 ; "table" | |
0018 TGETS 8 8 4 ; "insert" | |
0019 MOV 9 2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- msgpackffi.lua (internal file) | |
local ffi = require('ffi') | |
local buffer = require('buffer') | |
local builtin = ffi.C | |
local msgpack = require('msgpack') -- .NULL, .array_mt, .map_mt, .cfg | |
local MAXNESTING = 16 | |
local int8_ptr_t = ffi.typeof('int8_t *') | |
local uint8_ptr_t = ffi.typeof('uint8_t *') | |
local uint16_ptr_t = ffi.typeof('uint16_t *') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local ffi = require('ffi') | |
local buffer = require('buffer') | |
local builtin = ffi.C | |
ffi.cdef[[ | |
char *mp_encode_nil (char *data); | |
void mp_decode_nil (const char **data); | |
bool mp_decode_bool (const char **data); | |
char *mp_encode_bool (char *data, bool val); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local ffi = require('ffi') | |
local buffer = require('buffer') | |
local builtin = ffi.C | |
local MAXNESTING = 16 | |
local table_new = require('table.new') | |
local table_clear = require('table.clear') | |
ffi.cdef[[ | |
char *mp_encode_nil (char *data); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- third_party/libeio/ecb.h 2016-05-23 16:41:55.000000000 +0300 | |
+++ third_party/libeio/ecb.h.patched 2016-05-23 16:41:43.000000000 +0300 | |
@@ -82,7 +82,7 @@ | |
#define ECB_C (__STDC__+0) /* this assumes that __STDC__ is either empty or a number */ | |
#define ECB_C99 (__STDC_VERSION__ >= 199901L) | |
-#define ECB_C11 (__STDC_VERSION__ >= 201112L) | |
+#define ECB_C11 0 // (__STDC_VERSION__ >= 201112L) | |
#define ECB_CPP (__cplusplus+0) | |
#define ECB_CPP11 (__cplusplus >= 201103L) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env tarantool | |
-- Simple Lint: check for unintended globals | |
-- | |
-- One can spot all globals by checking the bytecode: | |
-- search for GSET and GGET instructions. Based on jit/bc.lua | |
local function is_main() | |
return debug.getinfo(2).what == "main" and pcall(debug.getlocal, 5, 1) == false | |
end |
OlderNewer