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
41b21cfc
Commit
41b21cfc
authored
Nov 03, 1993
by
Per Bothner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make more robust in two places.
From-SVN: r5978
parent
c7bfb646
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
gcc/fixproto
+10
-5
No files found.
gcc/fixproto
View file @
41b21cfc
...
...
@@ -194,12 +194,17 @@ for code in ALL STD ; do
# Already seen $file; nothing to do
;;
*
)
new_files_to_check
=
"
$new_files_to_check
`
sed
-n
\
if
test
-f
$src_dir_std
/
$file
;
then
rel_dir
=
`
echo
$file
| sed
-n
-e
's|^\(.*/\)[^/]*$|\1|p'
`
# For #include "foo.h", that might be either "foo.h"
# or "${rel_dir}foo.h (or something bogus).
new_files_to_check
=
"
$new_files_to_check
"
`
sed
-n
\
-e
's@ @ @g'
\
-e
's@^ *# *include *<\([^>]*\)>.*$@\1@p'
\
-e
's@^ *# *include *\"\([^\"]*\)\".*$@\1@p'
\
<
$src_dir_std
/
$file
`
"
-e
's@^ *# *include *<\([^>]*\)>.*$@\1@p'
-e
\
's@^ *# *include *\"\([^\"]*\)\".*$@\1 '
$rel_dir
'\1@p'
\
<
$src_dir_std
/
$file
`
rel_source_files
=
"
$rel_source_files
$file
"
fi
;;
esac
done
...
...
@@ -260,7 +265,7 @@ for code in ALL STD ; do
required_list
=
"kill raise"
;;
stdio.h
)
required_list
=
"clearerr fclose feof ferror fflush fgetc fgetpos fgets fopen fprintf fputc fputs fread freopen fscanf fseek fsetpos ftell fwrite getc getchar gets perror printf putc putchar puts remove rename rewind scanf setbuf setvbuf sprintf sscanf tmpfile tmpnam ungetc vfprintf vprintf vsprintf"
if
grep
_flsbuf <
$abs_source_file
>
/dev/null
;
then
if
grep
'[^_a-zA-Z0-9]_flsbuf'
<
$abs_source_file
>
/dev/null
;
then
required_list
=
"
$required_list
_flsbuf _filbuf"
fi
# Should perhaps also handle NULL, EOF, ... ?
...
...
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