vanc

Results 4 comments of vanc

You can use ffi to workaround big integer issue. It should be easier than using a big number library. > ffi=require'ffi' > a=ffi.new('uint64_t', 9223372036854775807ull) > =a 9223372036854775807ULL > b=ffi.new('uint64_t', 9223372036854775806ull)...

Actually, you don't need to use the ffi function directly. LuaJIT does the boxing/unboxing automatically. Just need to tell it's a long number by appending the "ll" modifer. > a=9223372036854775807ll...

> i just want to use int64 without ll Unfortunately, you cannot do that. Lua can only store 64-bit integers up to 2^53. With LuaJIT, it automatically boxes 64-bit values...

How about use find_program and custom_target? For libpcap: ``` lex = find_program('flex', 'lex') yacc = find_program('bison', 'yacc', 'byacc') scanner_c = custom_target('scanner.c', output: [ 'scanner.c', 'scanner.h' ], input: 'scanner.l', command: [lex,...