"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "uppsrc/Core/parser.cpp" between
upp-x11-src-13659.tar.gz and upp-x11-src-13664.tar.gz

About: Ultimate++ is a C++ cross-platform rapid application development framework. Stable release.

parser.cpp  (upp-x11-src-13659):parser.cpp  (upp-x11-src-13664)
skipping to change at line 86 skipping to change at line 86
while(*term) { while(*term) {
if(term[0] == '*' && term[1] == '/') { if(term[0] == '*' && term[1] == '/') {
term += 2; term += 2;
count--; count--;
if (count == 0) if (count == 0)
break; break;
} }
else if(term[0] == '/' && term[1] == '*') else if(term[0] == '/' && term[1] == '*')
count++; count++;
if(*term++ == '\n') line++; if(*term++ == '\n') {
line++;
lineptr = term;
}
} }
} }
else { else {
term += 2; term += 2;
while(*term) { while(*term) {
if(term[0] == '*' && term[1] == '/') { if(term[0] == '*' && term[1] == '/') {
term += 2; term += 2;
break; break;
} }
if(*term++ == '\n') line++; if(*term++ == '\n') {
line++;
lineptr = term;
}
} }
} }
} }
if(!*term) break; if(!*term) break;
if((byte)*term > ' ') break; if((byte)*term > ' ') break;
if(*term == '\n') { if(*term == '\n') {
line++; line++;
lineptr = term + 1; lineptr = term + 1;
} }
term++; term++;
skipping to change at line 484 skipping to change at line 490
} }
String CParser::ReadString(bool chkend) String CParser::ReadString(bool chkend)
{ {
return ReadString('\"', chkend); return ReadString('\"', chkend);
} }
char CParser::GetChar() char CParser::GetChar()
{ {
char c = *term++; char c = *term++;
if(c == '\n') if(c == '\n') {
line++; line++;
lineptr = term;
}
return c; return c;
} }
void CParser::SkipTerm() void CParser::SkipTerm()
{ {
LTIMING("SkipTerm"); LTIMING("SkipTerm");
if(IsId()) if(IsId())
while(iscid(*term)) while(iscid(*term))
term++; term++;
else else
skipping to change at line 507 skipping to change at line 515
while(IsDigit(*term)) while(IsDigit(*term))
term++; term++;
else else
if(IsString()) if(IsString())
ReadString(); ReadString();
else else
if(IsChar('\'')) if(IsChar('\''))
ReadString('\'', false); ReadString('\'', false);
else else
if(*term) { if(*term) {
if(*term == '\n') if(*term == '\n') {
line++; line++;
lineptr = term + 1;
}
term++; term++;
} }
DoSpaces(); DoSpaces();
} }
CParser::Pos CParser::GetPos() const CParser::Pos CParser::GetPos() const
{ {
Pos p; Pos p;
p.line = line; p.line = line;
p.fn = fn; p.fn = fn;
 End of changes. 6 change blocks. 
4 lines changed or deleted 14 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)