|
@@ -70,11 +70,6 @@ void Reader::read(const char *text, unsigned int length) |
|
|
do |
|
|
do |
|
|
{ |
|
|
{ |
|
|
c = *++p; |
|
|
c = *++p; |
|
|
if (c == '*') |
|
|
|
|
|
{ |
|
|
|
|
|
inComment = true; |
|
|
|
|
|
continue; |
|
|
|
|
|
} |
|
|
|
|
|
if (inComment) |
|
|
if (inComment) |
|
|
{ |
|
|
{ |
|
|
if (c != '*') |
|
|
if (c != '*') |
|
@@ -84,6 +79,11 @@ void Reader::read(const char *text, unsigned int length) |
|
|
continue; |
|
|
continue; |
|
|
inComment = false; |
|
|
inComment = false; |
|
|
} |
|
|
} |
|
|
|
|
|
if (c == '*') |
|
|
|
|
|
{ |
|
|
|
|
|
inComment = true; |
|
|
|
|
|
continue; |
|
|
|
|
|
} |
|
|
if ((c == '\n') || (c == '\r')) |
|
|
if ((c == '\n') || (c == '\r')) |
|
|
{ |
|
|
{ |
|
|
break; |
|
|
break; |
|
@@ -184,12 +184,7 @@ void Reader::read(const char *text, unsigned int length) |
|
|
// Skip to end of line or c-style comment. |
|
|
// Skip to end of line or c-style comment. |
|
|
do |
|
|
do |
|
|
{ |
|
|
{ |
|
|
c = *p; |
|
|
|
|
|
if (c == '*') |
|
|
|
|
|
{ |
|
|
|
|
|
inComment = true; |
|
|
|
|
|
continue; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
c = *++p; |
|
|
if (inComment) |
|
|
if (inComment) |
|
|
{ |
|
|
{ |
|
|
if (c != '*') |
|
|
if (c != '*') |
|
@@ -199,11 +194,15 @@ void Reader::read(const char *text, unsigned int length) |
|
|
continue; |
|
|
continue; |
|
|
inComment = false; |
|
|
inComment = false; |
|
|
} |
|
|
} |
|
|
|
|
|
if (c == '*') |
|
|
|
|
|
{ |
|
|
|
|
|
inComment = true; |
|
|
|
|
|
continue; |
|
|
|
|
|
} |
|
|
if ((c == '\r') || (c == '\n')) |
|
|
if ((c == '\r') || (c == '\n')) |
|
|
{ |
|
|
{ |
|
|
break; |
|
|
break; |
|
|
} |
|
|
} |
|
|
p += 1; |
|
|
|
|
|
} |
|
|
} |
|
|
while (p < end); |
|
|
while (p < end); |
|
|
inComment = false; |
|
|
inComment = false; |
|
|