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
9342fb41
Commit
9342fb41
authored
Dec 13, 2003
by
Neal Norwitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make private/local functions static
parent
5a92175f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
Modules/heapqmodule.c
Modules/heapqmodule.c
+6
-6
No files found.
Modules/heapqmodule.c
View file @
9342fb41
...
...
@@ -8,7 +8,7 @@ annotated by Fran
#include "Python.h"
int
static
int
_siftdown
(
PyListObject
*
heap
,
int
startpos
,
int
pos
)
{
PyObject
*
newitem
,
*
parent
;
...
...
@@ -42,7 +42,7 @@ _siftdown(PyListObject *heap, int startpos, int pos)
return
0
;
}
int
static
int
_siftup
(
PyListObject
*
heap
,
int
pos
)
{
int
startpos
,
endpos
,
childpos
,
rightpos
;
...
...
@@ -90,7 +90,7 @@ _siftup(PyListObject *heap, int pos)
return
_siftdown
(
heap
,
startpos
,
pos
);
}
PyObject
*
static
PyObject
*
heappush
(
PyObject
*
self
,
PyObject
*
args
)
{
PyObject
*
heap
,
*
item
;
...
...
@@ -115,7 +115,7 @@ heappush(PyObject *self, PyObject *args)
PyDoc_STRVAR
(
heappush_doc
,
"Push item onto heap, maintaining the heap invariant."
);
PyObject
*
static
PyObject
*
heappop
(
PyObject
*
self
,
PyObject
*
heap
)
{
PyObject
*
lastelt
,
*
returnitem
;
...
...
@@ -152,7 +152,7 @@ heappop(PyObject *self, PyObject *heap)
PyDoc_STRVAR
(
heappop_doc
,
"Pop the smallest item off the heap, maintaining the heap invariant."
);
PyObject
*
static
PyObject
*
heapreplace
(
PyObject
*
self
,
PyObject
*
args
)
{
PyObject
*
heap
,
*
item
,
*
returnitem
;
...
...
@@ -188,7 +188,7 @@ more appropriate when using a fixed-size heap. Note that the value\n\
returned may be larger than item! That constrains reasonable uses of
\n
\
this routine.
\n
"
);
PyObject
*
static
PyObject
*
heapify
(
PyObject
*
self
,
PyObject
*
heap
)
{
int
i
,
n
;
...
...
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