优化源码配置宏位置,方便个性化编译

This commit is contained in:
2025-12-16 09:13:30 +08:00
parent 08589dfe79
commit cd75b098f5
9 changed files with 62 additions and 36 deletions

View File

@ -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;//解释器上下文