From: Jay Freeman (saurik) <saurik@saurik.com>
Date: Sat, 15 Sep 2012 15:29:48 +0000 (-0700)
Subject: Add BOOL and bool for boolean (people use those).
X-Git-Tag: v0.9.460~2
X-Git-Url: https://git.saurik.com/cycript.git/commitdiff_plain/aa82b83bc1cf1a31523f5ca3e3c7e44b34c8d72c

Add BOOL and bool for boolean (people use those).
---

diff --git a/Bridge.def b/Bridge.def
index 0071f38..5765ed6 100644
--- a/Bridge.def
+++ b/Bridge.def
@@ -23,6 +23,8 @@ T float f
 T double d
 
 T Boolean B
+T BOOL B
+T bool B
 
 T int8_t {char}
 T uint8_t {byte}
diff --git a/Cycript.l.in b/Cycript.l.in
index 759a4dd..0397b14 100644
--- a/Cycript.l.in
+++ b/Cycript.l.in
@@ -265,6 +265,8 @@ XMLName {XMLNameStart}{XMLNamePart}*
 "YES"          L C I(identifier, Identifier("YES"), tk::Identifier_, hi::Constant);
 "NO"           L C I(identifier, Identifier("NO"), tk::Identifier_, hi::Constant);
 
+"bool"         L C I(identifier, Identifier("bool"), tk::Identifier_, hi::Type);
+"BOOL"         L C I(identifier, Identifier("BOOL"), tk::Identifier_, hi::Type);
 "id"           L C I(identifier, Identifier("id"), tk::Identifier_, hi::Type);
 @end