remove ssm and add string id

This commit is contained in:
Cloud Wu
2019-06-18 14:09:36 +08:00
committed by 云风
parent 7032f21d18
commit 5d26fb3f18
20 changed files with 183 additions and 1172 deletions

View File

@@ -4,12 +4,9 @@
#include <lauxlib.h>
#include <lualib.h>
#include "lstring.h"
#include "lobject.h"
#include "lapi.h"
#include "lgc.h"
#ifdef ENABLE_SHORT_STRING_TABLE
#ifdef makeshared
static void
mark_shared(lua_State *L) {
@@ -81,12 +78,7 @@ make_matrix(lua_State *L) {
static int
clone_table(lua_State *L) {
Table * t = (Table *)lua_touserdata(L, 1);
if (!isshared(t))
return luaL_error(L, "Not a shared table");
sethvalue(L, L->top, t);
api_incr_top(L);
lua_clonetable(L, lua_touserdata(L, 1));
return 1;
}