提交 baba270e 编写于 作者: Y yihaoDeng

fix compile error with gcc4.8+

上级 9af52d8f
......@@ -19,7 +19,6 @@
#include <lua.h>
#include <lauxlib.h>
#include <lualib.h>
#include <openssl/sha.h>
#include "tutil.h"
#include "hash.h"
......@@ -28,6 +27,9 @@
#define MAX_FUNC_NAME 64
#define USER_FUNC_NAME "funcName"
#define USER_FUNC_NAME_LIMIT 48
enum ScriptState {
SCRIPT_STATE_INIT,
SCRIPT_STATE_ADD,
......@@ -42,7 +44,7 @@ typedef struct {
} ScriptEnv;
typedef struct ScriptCtx {
char funcName[MAX_FUNC_NAME];
char funcName[USER_FUNC_NAME_LIMIT];
int8_t state;
ScriptEnv *pEnv;
int8_t isAgg; // agg function or not
......
......@@ -22,10 +22,6 @@
static ScriptEnvPool *pool = NULL;
#define USER_FUNC_NAME "funcName"
#define USER_FUNC_NAME_LIMIT 48
static ScriptEnv* getScriptEnvFromPool();
static void addScriptEnvToPool(ScriptEnv *pEnv);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册