From 2d94f8a87580be95ecad8809f9d44739046e75da Mon Sep 17 00:00:00 2001 From: Shengliang Guan Date: Wed, 20 Apr 2022 19:46:55 +0800 Subject: [PATCH] refactor: rename files --- tools/shell/inc/shellCommand.h | 2 +- tools/shell/inc/shellInt.h | 3 +++ tools/shell/src/shellCommand.c | 1 - tools/shell/src/shellEngine.c | 2 -- tools/shell/src/{tnettest.c => shellTest.c} | 0 5 files changed, 4 insertions(+), 4 deletions(-) rename tools/shell/src/{tnettest.c => shellTest.c} (100%) diff --git a/tools/shell/inc/shellCommand.h b/tools/shell/inc/shellCommand.h index 726264dd5c..2602d41055 100644 --- a/tools/shell/inc/shellCommand.h +++ b/tools/shell/inc/shellCommand.h @@ -51,4 +51,4 @@ void clearScreen(int ecmd_pos, int cursor_pos); void printChar(char c, int times); void positionCursor(int step, int direction); -#endif +#endif /*_TD_SHELL_COMMAND_H_*/ diff --git a/tools/shell/inc/shellInt.h b/tools/shell/inc/shellInt.h index 3bdeed6e2c..7bacd81820 100644 --- a/tools/shell/inc/shellInt.h +++ b/tools/shell/inc/shellInt.h @@ -20,6 +20,9 @@ #include "taos.h" #include "taosdef.h" +#include +#include + #define MAX_HISTORY_SIZE 1000 #define MAX_COMMAND_SIZE 1048586 #define HISTORY_FILE ".taos_history" diff --git a/tools/shell/src/shellCommand.c b/tools/shell/src/shellCommand.c index 1ec222fcc8..f564b5421b 100644 --- a/tools/shell/src/shellCommand.c +++ b/tools/shell/src/shellCommand.c @@ -19,7 +19,6 @@ #include "os.h" #include "shellInt.h" -#include typedef struct { char widthInString; diff --git a/tools/shell/src/shellEngine.c b/tools/shell/src/shellEngine.c index 9a4ef8b65a..d8d157c887 100644 --- a/tools/shell/src/shellEngine.c +++ b/tools/shell/src/shellEngine.c @@ -28,8 +28,6 @@ #include "ttypes.h" #include "tutil.h" -#include -#include /**************** Global variables ****************/ #ifdef _TD_POWER_ diff --git a/tools/shell/src/tnettest.c b/tools/shell/src/shellTest.c similarity index 100% rename from tools/shell/src/tnettest.c rename to tools/shell/src/shellTest.c