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
b1af4777
Commit
b1af4777
authored
Sep 25, 1992
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(do_include): "Concatenate" multiple "strings" in #include.
From-SVN: r2248
parent
08a6f4b8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
4 deletions
+22
-4
gcc/cccp.c
+22
-4
No files found.
gcc/cccp.c
View file @
b1af4777
...
@@ -3672,11 +3672,29 @@ get_filename:
...
@@ -3672,11 +3672,29 @@ get_filename:
switch
(
*
fbeg
++
)
{
switch
(
*
fbeg
++
)
{
case
'\"'
:
case
'\"'
:
fend
=
fbeg
;
{
while
(
fend
!=
limit
&&
*
fend
!=
'\"'
)
fend
++
;
if
(
*
fend
==
'\"'
&&
fend
+
1
==
limit
)
{
FILE_BUF
*
fp
;
FILE_BUF
*
fp
;
/* Copy the operand text, concatenating the strings. */
{
U_CHAR
*
fin
=
fbeg
;
fbeg
=
(
U_CHAR
*
)
alloca
(
limit
-
fbeg
+
1
);
fend
=
fbeg
;
while
(
fin
!=
limit
)
{
while
(
fin
!=
limit
&&
*
fin
!=
'\"'
)
*
fend
++
=
*
fin
++
;
fin
++
;
if
(
fin
==
limit
)
break
;
/* If not at the end, there had better be another string. */
/* Skip just horiz space, and don't go past limit. */
while
(
fin
!=
limit
&&
is_hor_space
[
*
fin
])
fin
++
;
if
(
fin
!=
limit
&&
*
fin
==
'\"'
)
fin
++
;
else
goto
fail
;
}
}
*
fend
++
=
0
;
/* We have "filename". Figure out directory this source
/* We have "filename". Figure out directory this source
file is coming from and put it on the front of the list. */
file is coming from and put it on the front of the list. */
...
...
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