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
6e993bdb
Commit
6e993bdb
authored
Jul 13, 2000
by
Zack Weinberg
Committed by
Zack Weinberg
Jul 13, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* tradcpp.c (main): Rename 'perror' label to 'sys_error'.
From-SVN: r35004
parent
f9a0e96c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
7 deletions
+9
-7
gcc/ChangeLog
+2
-0
gcc/tradcpp.c
+7
-7
No files found.
gcc/ChangeLog
View file @
6e993bdb
2000-07-12 Zack Weinberg <zack@wolery.cumb.org>
2000-07-12 Zack Weinberg <zack@wolery.cumb.org>
* tradcpp.c (main): Rename 'perror' label to 'sys_error'.
* cppexp.c, cpphash.c, cpphash.h, cppinit.c, cpplex.c,
* cppexp.c, cpphash.c, cpphash.h, cppinit.c, cpplex.c,
cpplib.c, cpplib.h: Eradicate all traces of code dependent on
cpplib.c, cpplib.h: Eradicate all traces of code dependent on
traditional, lang_chill, or lang_fortran.
traditional, lang_chill, or lang_fortran.
...
...
gcc/tradcpp.c
View file @
6e993bdb
...
@@ -793,7 +793,7 @@ main (argc, argv)
...
@@ -793,7 +793,7 @@ main (argc, argv)
in_fname
=
""
;
in_fname
=
""
;
f
=
0
;
f
=
0
;
}
else
if
((
f
=
open
(
in_fname
,
O_RDONLY
,
0666
))
<
0
)
}
else
if
((
f
=
open
(
in_fname
,
O_RDONLY
,
0666
))
<
0
)
goto
p
error
;
goto
sys_
error
;
/* Either of two environment variables can specify output of deps.
/* Either of two environment variables can specify output of deps.
Its value is either "OUTPUT_FILE" or "OUTPUT_FILE DEPS_TARGET",
Its value is either "OUTPUT_FILE" or "OUTPUT_FILE DEPS_TARGET",
...
@@ -882,7 +882,7 @@ main (argc, argv)
...
@@ -882,7 +882,7 @@ main (argc, argv)
}
}
if
(
file_size_and_mode
(
f
,
&
st_mode
,
&
st_size
))
if
(
file_size_and_mode
(
f
,
&
st_mode
,
&
st_size
))
goto
p
error
;
goto
sys_
error
;
fp
->
fname
=
in_fname
;
fp
->
fname
=
in_fname
;
fp
->
lineno
=
1
;
fp
->
lineno
=
1
;
/* JF all this is mine about reading pipes and ttys */
/* JF all this is mine about reading pipes and ttys */
...
@@ -901,11 +901,11 @@ main (argc, argv)
...
@@ -901,11 +901,11 @@ main (argc, argv)
bufp
=
fp
->
buf
;
bufp
=
fp
->
buf
;
for
(;;)
{
for
(;;)
{
cnt
=
read
(
f
,
bufp
,
bsize
-
size
);
cnt
=
read
(
f
,
bufp
,
bsize
-
size
);
if
(
cnt
<
0
)
goto
p
error
;
/* error! */
if
(
cnt
<
0
)
goto
sys_
error
;
/* error! */
if
(
cnt
==
0
)
break
;
/* End of file */
if
(
cnt
==
0
)
break
;
/* End of file */
size
+=
cnt
;
size
+=
cnt
;
bufp
+=
cnt
;
bufp
+=
cnt
;
if
(
bsize
==
size
)
{
/* Buffer is full! */
if
(
bsize
==
size
)
{
/* Buffer is full! */
bsize
*=
2
;
bsize
*=
2
;
fp
->
buf
=
(
U_CHAR
*
)
xrealloc
(
fp
->
buf
,
bsize
+
2
);
fp
->
buf
=
(
U_CHAR
*
)
xrealloc
(
fp
->
buf
,
bsize
+
2
);
bufp
=
fp
->
buf
+
size
;
/* May have moved */
bufp
=
fp
->
buf
+
size
;
/* May have moved */
...
@@ -923,7 +923,7 @@ main (argc, argv)
...
@@ -923,7 +923,7 @@ main (argc, argv)
i
=
read
(
f
,
fp
->
buf
+
fp
->
length
,
st_size
);
i
=
read
(
f
,
fp
->
buf
+
fp
->
length
,
st_size
);
if
(
i
<=
0
)
{
if
(
i
<=
0
)
{
if
(
i
==
0
)
break
;
if
(
i
==
0
)
break
;
goto
p
error
;
goto
sys_
error
;
}
}
fp
->
length
+=
i
;
fp
->
length
+=
i
;
st_size
-=
i
;
st_size
-=
i
;
...
@@ -979,7 +979,7 @@ main (argc, argv)
...
@@ -979,7 +979,7 @@ main (argc, argv)
exit
(
FATAL_EXIT_CODE
);
exit
(
FATAL_EXIT_CODE
);
exit
(
SUCCESS_EXIT_CODE
);
exit
(
SUCCESS_EXIT_CODE
);
p
error
:
sys_
error
:
pfatal_with_name
(
in_fname
);
pfatal_with_name
(
in_fname
);
}
}
...
...
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