From aa82b83bc1cf1a31523f5ca3e3c7e44b34c8d72c Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Sat, 15 Sep 2012 08:29:48 -0700 Subject: [PATCH] Add BOOL and bool for boolean (people use those). --- Bridge.def | 2 ++ Cycript.l.in | 2 ++ 2 files changed, 4 insertions(+) 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 -- 2.45.2