diff options
author | Rob Kendrick (monotony) <rjek@rjek.com> | 2012-05-07 10:59:30 +0100 |
---|---|---|
committer | Rob Kendrick (monotony) <rjek@rjek.com> | 2012-05-07 10:59:30 +0100 |
commit | 2f29169541874085ac3b85dff4275656467ba97f (patch) | |
tree | 3829d506d4c2c0a8b6ae17e780b4451e1e96393f /luxio.c | |
parent | 43ab538e5e7dd2f76334130474a54176d7ca243b (diff) | |
download | luxio-2f29169541874085ac3b85dff4275656467ba97f.tar.gz |
Get rid of silly calls to pushcclosure(...,0)
Diffstat (limited to 'luxio.c')
-rw-r--r-- | luxio.c | 26 |
1 files changed, 13 insertions, 13 deletions
@@ -1371,9 +1371,9 @@ luxio___makesockaddr(lua_State *L) int create_mt = luaL_newmetatable(L, LUXIO_SOCKADDR_METATABLE_NAME); if (create_mt) { - lua_pushcclosure(L, luxio__sockaddr_index, 0); + lua_pushcfunction(L, luxio__sockaddr_index); lua_setfield(L, -2, "__index"); - lua_pushcclosure(L, luxio__sockaddr_tostring, 0); + lua_pushcfunction(L, luxio__sockaddr_tostring); lua_setfield(L, -2, "__tostring"); } @@ -1797,11 +1797,11 @@ luxio_pollfds_new(lua_State *L) pfds->allocated = 0; if (create_table) { - lua_pushcclosure(L, luxio__pollfds_gc, 0); + lua_pushcfunction(L, luxio__pollfds_gc); lua_setfield(L, -2, "__gc"); - lua_pushcclosure(L, luxio__pollfds_tostring, 0); + lua_pushcfunction(L, luxio__pollfds_tostring); lua_setfield(L, -2, "__tostring"); - lua_pushcclosure(L, luxio__pollfds_len, 0); + lua_pushcfunction(L, luxio__pollfds_len); lua_setfield(L, -2, "__len"); } @@ -2102,21 +2102,21 @@ luxio__bless_timeval(lua_State *L) int create = luaL_newmetatable(L, LUXIO_TIMEVAL_METATABLE); if (create) { - lua_pushcclosure(L, luxio_timeval_le, 0); + lua_pushcfunction(L, luxio_timeval_le); lua_setfield(L, -2, "__le"); - lua_pushcclosure(L, luxio_timeval_lt, 0); + lua_pushcfunction(L, luxio_timeval_lt); lua_setfield(L, -2, "__lt"); - lua_pushcclosure(L, luxio_timeval_eq, 0); + lua_pushcfunction(L, luxio_timeval_eq); lua_setfield(L, -2, "__eq"); - lua_pushcclosure(L, luxio_timeval_tostring, 0); + lua_pushcfunction(L, luxio_timeval_tostring); lua_setfield(L, -2, "__tostring"); - lua_pushcclosure(L, luxio_timeval_index, 0); + lua_pushcfunction(L, luxio_timeval_index); lua_setfield(L, -2, "__index"); - lua_pushcclosure(L, luxio_timeval_newindex, 0); + lua_pushcfunction(L, luxio_timeval_newindex); lua_setfield(L, -2, "__newindex"); - lua_pushcclosure(L, luxio_timeval_add, 0); + lua_pushcfunction(L, luxio_timeval_add); lua_setfield(L, -2, "__add"); - lua_pushcclosure(L, luxio_timeval_sub, 0); + lua_pushcfunction(L, luxio_timeval_sub); lua_setfield(L, -2, "__sub"); } |