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
2e4f4529
Commit
2e4f4529
authored
Feb 05, 1993
by
Jim Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(finclude): Error if try to include a directory.
(S_ISDIR): Add a default definition. From-SVN: r3424
parent
53b01f59
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletions
+9
-1
gcc/cccp.c
+9
-1
No files found.
gcc/cccp.c
View file @
2e4f4529
...
...
@@ -146,6 +146,10 @@ extern char *rindex ();
#define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
#endif
#ifndef S_ISDIR
#define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
#endif
/* Define a generic NULL if one hasn't already been defined. */
#ifndef NULL
...
...
@@ -4151,7 +4155,11 @@ finclude (f, fname, op, system_header_p, dirptr)
st_size
-=
i
;
}
}
else
{
else
if
(
S_ISDIR
(
st_mode
))
{
error
(
"directory `%s' specified in #include"
,
fname
);
close
(
f
);
return
;
}
else
{
/* Cannot count its file size before reading.
First read the entire file into heap and
copy them into buffer on stack. */
...
...
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