src/share/vm/adlc/adlparse.cpp

changeset 1040
98cb887364d3
parent 1038
dbbe28fc66b5
child 1063
7bb995fbd3c0
equal deleted inserted replaced
1039:ec59443af135 1040:98cb887364d3
4553 } 4553 }
4554 } 4554 }
4555 4555
4556 //---------------------------ensure_start_of_line------------------------------ 4556 //---------------------------ensure_start_of_line------------------------------
4557 // A preprocessor directive has been encountered. Be sure it has fallen at 4557 // A preprocessor directive has been encountered. Be sure it has fallen at
4558 // the begining of a line, or else report an error. 4558 // the beginning of a line, or else report an error.
4559 void ADLParser::ensure_start_of_line(void) { 4559 void ADLParser::ensure_start_of_line(void) {
4560 if (_curchar == '\n') { next_line(); return; } 4560 if (_curchar == '\n') { next_line(); return; }
4561 assert( _ptr >= _curline && _ptr < _curline+strlen(_curline), 4561 assert( _ptr >= _curline && _ptr < _curline+strlen(_curline),
4562 "Must be able to find which line we are in" ); 4562 "Must be able to find which line we are in" );
4563 4563

mercurial