]> git.saurik.com Git - cycript.git/blobdiff - Cycript.l.in
Removed a virtual to avoid an optimizer vtable bug.
[cycript.git] / Cycript.l.in
index 72f814d75f460a2cbc62af4b27a28167e3b56e4c..7323e251cb9b95c920346be8fbba69842af36c4e 100644 (file)
@@ -107,7 +107,8 @@ int H(char c) {
     } else if (yyextra->size_ == 0) \
         value = YY_NULL; \
     else { \
-        size_t copy(std::min(size, yyextra->size_)); \
+        size_t copy(size); \
+        copy = (std::min(copy, yyextra->size_)); \
         memcpy(data, yyextra->data_, copy); \
         yyextra->data_ += copy; \
         yyextra->size_ -= copy; \
@@ -188,11 +189,14 @@ XMLName {XMLNameStart}{XMLNamePart}*
 @end
 
 @begin E4X
-"@"    L C return tk::At;
 "::"   L C return tk::ColonColon;
 ".."   L C return tk::PeriodPeriod;
 @end
 
+@begin E4X ObjectiveC
+"@"    L C return tk::At;
+@end
+
 "&"    L C return tk::Ampersand;
 "&&"   L C return tk::AmpersandAmpersand;
 "&="   L C return tk::AmpersandEqual;