From 39b7fbcb39edade740feb182c86cb43a43942cb7 Mon Sep 17 00:00:00 2001
From: Jan Breuer <jan.breuer@jaybee.cz>
Date: 摹曛, 10 9月 2015 03:37:05 +0800
Subject: [PATCH] Clarify disabled characters in program expression

---
 libscpi/src/lexer.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/libscpi/src/lexer.c b/libscpi/src/lexer.c
index aaca475..755c4bf 100644
--- a/libscpi/src/lexer.c
+++ b/libscpi/src/lexer.c
@@ -771,12 +771,12 @@
 /* 7.7.7 <EXPRESSION PROGRAM DATA> */
 static int isProgramExpression(int c) {
     if ((c >= 0x20) && (c <= 0x7e)) {
-        if ((c != 0x22)
-                && (c != 0x23)
-                && (c != 0x27)
-                && (c != 0x28)
-                && (c != 0x29)
-                && (c != 0x3B)) {
+        if ((c != '"')
+                && (c != '#')
+                && (c != '\'')
+                && (c != '(')
+                && (c != ')')
+                && (c != ';')) {
             return 1;
         }
     }

--
Gitblit v1.9.1