diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-09-14 14:44:48 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-09-14 14:44:48 -0300 |
commit | 38f585d271dd666d14d589909be22aa671a80eaa (patch) | |
tree | 9a9137221d8e9a4fb9aea10c906296f3d9182cb2 | |
parent | 6887f917999695aac6131091b78d99fb2718503d (diff) | |
download | lua-38f585d271dd666d14d589909be22aa671a80eaa.tar.gz lua-38f585d271dd666d14d589909be22aa671a80eaa.tar.bz2 lua-38f585d271dd666d14d589909be22aa671a80eaa.zip |
separated macros for thread creation and state creation
-rw-r--r-- | lapi.c | 4 | ||||
-rw-r--r-- | luaconf.h | 3 |
2 files changed, 4 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lapi.c,v 2.47 2005/08/24 16:15:49 roberto Exp roberto $ | 2 | ** $Id: lapi.c,v 2.48 2005/09/01 17:42:22 roberto Exp roberto $ |
3 | ** Lua API | 3 | ** Lua API |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -141,7 +141,7 @@ LUA_API lua_State *lua_newthread (lua_State *L) { | |||
141 | setthvalue(L, L->top, L1); | 141 | setthvalue(L, L->top, L1); |
142 | api_incr_top(L); | 142 | api_incr_top(L); |
143 | lua_unlock(L); | 143 | lua_unlock(L); |
144 | luai_userstateopen(L1); | 144 | luai_userstatethread(L, L1); |
145 | return L1; | 145 | return L1; |
146 | } | 146 | } |
147 | 147 | ||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: luaconf.h,v 1.65 2005/09/09 18:24:42 roberto Exp roberto $ | 2 | ** $Id: luaconf.h,v 1.66 2005/09/14 17:23:03 roberto Exp roberto $ |
3 | ** Configuration file for Lua | 3 | ** Configuration file for Lua |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -675,6 +675,7 @@ union luai_Cast { double l_d; long l_l; }; | |||
675 | ** extra when a thread is created/deleted/resumed/yielded. | 675 | ** extra when a thread is created/deleted/resumed/yielded. |
676 | */ | 676 | */ |
677 | #define luai_userstateopen(L) ((void)0) | 677 | #define luai_userstateopen(L) ((void)0) |
678 | #define luai_userstatethread(L,L1) ((void)0) | ||
678 | #define luai_userstatefree(L) ((void)0) | 679 | #define luai_userstatefree(L) ((void)0) |
679 | #define luai_userstateresume(L,n) ((void)0) | 680 | #define luai_userstateresume(L,n) ((void)0) |
680 | #define luai_userstateyield(L,n) ((void)0) | 681 | #define luai_userstateyield(L,n) ((void)0) |