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
e70bfa95
Commit
e70bfa95
authored
May 29, 2019
by
Zackery Spytz
Committed by
Miss Islington (bot)
May 29, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bpo-26836: Add ifdefs for all MFD_HUGE* constants (GH-13666)
https://bugs.python.org/issue26836
parent
ada319bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
0 deletions
+28
-0
Modules/posixmodule.c
Modules/posixmodule.c
+28
-0
No files found.
Modules/posixmodule.c
View file @
e70bfa95
...
...
@@ -14046,19 +14046,47 @@ all_ins(PyObject *m)
if
(
PyModule_AddIntMacro
(
m
,
MFD_ALLOW_SEALING
))
return
-
1
;
#ifdef MFD_HUGETLB
if
(
PyModule_AddIntMacro
(
m
,
MFD_HUGETLB
))
return
-
1
;
#endif
#ifdef MFD_HUGE_SHIFT
if
(
PyModule_AddIntMacro
(
m
,
MFD_HUGE_SHIFT
))
return
-
1
;
#endif
#ifdef MFD_HUGE_MASK
if
(
PyModule_AddIntMacro
(
m
,
MFD_HUGE_MASK
))
return
-
1
;
#endif
#ifdef MFD_HUGE_64KB
if
(
PyModule_AddIntMacro
(
m
,
MFD_HUGE_64KB
))
return
-
1
;
#endif
#ifdef MFD_HUGE_512KB
if
(
PyModule_AddIntMacro
(
m
,
MFD_HUGE_512KB
))
return
-
1
;
#endif
#ifdef MFD_HUGE_1MB
if
(
PyModule_AddIntMacro
(
m
,
MFD_HUGE_1MB
))
return
-
1
;
#endif
#ifdef MFD_HUGE_2MB
if
(
PyModule_AddIntMacro
(
m
,
MFD_HUGE_2MB
))
return
-
1
;
#endif
#ifdef MFD_HUGE_8MB
if
(
PyModule_AddIntMacro
(
m
,
MFD_HUGE_8MB
))
return
-
1
;
#endif
#ifdef MFD_HUGE_16MB
if
(
PyModule_AddIntMacro
(
m
,
MFD_HUGE_16MB
))
return
-
1
;
#endif
#ifdef MFD_HUGE_32MB
if
(
PyModule_AddIntMacro
(
m
,
MFD_HUGE_32MB
))
return
-
1
;
#endif
#ifdef MFD_HUGE_256MB
if
(
PyModule_AddIntMacro
(
m
,
MFD_HUGE_256MB
))
return
-
1
;
#endif
#ifdef MFD_HUGE_512MB
if
(
PyModule_AddIntMacro
(
m
,
MFD_HUGE_512MB
))
return
-
1
;
#endif
#ifdef MFD_HUGE_1GB
if
(
PyModule_AddIntMacro
(
m
,
MFD_HUGE_1GB
))
return
-
1
;
#endif
#ifdef MFD_HUGE_2GB
if
(
PyModule_AddIntMacro
(
m
,
MFD_HUGE_2GB
))
return
-
1
;
#endif
#ifdef MFD_HUGE_16GB
if
(
PyModule_AddIntMacro
(
m
,
MFD_HUGE_16GB
))
return
-
1
;
#endif
#endif
...
...
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