Comparison

util-src/signal.c @ 6412:0e94f89d0e62

util-src/*.c: Use the more concise lua_setfield
author Kim Alvefur <zash@zash.se>
date Wed, 17 Sep 2014 02:23:17 +0200
parent 6411:6c8f6364bc48
child 6413:a552f4170aed
comparison
equal deleted inserted replaced
6411:6c8f6364bc48 6412:0e94f89d0e62
389 389
390 /* push lua_signals table into the registry */ 390 /* push lua_signals table into the registry */
391 /* put the signals inside the library table too, 391 /* put the signals inside the library table too,
392 * they are only a reference */ 392 * they are only a reference */
393 lua_pushstring(L, LUA_SIGNAL); 393 lua_pushstring(L, LUA_SIGNAL);
394 lua_createtable(L, 0, 0); 394 lua_newtable(L);
395 395
396 while (lua_signals[i].name != NULL) 396 while (lua_signals[i].name != NULL)
397 { 397 {
398 /* registry table */ 398 /* registry table */
399 lua_pushstring(L, lua_signals[i].name); 399 lua_pushstring(L, lua_signals[i].name);