(do_xifdef, do_endif): Remove unnecessary pointer comparisons.
From-SVN: r9237
This commit is contained in:
parent
6dfc5c6de5
commit
dec5c86b9c
10
gcc/cccp.c
10
gcc/cccp.c
@ -6953,10 +6953,10 @@ do_xifdef (buf, limit, op, keyword)
|
|||||||
U_CHAR c = *p++;
|
U_CHAR c = *p++;
|
||||||
if (is_space[c])
|
if (is_space[c])
|
||||||
;
|
;
|
||||||
/* ??? Why is the test with ip->bufp here? */
|
/* Make no special provision for backslash-newline here; this is
|
||||||
/* ??? We don't handle \-n inside /-*. */
|
slower if backslash-newlines are present, but it's correct,
|
||||||
/* ??? Comment handling in general could use a major cleanup. */
|
and it's not worth it to tune for the rare backslash-newline. */
|
||||||
else if (c == '/' && p != ip->bufp
|
else if (c == '/'
|
||||||
&& (*p == '*' || (cplusplus_comments && *p == '/'))) {
|
&& (*p == '*' || (cplusplus_comments && *p == '/'))) {
|
||||||
/* Skip this comment. */
|
/* Skip this comment. */
|
||||||
int junk = 0;
|
int junk = 0;
|
||||||
@ -7414,7 +7414,7 @@ do_endif (buf, limit, op, keyword)
|
|||||||
while (p != ep) {
|
while (p != ep) {
|
||||||
U_CHAR c = *p++;
|
U_CHAR c = *p++;
|
||||||
if (!is_space[c]) {
|
if (!is_space[c]) {
|
||||||
if (c == '/' && p != ep
|
if (c == '/'
|
||||||
&& (*p == '*' || (cplusplus_comments && *p == '/'))) {
|
&& (*p == '*' || (cplusplus_comments && *p == '/'))) {
|
||||||
/* Skip this comment. */
|
/* Skip this comment. */
|
||||||
int junk = 0;
|
int junk = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user