Skip to content

Commit

Permalink
Disable deprecated bit32 Lua package
Browse files Browse the repository at this point in the history
Lua 5.3 has built-in bitwise operations
https://www.lua.org/manual/5.3/manual.html#3.4.2
  • Loading branch information
anatol authored and gittup committed Jun 1, 2016
1 parent 99f62a0 commit c1b1478
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion build.sh
Expand Up @@ -54,7 +54,7 @@ cd build

for i in ../src/lua/*.c; do
echo " bootstrap CC $CFLAGS $i"
$CC $CFLAGS -DLUA_USE_POSIX -DLUA_COMPAT_BITLIB -c $i
$CC $CFLAGS -DLUA_USE_POSIX -c $i
done

rm luac.o
Expand Down
1 change: 0 additions & 1 deletion docs/html/lua_parser.html
Expand Up @@ -12,7 +12,6 @@ <h1>API</h1>
<li>The base functions are defined, excluding <span class="cmd">dofile</span>, <span class="cmd">loadfile</span>, <span class="cmd">load</span>, and <span class="cmd">require</span>.</li>
<li><span class="cmd">table</span> is defined.</li>
<li><span class="cmd">string</span> is defined.</li>
<li><span class="cmd">bit32</span> is defined.</li>
<li><span class="cmd">math</span> is defined.</li>
<li><span class="cmd">debug</span> is defined.</li>
<li><span class="cmd">io</span> is defined.</li>
Expand Down
1 change: 0 additions & 1 deletion src/lua/Tupfile
Expand Up @@ -34,7 +34,6 @@ srcs += loadlib.c
srcs += linit.c
srcs += lutf8lib.c

CFLAGS += -DLUA_COMPAT_BITLIB
CFLAGS += -w

: foreach $(srcs) |> !cc -DLUA_USE_POSIX |> {objs}
Expand Down
1 change: 0 additions & 1 deletion src/tup/luaparser.c
Expand Up @@ -775,7 +775,6 @@ int parse_lua_tupfile(struct tupfile *tf, struct buf *b, const char *name)
luaL_requiref(ls, "_G", luaopen_base, 1); lua_pop(ls, 1);
luaL_requiref(ls, LUA_TABLIBNAME, luaopen_table, 1); lua_pop(ls, 1);
luaL_requiref(ls, LUA_STRLIBNAME, luaopen_string, 1); lua_pop(ls, 1);
luaL_requiref(ls, LUA_BITLIBNAME, luaopen_bit32, 1); lua_pop(ls, 1);
luaL_requiref(ls, LUA_MATHLIBNAME, luaopen_math, 1); lua_pop(ls, 1);
luaL_requiref(ls, LUA_DBLIBNAME, luaopen_debug, 1); lua_pop(ls, 1);
luaL_requiref(ls, LUA_IOLIBNAME, luaopen_io, 1); lua_pop(ls, 1);
Expand Down

0 comments on commit c1b1478

Please sign in to comment.