fix compile error with gcc4.8+
This commit is contained in:
parent
9af52d8f24
commit
baba270e7a
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue