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
18e2b1c0
Commit
18e2b1c0
authored
Apr 06, 1994
by
Jim Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(discard_comments): Replace comments with a single space.
From-SVN: r6993
parent
1e018103
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
gcc/cccp.c
+4
-2
No files found.
gcc/cccp.c
View file @
18e2b1c0
...
...
@@ -8170,14 +8170,16 @@ discard_comments (start, length, newlines)
newline_fix
(
ibp
);
/* Delete any comment. */
if
(
cplusplus_comments
&&
ibp
[
0
]
==
'/'
)
{
obp
--
;
/* Comments are equivalent to spaces. */
obp
[
-
1
]
=
' '
;
ibp
++
;
while
(
ibp
<
limit
&&
*
ibp
++
!=
'\n'
)
;
break
;
}
if
(
ibp
[
0
]
!=
'*'
||
ibp
+
1
>=
limit
)
break
;
obp
--
;
/* Comments are equivalent to spaces. */
obp
[
-
1
]
=
' '
;
ibp
++
;
while
(
ibp
+
1
<
limit
)
{
if
(
ibp
[
0
]
==
'*'
...
...
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