]> git.saurik.com Git - cycript.git/blobdiff - Cycript.l.in
Avoid dependency hell by overriding location type.
[cycript.git] / Cycript.l.in
index ab5d0b3882dbf02e8a208de2ad63a197005b554b..d52a19b5c6864b29e180c822f653e88b64fb4078 100644 (file)
@@ -29,7 +29,7 @@
 #pragma clang diagnostic ignored "-Wdeprecated-register"
 #endif
 
-#define YYLTYPE cy::location
+#define YYLTYPE CYLocation
 #include "Cycript.tab.hh"
 typedef cy::parser::token tk;
 
@@ -89,7 +89,7 @@ typedef cy::parser::token tk;
 
 #define L { \
     yylloc->step(); \
-    yylloc->columns(yyleng); \
+    yylloc->end.columns(yyleng); \
 }
 
 #define M { \