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
9966b391
Commit
9966b391
authored
Jun 24, 1994
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(create_definition): Eliminate whitespace before and after macro
definitions. From-SVN: r7568
parent
25212cdd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
20 deletions
+9
-20
gcc/cccp.c
+9
-20
No files found.
gcc/cccp.c
View file @
9966b391
...
@@ -5333,8 +5333,9 @@ create_definition (buf, limit, op)
...
@@ -5333,8 +5333,9 @@ create_definition (buf, limit, op)
}
}
++
bp
;
/* skip paren */
++
bp
;
/* skip paren */
/* Skip exactly one space or tab if any. */
/* Skip spaces and tabs if any. */
if
(
bp
<
limit
&&
(
*
bp
==
' '
||
*
bp
==
'\t'
))
++
bp
;
while
(
bp
<
limit
&&
(
*
bp
==
' '
||
*
bp
==
'\t'
))
++
bp
;
/* now everything from bp before limit is the definition. */
/* now everything from bp before limit is the definition. */
defn
=
collect_expansion
(
bp
,
limit
,
argno
,
arg_ptrs
);
defn
=
collect_expansion
(
bp
,
limit
,
argno
,
arg_ptrs
);
defn
->
rest_args
=
rest_args
;
defn
->
rest_args
=
rest_args
;
...
@@ -5357,10 +5358,12 @@ create_definition (buf, limit, op)
...
@@ -5357,10 +5358,12 @@ create_definition (buf, limit, op)
defn
->
args
.
argnames
[
i
]
=
0
;
defn
->
args
.
argnames
[
i
]
=
0
;
}
}
}
else
{
}
else
{
/* simple expansion or empty definition; gobble it */
/* Simple expansion or empty definition. */
if
(
is_hor_space
[
*
bp
])
++
bp
;
/* skip exactly one blank/tab char */
/* Skip spaces and tabs if any. */
/* now everything from bp before limit is the definition. */
while
(
bp
<
limit
&&
(
*
bp
==
' '
||
*
bp
==
'\t'
))
++
bp
;
/* Now everything from bp before limit is the definition. */
defn
=
collect_expansion
(
bp
,
limit
,
-
1
,
NULL_PTR
);
defn
=
collect_expansion
(
bp
,
limit
,
-
1
,
NULL_PTR
);
defn
->
args
.
argnames
=
(
U_CHAR
*
)
""
;
defn
->
args
.
argnames
=
(
U_CHAR
*
)
""
;
}
}
...
@@ -5818,20 +5821,6 @@ collect_expansion (buf, end, nargs, arglist)
...
@@ -5818,20 +5821,6 @@ collect_expansion (buf, end, nargs, arglist)
}
}
}
}
if
(
limit
<
end
)
{
/* Convert trailing whitespace to Newline-markers. */
while
(
limit
<
end
&&
is_space
[
*
limit
])
{
*
exp_p
++
=
'\n'
;
*
exp_p
++
=
*
limit
++
;
}
}
else
if
(
!
traditional
&&
expected_delimiter
==
0
)
{
/* There is no trailing whitespace, so invent some in ANSI mode.
But not if "inside a string" (which in ANSI mode
happens only for -D option). */
*
exp_p
++
=
'\n'
;
*
exp_p
++
=
' '
;
}
*
exp_p
=
'\0'
;
*
exp_p
=
'\0'
;
defn
->
length
=
exp_p
-
defn
->
expansion
;
defn
->
length
=
exp_p
-
defn
->
expansion
;
...
...
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