From 1cf2c568c9a8d3a515254036916219d1b12de4d0 Mon Sep 17 00:00:00 2001
From: Jan Breuer <jan.breuer@jaybee.cz>
Date: 周二, 13 10月 2015 00:49:16 +0800
Subject: [PATCH] Resolve #57: SCPI_ExprChannelListEntry() crashes with whitespaces

---
 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