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
5c18abb4
Commit
5c18abb4
authored
May 03, 1992
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
From-SVN: r872
parent
051b1533
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
gcc/cccp.c
+9
-2
No files found.
gcc/cccp.c
View file @
5c18abb4
...
@@ -53,6 +53,11 @@ typedef unsigned char U_CHAR;
...
@@ -53,6 +53,11 @@ typedef unsigned char U_CHAR;
#define STDC_VALUE 1
#define STDC_VALUE 1
#endif
#endif
/* By default, colon separates directories in a path. */
#ifndef PATH_SEPARATOR
#define PATH_SEPARATOR ':'
#endif
/* In case config.h defines these. */
/* In case config.h defines these. */
#undef bcopy
#undef bcopy
#undef bzero
#undef bzero
...
@@ -1459,12 +1464,14 @@ main (argc, argv)
...
@@ -1459,12 +1464,14 @@ main (argc, argv)
num_dirs
=
0
;
num_dirs
=
0
;
while
(
1
)
{
while
(
1
)
{
/* Handle cases like c:/usr/lib:d:/gcc/lib */
/* Handle cases like c:/usr/lib:d:/gcc/lib */
if
((
*
endp
==
':'
if
((
*
endp
==
PATH_SEPARATOR
#if 0 /* Obsolete, now that we use semicolons as the path separator. */
#ifdef __MSDOS__
#ifdef __MSDOS__
&& (endp-startp != 1 || !isalpha (*startp)))
&& (endp-startp != 1 || !isalpha (*startp)))
#endif
#endif
#endif
)
)
||
(
*
endp
==
0
)
)
{
||
*
endp
==
0
)
{
strncpy
(
nstore
,
startp
,
endp
-
startp
);
strncpy
(
nstore
,
startp
,
endp
-
startp
);
if
(
endp
==
startp
)
if
(
endp
==
startp
)
strcpy
(
nstore
,
"."
);
strcpy
(
nstore
,
"."
);
...
...
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