diff options
Diffstat (limited to 'src/linda.cpp')
-rw-r--r-- | src/linda.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/linda.cpp b/src/linda.cpp index 4635d75..a19b126 100644 --- a/src/linda.cpp +++ b/src/linda.cpp | |||
@@ -307,7 +307,7 @@ LUAG_FUNC(linda_send) | |||
307 | { | 307 | { |
308 | Lane* const lane{ LANE_POINTER_REGKEY.readLightUserDataValue<Lane>(L) }; | 308 | Lane* const lane{ LANE_POINTER_REGKEY.readLightUserDataValue<Lane>(L) }; |
309 | Keeper* const K{ which_keeper(linda->U->keepers, linda->hashSeed()) }; | 309 | Keeper* const K{ which_keeper(linda->U->keepers, linda->hashSeed()) }; |
310 | lua_State* const KL{ K ? K->L : nullptr }; | 310 | KeeperState const KL{ K ? K->L : nullptr }; |
311 | if (KL == nullptr) | 311 | if (KL == nullptr) |
312 | return 0; | 312 | return 0; |
313 | 313 | ||
@@ -473,7 +473,7 @@ LUAG_FUNC(linda_receive) | |||
473 | 473 | ||
474 | Lane* const lane{ LANE_POINTER_REGKEY.readLightUserDataValue<Lane>(L) }; | 474 | Lane* const lane{ LANE_POINTER_REGKEY.readLightUserDataValue<Lane>(L) }; |
475 | Keeper* const K{ which_keeper(linda->U->keepers, linda->hashSeed()) }; | 475 | Keeper* const K{ which_keeper(linda->U->keepers, linda->hashSeed()) }; |
476 | lua_State* const KL{ K ? K->L : nullptr }; | 476 | KeeperState const KL{ K ? K->L : nullptr }; |
477 | if (KL == nullptr) | 477 | if (KL == nullptr) |
478 | return 0; | 478 | return 0; |
479 | 479 | ||
@@ -863,7 +863,7 @@ LUAG_FUNC(linda_dump) | |||
863 | auto dump = [](lua_State* L) | 863 | auto dump = [](lua_State* L) |
864 | { | 864 | { |
865 | Linda* const linda{ ToLinda<false>(L, 1) }; | 865 | Linda* const linda{ ToLinda<false>(L, 1) }; |
866 | return keeper_push_linda_storage(linda->U, Dest{ L }, linda, linda->hashSeed()); | 866 | return keeper_push_linda_storage(linda->U, DestState{ L }, linda, linda->hashSeed()); |
867 | }; | 867 | }; |
868 | return Linda::ProtectedCall(L, dump); | 868 | return Linda::ProtectedCall(L, dump); |
869 | } | 869 | } |
@@ -877,7 +877,7 @@ LUAG_FUNC(linda_dump) | |||
877 | LUAG_FUNC(linda_towatch) | 877 | LUAG_FUNC(linda_towatch) |
878 | { | 878 | { |
879 | Linda* const linda{ ToLinda<false>(L, 1) }; | 879 | Linda* const linda{ ToLinda<false>(L, 1) }; |
880 | int pushed{ keeper_push_linda_storage(linda->U, Dest{ L }, linda, linda->hashSeed()) }; | 880 | int pushed{ keeper_push_linda_storage(linda->U, DestState{ L }, linda, linda->hashSeed()) }; |
881 | if (pushed == 0) | 881 | if (pushed == 0) |
882 | { | 882 | { |
883 | // if the linda is empty, don't return nil | 883 | // if the linda is empty, don't return nil |
@@ -1028,5 +1028,5 @@ LUAG_FUNC(linda) | |||
1028 | luaL_checktype(L, 1, LUA_TSTRING); | 1028 | luaL_checktype(L, 1, LUA_TSTRING); |
1029 | luaL_checktype(L, 2, LUA_TNUMBER); | 1029 | luaL_checktype(L, 2, LUA_TNUMBER); |
1030 | } | 1030 | } |
1031 | return g_LindaFactory.pushDeepUserdata(Dest{ L }, 0); | 1031 | return g_LindaFactory.pushDeepUserdata(DestState{ L }, 0); |
1032 | } | 1032 | } |