Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
0dcd8cee
Commit
0dcd8cee
authored
Apr 18, 1992
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
From-SVN: r786
parent
6c94ce67
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
49 deletions
+16
-49
gcc/c-lex.c
+16
-49
No files found.
gcc/c-lex.c
View file @
0dcd8cee
...
...
@@ -353,57 +353,15 @@ static int
skip_white_space
(
c
)
register
int
c
;
{
#if 0
register int inside;
#endif
static
int
newline_warning
=
0
;
for
(;;)
{
switch
(
c
)
{
/* Don't recognize comments in cc1: all comments are removed by cpp,
and cpp output can include / and * consecutively as operators. */
#if 0
case '/':
c = getc (finput);
if (c != '*')
{
ungetc (c, finput);
return '/';
}
c = getc (finput);
inside = 1;
while (inside)
{
if (c == '*')
{
while (c == '*')
c = getc (finput);
if (c == '/')
{
inside = 0;
c = getc (finput);
}
}
else if (c == '\n')
{
lineno++;
c = getc (finput);
}
else if (c == EOF)
{
error ("unterminated comment");
break;
}
else
c = getc (finput);
}
break;
#endif
/* We don't recognize comments here, because
cpp output can include / and * consecutively as operators.
Also, there's no need, since cpp removes all comments. */
case
'\n'
:
c
=
check_newline
();
...
...
@@ -412,14 +370,23 @@ skip_white_space (c)
case
' '
:
case
'\t'
:
case
'\f'
:
#if 0 /* ANSI says no. */
case '\r':
#endif
case
'\v'
:
case
'\b'
:
c
=
getc
(
finput
);
break
;
case
'\r'
:
/* ANSI C says the effects of a carriage return in a source file
are undefined. */
if
(
pedantic
&&
!
newline_warning
)
{
warning
(
"carriage return in source file"
);
warning
(
"(we only warn about the first carriage return)"
);
newline_warning
=
1
;
}
c
=
getc
(
finput
);
break
;
case
'\\'
:
c
=
getc
(
finput
);
if
(
c
==
'\n'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment