优化源码配置宏位置,方便个性化编译
This commit is contained in:
@ -5,10 +5,8 @@
|
||||
#include "tools/toml/toml.h"
|
||||
#include "tools/log/log.h"
|
||||
#include "interpreter/interpreter.h"
|
||||
#include "config.h"
|
||||
|
||||
#define MAX_BUF 256
|
||||
#define HISTORY_BUF 210
|
||||
#define PROMPT "chatbot$$ "
|
||||
|
||||
|
||||
typedef struct Ctl
|
||||
@ -16,7 +14,7 @@ typedef struct Ctl
|
||||
int (*run)(struct Ctl*,int *);
|
||||
int (*infifo)(struct Ctl*,const char*);
|
||||
int index;
|
||||
char *history[HISTORY_BUF];
|
||||
char *history[TEM_HISTORY_BUF];
|
||||
pthread_t logwathcher;
|
||||
log_manager *logmanager;
|
||||
ctx *command;//解释器上下文
|
||||
|
||||
Reference in New Issue
Block a user