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
78af79ab
Commit
78af79ab
authored
Sep 03, 1993
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(skip_if_group): Check for traditional mode when skipping ahead to
next #, ignore unless at beginning of line. From-SVN: r5257
parent
3c58aa35
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
16 deletions
+18
-16
gcc/cccp.c
+18
-16
No files found.
gcc/cccp.c
View file @
78af79ab
/* C Compatible Compiler Preprocessor (CCCP)
Copyright (C) 1986, 1987, 1989, 1992 Free Software Foundation, Inc.
Copyright (C) 1986, 1987, 1989, 1992
, 1993
Free Software Foundation, Inc.
Written by Paul Rubin, June 1986
Adapted to ANSI C, Richard Stallman, Jan 1987
...
...
@@ -6429,22 +6429,24 @@ skip_if_group (ip, any)
and backslash-newlines, and see if we reach this #.
If not, this # is not special. */
bp
=
beg_of_line
;
while
(
1
)
{
if
(
is_hor_space
[
*
bp
])
bp
++
;
else
if
(
*
bp
==
'\\'
&&
bp
[
1
]
==
'\n'
)
bp
+=
2
;
else
if
(
*
bp
==
'/'
&&
bp
[
1
]
==
'*'
)
{
bp
+=
2
;
while
(
!
(
*
bp
==
'*'
&&
bp
[
1
]
==
'/'
))
/* If -traditional, require # to be at beginning of line. */
if
(
!
traditional
)
while
(
1
)
{
if
(
is_hor_space
[
*
bp
])
bp
++
;
bp
+=
2
;
}
else
if
(
cplusplus_comments
&&
*
bp
==
'/'
&&
bp
[
1
]
==
'/'
)
{
bp
+=
2
;
while
(
*
bp
++
!=
'\n'
)
;
}
else
break
;
}
else
if
(
*
bp
==
'\\'
&&
bp
[
1
]
==
'\n'
)
bp
+=
2
;
else
if
(
*
bp
==
'/'
&&
bp
[
1
]
==
'*'
)
{
bp
+=
2
;
while
(
!
(
*
bp
==
'*'
&&
bp
[
1
]
==
'/'
))
bp
++
;
bp
+=
2
;
}
else
if
(
cplusplus_comments
&&
*
bp
==
'/'
&&
bp
[
1
]
==
'/'
)
{
bp
+=
2
;
while
(
*
bp
++
!=
'\n'
)
;
}
else
break
;
}
if
(
bp
!=
ip
->
bufp
)
{
bp
=
ip
->
bufp
+
1
;
/* Reset bp to after the #. */
break
;
...
...
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