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 |   15 ---------------
 1 files changed, 0 insertions(+), 15 deletions(-)

diff --git a/libscpi/src/utils_private.h b/libscpi/src/utils_private.h
index fbc81e0..b0dece2 100644
--- a/libscpi/src/utils_private.h
+++ b/libscpi/src/utils_private.h
@@ -79,21 +79,6 @@
 scpi_bool_t composeCompoundCommand(const scpi_token_t * prev, scpi_token_t * current) LOCAL;
 
 
-#define MAX_SEGMENTS 16
-
-typedef struct {
-    bool is_variable;  // 鏄惁涓哄彲鍙橀儴鍒嗭紙鐢╗]鎷捣鏉ョ殑锛�
-    bool is_required;  // 鏄惁涓哄繀閫夐儴鍒嗭紙鐢�<>鎷捣鏉ョ殑锛�
-    bool is_option;    // 鏄惁涓洪�夐」缁勯儴鍒嗭紙鐢▅鍒嗛殧锛�
-    char text[32];     // 娈靛唴瀹癸紙涓嶅寘鍚玔]鎴�<>锛�
-} Segment;
-
-//鍖归厤[:MEASure][:VOLTage]
-int parse_pattern(const char* pattern, Segment segments[], int max_segments);
-bool match_command(const char* command, Segment segments[], int seg_count);
-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