From a5a84c429ac548eafd1d3903225a4ce72104201f Mon Sep 17 00:00:00 2001
From: Jan Breuer <jan.breuer@jaybee.cz>
Date: 周三, 22 4月 2015 03:50:26 +0800
Subject: [PATCH] Support RESPONSE MESSAGE UNIT SEPARATOR, issue #21

---
 libscpi/inc/scpi/types.h |   13 ++++++++-----
 1 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/libscpi/inc/scpi/types.h b/libscpi/inc/scpi/types.h
index 4851d9e..3ce30ab 100644
--- a/libscpi/inc/scpi/types.h
+++ b/libscpi/inc/scpi/types.h
@@ -161,14 +161,14 @@
 
     struct _scpi_token_t {
         scpi_token_type_t type;
-        const char * ptr;
+        char * ptr;
         int len;
     };
     typedef struct _scpi_token_t scpi_token_t;
 
     struct _lex_state_t {
-        const char * buffer;
-        const char * pos;
+        char * buffer;
+        char * pos;
         int len;
     };
     typedef struct _lex_state_t lex_state_t;
@@ -244,10 +244,13 @@
     typedef struct _scpi_param_list_t scpi_param_list_t;  
     
     struct _scpi_number_parameter_t {
-        double value;
+        scpi_bool_t special;
+        union {
+            double value;
+            int32_t tag;
+        };
         scpi_unit_t unit;
         int8_t base;
-        scpi_special_number_t type;
     };
     typedef struct _scpi_number_parameter_t scpi_number_t;
 

--
Gitblit v1.9.1