From 9b6a2201bf8103035dbf4049ff18201951b1b8a4 Mon Sep 17 00:00:00 2001 From: Bertrand Songis Date: Wed, 28 Aug 2019 12:28:07 +0200 Subject: [PATCH] Compilation fix --- radio/src/thirdparty/Lua/src/lcorolib.c | 2 +- radio/src/thirdparty/Lua/src/llex.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/radio/src/thirdparty/Lua/src/lcorolib.c b/radio/src/thirdparty/Lua/src/lcorolib.c index 6bd1e2c19..e2f601eb6 100644 --- a/radio/src/thirdparty/Lua/src/lcorolib.c +++ b/radio/src/thirdparty/Lua/src/lcorolib.c @@ -142,7 +142,7 @@ static const luaL_Reg co_funcs[] = { {"status", luaB_costatus}, {"wrap", luaB_cowrap}, {"yield", luaB_yield}, - {nullptr, nullptr} + {NULL, NULL} }; diff --git a/radio/src/thirdparty/Lua/src/llex.c b/radio/src/thirdparty/Lua/src/llex.c index 737cbb9e0..1a32e348b 100644 --- a/radio/src/thirdparty/Lua/src/llex.c +++ b/radio/src/thirdparty/Lua/src/llex.c @@ -160,7 +160,7 @@ void luaX_setinput (lua_State *L, LexState *ls, ZIO *z, TString *source, ls->current = firstchar; ls->lookahead.token = TK_EOS; /* no look-ahead token */ ls->z = z; - ls->fs = nullptr; + ls->fs = NULL; ls->linenumber = 1; ls->lastline = 1; ls->source = source; @@ -416,7 +416,7 @@ static int llex (LexState *ls, SemInfo *seminfo) { int sep = skip_sep(ls); luaZ_resetbuffer(ls->buff); /* `skip_sep' may dirty the buffer */ if (sep >= 0) { - read_long_string(ls, nullptr, sep); /* skip long comment */ + read_long_string(ls, NULL, sep); /* skip long comment */ luaZ_resetbuffer(ls->buff); /* previous call may dirty the buff. */ break; }