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

@@ -18,7 +18,6 @@
#include "lauxlib.h"
#include "lualib.h"
#include "lstring.h"
@@ -596,9 +595,7 @@ static int pmain (lua_State *L) {
int main (int argc, char **argv) {
int status, result;
lua_State *L;
luaS_initssm();
L = luaL_newstate(); /* create state */
lua_State *L = luaL_newstate(); /* create state */
if (L == NULL) {
l_message(argv[0], "cannot create state: not enough memory");
return EXIT_FAILURE;
@@ -610,7 +607,6 @@ int main (int argc, char **argv) {
result = lua_toboolean(L, -1); /* get result */
report(L, status);
lua_close(L);
luaS_exitssm();
return (result && status == LUA_OK) ? EXIT_SUCCESS : EXIT_FAILURE;
}