refactor: rename shell.h

This commit is contained in:
Shengliang Guan 2022-04-20 19:13:22 +08:00
parent 32c24eedb8
commit 0f22cf1d2e
9 changed files with 12 additions and 17 deletions

View File

@ -16,7 +16,7 @@
#ifndef _TD_SHELL_COMMAND_H_
#define _TD_SHELL_COMMAND_H_
#include "shell.h"
#include "shellInt.h"
#define LEFT 1
#define RIGHT 2

View File

@ -21,14 +21,10 @@
#include "taos.h"
#include "taosdef.h"
#define MAX_USERNAME_SIZE 64
#define MAX_DBNAME_SIZE 64
#define MAX_IP_SIZE 20
#define MAX_HISTORY_SIZE 1000
#define MAX_COMMAND_SIZE 1048586
#define HISTORY_FILE ".taos_history"
#define DEFAULT_RES_SHOW_NUM 100
#define MAX_HISTORY_SIZE 1000
#define MAX_COMMAND_SIZE 1048586
#define HISTORY_FILE ".taos_history"
#define DEFAULT_RES_SHOW_NUM 100
typedef struct SShellHistory {
char* hist[MAX_HISTORY_SIZE];

View File

@ -18,7 +18,7 @@
#define _DEFAULT_SOURCE
#include "os.h"
#include "shell.h"
#include "shellInt.h"
#include "shellCommand.h"
#include "tglobal.h"
#include "tutil.h"

View File

@ -17,7 +17,7 @@
#include "os.h"
#include "shell.h"
#include "shellInt.h"
#include "shellCommand.h"
#include "tbase64.h"

View File

@ -18,7 +18,7 @@
#define _DEFAULT_SOURCE
#include "os.h"
#include "shell.h"
#include "shellInt.h"
#include "shellCommand.h"
#include "tglobal.h"
#include "tutil.h"

View File

@ -14,7 +14,7 @@
#include <stdio.h>
#include "../../../../include/client/taos.h"
#include "os.h"
#include "shell.h"
#include "shellInt.h"
#include "shellCommand.h"
extern char configDir[];

View File

@ -17,7 +17,7 @@
#include "shellCommand.h"
#include "os.h"
#include "shell.h"
#include "shellInt.h"
#include <regex.h>

View File

@ -19,7 +19,7 @@
#define _DEFAULT_SOURCE
#include "os.h"
#include "shell.h"
#include "shellInt.h"
#include "shellCommand.h"
#include "taosdef.h"
#include "taoserror.h"

View File

@ -16,7 +16,6 @@
#define __USE_XOPEN
#include "shellCommand.h"
#include "tglobal.h"
#include "tlog.h"
#include <argp.h>
#include <termio.h>
@ -407,7 +406,7 @@ void *shellLoopQuery(void *arg) {
char *command = taosMemoryMalloc(MAX_COMMAND_SIZE);
if (command == NULL) {
uError("failed to malloc command");
printf("failed to malloc command\n");
return NULL;
}