@@ -324,7 +324,7 @@ void Reader::skipSpaces() {
324324 }
325325}
326326
327- bool Reader::match (Location pattern, int patternLength) {
327+ bool Reader::match (const Char* pattern, int patternLength) {
328328 if (end_ - current_ < patternLength)
329329 return false ;
330330 int index = patternLength;
@@ -416,7 +416,7 @@ bool Reader::readCppStyleComment() {
416416}
417417
418418void Reader::readNumber () {
419- const char * p = current_;
419+ Location p = current_;
420420 char c = ' 0' ; // stopgap for already consumed character
421421 // integral part
422422 while (c >= ' 0' && c <= ' 9' )
@@ -956,7 +956,7 @@ class OurReader {
956956
957957 bool readToken (Token& token);
958958 void skipSpaces ();
959- bool match (Location pattern, int patternLength);
959+ bool match (const Char* pattern, int patternLength);
960960 bool readComment ();
961961 bool readCStyleComment ();
962962 bool readCppStyleComment ();
@@ -1287,7 +1287,7 @@ void OurReader::skipSpaces() {
12871287 }
12881288}
12891289
1290- bool OurReader::match (Location pattern, int patternLength) {
1290+ bool OurReader::match (const Char* pattern, int patternLength) {
12911291 if (end_ - current_ < patternLength)
12921292 return false ;
12931293 int index = patternLength;
@@ -1380,7 +1380,7 @@ bool OurReader::readCppStyleComment() {
13801380}
13811381
13821382bool OurReader::readNumber (bool checkInf) {
1383- const char * p = current_;
1383+ Location p = current_;
13841384 if (checkInf && p != end_ && *p == ' I' ) {
13851385 current_ = ++p;
13861386 return false ;
0 commit comments