Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
697a2ddb
Commit
697a2ddb
authored
Jun 23, 2013
by
Christian Heimes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a typo in S_ISDIR, S_ISCHR, S_ISBLK and S_ISREG.
Add extra braces to S_IS*() macros
parent
4dfca2de
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
Modules/_stat.c
Modules/_stat.c
+7
-7
No files found.
Modules/_stat.c
View file @
697a2ddb
...
...
@@ -87,31 +87,31 @@ typedef unsigned short mode_t;
/* S_ISXXX() */
#ifndef S_ISDIR
# define S_ISDIR(mode) ((
mode) & S_IFMT) == S_IDIR
# define S_ISDIR(mode) ((
(mode) & S_IFMT) == S_IFDIR)
#endif
#ifndef S_ISCHR
# define S_ISCHR(mode) ((
mode) & S_IFMT) == S_ICHR
# define S_ISCHR(mode) ((
(mode) & S_IFMT) == S_IFCHR)
#endif
#ifndef S_ISBLK
# define S_ISBLK(mode) ((
mode) & S_IFMT) == S_IBLK
# define S_ISBLK(mode) ((
(mode) & S_IFMT) == S_IFBLK)
#endif
#ifndef S_ISREG
# define S_ISREG(mode) ((
mode) & S_IFMT) == S_IREG
# define S_ISREG(mode) ((
(mode) & S_IFMT) == S_IFREG)
#endif
#ifndef S_ISFIFO
# define S_ISFIFO(mode) ((
mode) & S_IFMT) == S_IFIFO
# define S_ISFIFO(mode) ((
(mode) & S_IFMT) == S_IFIFO)
#endif
#ifndef S_ISLNK
# define S_ISLNK(mode) ((
mode) & S_IFMT) == S_IFLNK
# define S_ISLNK(mode) ((
(mode) & S_IFMT) == S_IFLNK)
#endif
#ifndef S_ISSOCK
# define S_ISSOCK(mode) ((
mode) & S_IFMT) == S_IFSOCK
# define S_ISSOCK(mode) ((
(mode) & S_IFMT) == S_IFSOCK)
#endif
#ifndef S_ISDOOR
...
...
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