[Python-checkins] python/dist/src/Modules heapqmodule.c,1.3,1.4

nnorwitz at users.sourceforge.net nnorwitz at users.sourceforge.net
Sat Dec 13 17:31:55 EST 2003


Update of /cvsroot/python/python/dist/src/Modules
In directory sc8-pr-cvs1:/tmp/cvs-serv21132/Modules

Modified Files:
	heapqmodule.c 
Log Message:
Make private/local functions static

Index: heapqmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/heapqmodule.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** heapqmodule.c	15 Nov 2003 12:40:28 -0000	1.3
--- heapqmodule.c	13 Dec 2003 22:31:53 -0000	1.4
***************
*** 9,13 ****
  #include "Python.h"
  
! int
  _siftdown(PyListObject *heap, int startpos, int pos)
  {
--- 9,13 ----
  #include "Python.h"
  
! static int
  _siftdown(PyListObject *heap, int startpos, int pos)
  {
***************
*** 43,47 ****
  }
  
! int
  _siftup(PyListObject *heap, int pos)
  {
--- 43,47 ----
  }
  
! static int
  _siftup(PyListObject *heap, int pos)
  {
***************
*** 91,95 ****
  }
  
! PyObject *
  heappush(PyObject *self, PyObject *args)
  {
--- 91,95 ----
  }
  
! static PyObject *
  heappush(PyObject *self, PyObject *args)
  {
***************
*** 116,120 ****
  "Push item onto heap, maintaining the heap invariant.");
  
! PyObject *
  heappop(PyObject *self, PyObject *heap)
  {
--- 116,120 ----
  "Push item onto heap, maintaining the heap invariant.");
  
! static PyObject *
  heappop(PyObject *self, PyObject *heap)
  {
***************
*** 153,157 ****
  "Pop the smallest item off the heap, maintaining the heap invariant.");
  
! PyObject *
  heapreplace(PyObject *self, PyObject *args)
  {
--- 153,157 ----
  "Pop the smallest item off the heap, maintaining the heap invariant.");
  
! static PyObject *
  heapreplace(PyObject *self, PyObject *args)
  {
***************
*** 189,193 ****
  this routine.\n");
  
! PyObject *
  heapify(PyObject *self, PyObject *heap)
  {
--- 189,193 ----
  this routine.\n");
  
! static PyObject *
  heapify(PyObject *self, PyObject *heap)
  {





More information about the Python-checkins mailing list