From e816026faa1ae11f0e9d26d27f420a304d4ad210 Mon Sep 17 00:00:00 2001 From: Jan Breuer <jan.breuer@jaybee.cz> Date: 周五, 16 10月 2015 06:16:45 +0800 Subject: [PATCH] Resolve #59: input buffer overrun handling --- libscpi/inc/scpi/types.h | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/libscpi/inc/scpi/types.h b/libscpi/inc/scpi/types.h index db52e81..fab9b37 100644 --- a/libscpi/inc/scpi/types.h +++ b/libscpi/inc/scpi/types.h @@ -52,14 +52,14 @@ #endif #if !HAVE_STDBOOL - typedef unsigned char bool; + typedef unsigned char bool; #endif #ifndef FALSE - #define FALSE 0 +#define FALSE 0 #endif #ifndef TRUE - #define TRUE (!FALSE) +#define TRUE (!FALSE) #endif /* basic data types */ @@ -141,6 +141,8 @@ enum _scpi_token_type_t { SCPI_TOKEN_COMMA, SCPI_TOKEN_SEMICOLON, + SCPI_TOKEN_COLON, + SCPI_TOKEN_SPECIFIC_CHARACTER, SCPI_TOKEN_QUESTION, SCPI_TOKEN_NL, SCPI_TOKEN_HEXNUM, @@ -253,6 +255,7 @@ struct _scpi_number_parameter_t { scpi_bool_t special; + union { double value; int32_t tag; -- Gitblit v1.9.1