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 | 15 ++++++++------- 1 files changed, 8 insertions(+), 7 deletions(-) diff --git a/libscpi/inc/scpi/types.h b/libscpi/inc/scpi/types.h index 6f02ec0..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; @@ -190,7 +190,6 @@ typedef struct _scpi_parser_state_t scpi_parser_state_t; typedef scpi_result_t(*scpi_command_callback_t)(scpi_t *); - typedef int32_t(*scpi_test_command_callback_t)(scpi_t *); /* scpi error queue */ typedef void * scpi_error_queue_t; @@ -245,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; @@ -272,7 +274,6 @@ scpi_write_control_t control; scpi_command_callback_t flush; scpi_command_callback_t reset; - scpi_test_command_callback_t test; }; struct _scpi_t { -- Gitblit v1.9.1