lua.c
changeset 125 3e2421384d7a
parent 123 6b753fbacd4c
child 128 8692a6fbe415
equal deleted inserted replaced
124:286a034e4d5f 125:3e2421384d7a
  1219 	lua_bgreads = g_slist_remove (lua_bgreads, (gpointer) ((gsize) cb->source));
  1219 	lua_bgreads = g_slist_remove (lua_bgreads, (gpointer) ((gsize) cb->source));
  1220 	luaL_free (cb->L, cb);
  1220 	luaL_free (cb->L, cb);
  1221 }
  1221 }
  1222 
  1222 
  1223 /// background reading function
  1223 /// background reading function
  1224 /// Function, that processes output from pipe in asynchroneous way.
  1224 /// Function, that processes output from pipe in asynchronous way.
  1225 /// A: string (data) or nil (eof)
  1225 /// A: string (data) or nil (eof)
  1226 /// R: boolean (false if reading should be terminated)
  1226 /// R: boolean (false if reading should be terminated)
  1227 static gboolean lua_bgread_callback (GIOChannel *source, GIOCondition condition, lua_bgread_callback_t *cb)
  1227 static gboolean lua_bgread_callback (GIOChannel *source, GIOCondition condition, lua_bgread_callback_t *cb)
  1228 {
  1228 {
  1229 	int ret = TRUE;
  1229 	int ret = TRUE;