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
a3f2d1ba
Commit
a3f2d1ba
authored
Aug 11, 1994
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(dump_defn_1): Skip newlines and strings correctly.
From-SVN: r7893
parent
08b2cb48
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
gcc/cccp.c
+6
-5
No files found.
gcc/cccp.c
View file @
a3f2d1ba
...
@@ -8991,15 +8991,16 @@ dump_defn_1 (base, start, length, of)
...
@@ -8991,15 +8991,16 @@ dump_defn_1 (base, start, length, of)
U_CHAR
*
limit
=
base
+
start
+
length
;
U_CHAR
*
limit
=
base
+
start
+
length
;
while
(
p
<
limit
)
{
while
(
p
<
limit
)
{
if
(
*
p
!=
'\n'
)
if
(
*
p
==
'\"'
||
*
p
==
'\''
)
{
putc
(
*
p
,
of
);
else
if
(
*
p
==
'\"'
||
*
p
==
'\''
)
{
U_CHAR
*
p1
=
skip_quoted_string
(
p
,
limit
,
0
,
NULL_PTR
,
U_CHAR
*
p1
=
skip_quoted_string
(
p
,
limit
,
0
,
NULL_PTR
,
NULL_PTR
,
NULL_PTR
);
NULL_PTR
,
NULL_PTR
);
fwrite
(
p
,
p1
-
p
,
1
,
of
);
fwrite
(
p
,
p1
-
p
,
1
,
of
);
p
=
p1
-
1
;
p
=
p1
;
}
else
{
if
(
*
p
!=
'\n'
)
putc
(
*
p
,
of
);
p
++
;
}
}
p
++
;
}
}
}
}
...
...
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