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
e979160f
Commit
e979160f
authored
Aug 22, 2000
by
Jack Jansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added include for limits.h
parent
6c091c8f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
Objects/fileobject.c
Objects/fileobject.c
+4
-0
Objects/listobject.c
Objects/listobject.c
+4
-0
No files found.
Objects/fileobject.c
View file @
e979160f
...
...
@@ -13,6 +13,10 @@ redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#include "Python.h"
#include "structmember.h"
#ifdef HAVE_LIMITS_H
#include <limits.h>
#endif
#ifndef DONT_HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
/* DONT_HAVE_SYS_TYPES_H */
...
...
Objects/listobject.c
View file @
e979160f
...
...
@@ -17,6 +17,9 @@ redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#else
#include <sys/types.h>
/* For size_t */
#endif
#ifdef HAVE_LIMITS_H
#include <limits.h>
#endif
#define ROUNDUP(n, PyTryBlock) \
((((n)+(PyTryBlock)-1)/(PyTryBlock))*(PyTryBlock))
...
...
@@ -258,6 +261,7 @@ static int
list_compare
(
PyListObject
*
v
,
PyListObject
*
w
)
{
int
i
;
for
(
i
=
0
;
i
<
v
->
ob_size
&&
i
<
w
->
ob_size
;
i
++
)
{
int
cmp
=
PyObject_Compare
(
v
->
ob_item
[
i
],
w
->
ob_item
[
i
]);
if
(
cmp
!=
0
)
...
...
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