mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 20:23:06 +00:00
remove ssm and add string id
This commit is contained in:
@@ -1,29 +0,0 @@
|
||||
#ifndef LUA_SHORT_STRING_TABLE_H
|
||||
#define LUA_SHORT_STRING_TABLE_H
|
||||
|
||||
#include "lstring.h"
|
||||
|
||||
// If you use modified lua, this macro would be defined in lstring.h
|
||||
#ifndef ENABLE_SHORT_STRING_TABLE
|
||||
|
||||
struct ssm_info {
|
||||
int total;
|
||||
int longest;
|
||||
int slots;
|
||||
size_t size;
|
||||
double variance;
|
||||
};
|
||||
|
||||
struct ssm_collect {
|
||||
void *key;
|
||||
int n;
|
||||
};
|
||||
|
||||
static inline void luaS_initssm();
|
||||
static inline void luaS_exitssm();
|
||||
static inline void luaS_infossm(struct ssm_info *info) {}
|
||||
static inline int luaS_collectssm(struct ssm_collect *info) { return 0; }
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
@@ -3,7 +3,6 @@
|
||||
#include "skynet_imp.h"
|
||||
#include "skynet_env.h"
|
||||
#include "skynet_server.h"
|
||||
#include "luashrtbl.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
@@ -126,7 +125,6 @@ main(int argc, char *argv[]) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
luaS_initssm();
|
||||
skynet_globalinit();
|
||||
skynet_env_init();
|
||||
|
||||
@@ -162,7 +160,6 @@ main(int argc, char *argv[]) {
|
||||
|
||||
skynet_start(&config);
|
||||
skynet_globalexit();
|
||||
luaS_exitssm();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user