From 11f2f2e329ef404d0e9c022cb2f9fbbb45bae285 Mon Sep 17 00:00:00 2001 From: nancy.liao <huihui.liao@greentest.com.cn> Date: 周日, 27 4月 2025 17:33:31 +0800 Subject: [PATCH] 完成了SCPI命令语法分析器的完整规则 --- libscpi/src/utils_private.h | 8 -------- 1 files changed, 0 insertions(+), 8 deletions(-) diff --git a/libscpi/src/utils_private.h b/libscpi/src/utils_private.h index 101bd71..b0dece2 100644 --- a/libscpi/src/utils_private.h +++ b/libscpi/src/utils_private.h @@ -79,14 +79,6 @@ scpi_bool_t composeCompoundCommand(const scpi_token_t * prev, scpi_token_t * current) LOCAL; -#define MAX_OPTION_LEN 256 -#define MAX_TAGS 10 -#define MAX_INPUT_LEN 256 -int extract_required_options(const char* pattern, char options[MAX_TAGS][MAX_OPTION_LEN][MAX_OPTION_LEN], int max_tags); -int match_input_to_options(const char* input, char options[MAX_TAGS][MAX_OPTION_LEN][MAX_OPTION_LEN], int num_tags); -bool test_match(const char* pattern, const char* command); - - #define SCPI_DTOSTRE_UPPERCASE 1 #define SCPI_DTOSTRE_ALWAYS_SIGN 2 #define SCPI_DTOSTRE_PLUS_SIGN 4 -- Gitblit v1.9.1