Lines 1086-1098
l_exec( lua_State *L )
Link Here
|
1086 |
{ |
1086 |
{ |
1087 |
int tlen; |
1087 |
int tlen; |
1088 |
int it; |
1088 |
int it; |
1089 |
lua_checkstack( L, lua_gettop( L ) + lua_objlen( L, i ) + 1 ); |
1089 |
|
|
|
1090 |
lua_checkstack( L, lua_gettop( L ) + lua_rawlen( L, i ) + 1 ); |
1090 |
|
1091 |
|
1091 |
// moves table to top of stack |
1092 |
// moves table to top of stack |
1092 |
lua_pushvalue( L, i ); |
1093 |
lua_pushvalue( L, i ); |
1093 |
lua_remove( L, i ); |
1094 |
lua_remove( L, i ); |
1094 |
argc--; |
1095 |
argc--; |
1095 |
tlen = lua_objlen( L, -1 ); |
1096 |
tlen = lua_rawlen( L, -1 ); |
1096 |
|
1097 |
|
1097 |
for( it = 1; it <= tlen; it++ ) |
1098 |
for( it = 1; it <= tlen; it++ ) |
1098 |
{ |
1099 |
{ |
Lines 1850-1856
l_jiffies_le(lua_State *L)
Link Here
|
1850 |
void |
1851 |
void |
1851 |
register_lsyncd( lua_State *L ) |
1852 |
register_lsyncd( lua_State *L ) |
1852 |
{ |
1853 |
{ |
1853 |
luaL_register( L, LSYNCD_LIBNAME, lsyncdlib ); |
1854 |
luaL_newlib( L, lsyncdlib ); |
1854 |
lua_setglobal( L, LSYNCD_LIBNAME ); |
1855 |
lua_setglobal( L, LSYNCD_LIBNAME ); |
1855 |
|
1856 |
|
1856 |
// creates the metatable for the jiffies ( timestamps ) userdata |
1857 |
// creates the metatable for the jiffies ( timestamps ) userdata |