Browse files

updated lakefile

  • Loading branch information...
1 parent 93cca74 commit 643ef59804147da2a9d502bd087a5cb4f5b1d6b6 @grrrwaaa committed Apr 22, 2012
Showing with 3 additions and 6 deletions.
  1. +3 −1 lakefile
  2. +0 −5 lua_uv_stream.cpp
View
4 lakefile
@@ -25,4 +25,6 @@ cpp.shared{
},
needs = { "uv", "lua" },
libflags = libflags,
-}
+}
+
+target('install', 'uv', 'sudo cp $(DEPENDS) /usr/local/lib/lua/5.1/$(DEPENDS)')
View
5 lua_uv_stream.cpp
@@ -66,9 +66,7 @@ int lua_uv_stream_read_stop(lua_State * L) {
void lua_uv_stream_write_resume(uv_write_t * req, int status) {
dprintf("lua_uv_stream_write_resume\n");
lua_State * L = (lua_State *)req->data;
-
callback_resume_after(L);
-
lua_pushinteger(L, status);
Lua(L).resume(1);
}
@@ -86,7 +84,6 @@ int lua_uv_stream_write(lua_State * L) {
uv_write_t * req = callback_resume_before<uv_write_t>(L, 1);
uv_buf_t * buf = lua_uv_buf_init(L, (char *)str, sz);
uv_write(req, s, buf, 1, lua_uv_stream_write_resume);
- // keep these on the stack to prevent gc:
return lua_yield(L, 3);
}
}
@@ -143,9 +140,7 @@ int lua_uv_stream_accept(lua_State * L) {
void lua_uv_stream_shutdown_resume(uv_shutdown_t * req, int status) {
dprintf("lua_uv_stream_shutdown_resume\n");
lua_State * L = (lua_State *)req->data;
-
callback_resume_after(L);
-
lua_pushinteger(L, status);
Lua(L).resume(1);
}

0 comments on commit 643ef59

Please sign in to comment.