提交 0f22cf1d 编写于 作者: S Shengliang Guan

refactor: rename shell.h

上级 32c24eed
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
#ifndef _TD_SHELL_COMMAND_H_ #ifndef _TD_SHELL_COMMAND_H_
#define _TD_SHELL_COMMAND_H_ #define _TD_SHELL_COMMAND_H_
#include "shell.h" #include "shellInt.h"
#define LEFT 1 #define LEFT 1
#define RIGHT 2 #define RIGHT 2
......
...@@ -21,14 +21,10 @@ ...@@ -21,14 +21,10 @@
#include "taos.h" #include "taos.h"
#include "taosdef.h" #include "taosdef.h"
#define MAX_USERNAME_SIZE 64 #define MAX_HISTORY_SIZE 1000
#define MAX_DBNAME_SIZE 64 #define MAX_COMMAND_SIZE 1048586
#define MAX_IP_SIZE 20 #define HISTORY_FILE ".taos_history"
#define MAX_HISTORY_SIZE 1000 #define DEFAULT_RES_SHOW_NUM 100
#define MAX_COMMAND_SIZE 1048586
#define HISTORY_FILE ".taos_history"
#define DEFAULT_RES_SHOW_NUM 100
typedef struct SShellHistory { typedef struct SShellHistory {
char* hist[MAX_HISTORY_SIZE]; char* hist[MAX_HISTORY_SIZE];
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
#define _DEFAULT_SOURCE #define _DEFAULT_SOURCE
#include "os.h" #include "os.h"
#include "shell.h" #include "shellInt.h"
#include "shellCommand.h" #include "shellCommand.h"
#include "tglobal.h" #include "tglobal.h"
#include "tutil.h" #include "tutil.h"
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
#include "os.h" #include "os.h"
#include "shell.h" #include "shellInt.h"
#include "shellCommand.h" #include "shellCommand.h"
#include "tbase64.h" #include "tbase64.h"
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
#define _DEFAULT_SOURCE #define _DEFAULT_SOURCE
#include "os.h" #include "os.h"
#include "shell.h" #include "shellInt.h"
#include "shellCommand.h" #include "shellCommand.h"
#include "tglobal.h" #include "tglobal.h"
#include "tutil.h" #include "tutil.h"
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
#include <stdio.h> #include <stdio.h>
#include "../../../../include/client/taos.h" #include "../../../../include/client/taos.h"
#include "os.h" #include "os.h"
#include "shell.h" #include "shellInt.h"
#include "shellCommand.h" #include "shellCommand.h"
extern char configDir[]; extern char configDir[];
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
#include "shellCommand.h" #include "shellCommand.h"
#include "os.h" #include "os.h"
#include "shell.h" #include "shellInt.h"
#include <regex.h> #include <regex.h>
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
#define _DEFAULT_SOURCE #define _DEFAULT_SOURCE
#include "os.h" #include "os.h"
#include "shell.h" #include "shellInt.h"
#include "shellCommand.h" #include "shellCommand.h"
#include "taosdef.h" #include "taosdef.h"
#include "taoserror.h" #include "taoserror.h"
......
...@@ -16,7 +16,6 @@ ...@@ -16,7 +16,6 @@
#define __USE_XOPEN #define __USE_XOPEN
#include "shellCommand.h" #include "shellCommand.h"
#include "tglobal.h" #include "tglobal.h"
#include "tlog.h"
#include <argp.h> #include <argp.h>
#include <termio.h> #include <termio.h>
...@@ -407,7 +406,7 @@ void *shellLoopQuery(void *arg) { ...@@ -407,7 +406,7 @@ void *shellLoopQuery(void *arg) {
char *command = taosMemoryMalloc(MAX_COMMAND_SIZE); char *command = taosMemoryMalloc(MAX_COMMAND_SIZE);
if (command == NULL) { if (command == NULL) {
uError("failed to malloc command"); printf("failed to malloc command\n");
return NULL; return NULL;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册