equal
deleted
inserted
replaced
382 int luaopen_util_signal(lua_State *L) |
382 int luaopen_util_signal(lua_State *L) |
383 { |
383 { |
384 int i = 0; |
384 int i = 0; |
385 |
385 |
386 /* add the library */ |
386 /* add the library */ |
387 luaL_register(L, "signal", lsignal_lib); |
387 lua_newtable(L); |
|
388 luaL_register(L, NULL, lsignal_lib); |
388 |
389 |
389 /* push lua_signals table into the registry */ |
390 /* push lua_signals table into the registry */ |
390 /* put the signals inside the library table too, |
391 /* put the signals inside the library table too, |
391 * they are only a reference */ |
392 * they are only a reference */ |
392 lua_pushstring(L, LUA_SIGNAL); |
393 lua_pushstring(L, LUA_SIGNAL); |