From: Vladimír Čunát Date: Thu, 5 Aug 2021 08:09:05 +0000 (+0200) Subject: daemon/lua/meson.build: whitespace X-Git-Tag: v5.4.1~5^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5ebd38c203383a0c7ccbc95397054dc179408a95;p=thirdparty%2Fknot-resolver.git daemon/lua/meson.build: whitespace I didn't intend to use this mix of tabs and spaces for indentation. --- diff --git a/daemon/lua/meson.build b/daemon/lua/meson.build index ee71927b5..565ccfd1c 100644 --- a/daemon/lua/meson.build +++ b/daemon/lua/meson.build @@ -59,29 +59,29 @@ run_target( # run manually to re-generate kres-gen.lua # but this basic sanity check could be ran always. if get_option('kres_gen_test') types_to_check = { - 'time_t' : '#include ', - 'struct timeval' : '#include ', - 'zs_scanner_t' : '#include ', - 'knot_pkt_t' : '#include ', + 'time_t' : '#include ', + 'struct timeval' : '#include ', + 'zs_scanner_t' : '#include ', + 'knot_pkt_t' : '#include ', } # Construct the lua tester as a meson string. kres_gen_test_luastr = ''' - dofile('@0@') - local ffi = require('ffi') + dofile('@0@') + local ffi = require('ffi') '''.format(meson.current_source_dir() / kres_gen_fname) foreach tname, tinclude: types_to_check - kres_gen_test_luastr += ''' - assert(ffi.sizeof(ffi.typeof('@0@')) == @1@, - 'Lua binding for C type ' .. '@0@' .. ' has incorrect size: ' - .. ffi.sizeof(ffi.typeof('@0@')) - ) - '''.format(tname, meson.get_compiler('c').sizeof(tname, prefix : tinclude)) + kres_gen_test_luastr += ''' + assert(ffi.sizeof(ffi.typeof('@0@')) == @1@, + 'Lua binding for C type ' .. '@0@' .. ' has incorrect size: ' + .. ffi.sizeof(ffi.typeof('@0@')) + ) + '''.format(tname, meson.get_compiler('c').sizeof(tname, prefix : tinclude)) endforeach # Now feed it directly into luajit. kres_gen_test = run_command(find_program('luajit'), '-e', kres_gen_test_luastr) if kres_gen_test.returncode() != 0 - error('if you use released Knot* versions, please contact us: https://www.knot-resolver.cz/contact/\n' - + kres_gen_test.stderr().strip()) + error('if you use released Knot* versions, please contact us: https://www.knot-resolver.cz/contact/\n' + + kres_gen_test.stderr().strip()) endif endif