Tue Feb 24 09:03:08 CST 2009 Pekka Pessi <first.last@nokia.com>
* sofia-sip/heap.h: use static scope for functions given to sort() Ignore-this: 72e91b9470ccc23300ce06eb836d56f4 git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12282 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
cf9f7888f1
commit
e591b6ce3a
|
@ -1 +1 @@
|
|||
Wed Feb 25 13:31:50 CST 2009
|
||||
Wed Feb 25 13:35:46 CST 2009
|
||||
|
|
|
@ -310,11 +310,11 @@ size_t prefix##used(heaptype const h) \
|
|||
struct prefix##priv *_priv = *(void **)&h; \
|
||||
return _priv ? _priv->_used : 0; \
|
||||
} \
|
||||
scope int prefix##_less(void *h, size_t a, size_t b) \
|
||||
static int prefix##_less(void *h, size_t a, size_t b) \
|
||||
{ \
|
||||
type *_heap = h; return less(_heap[a], _heap[b]); \
|
||||
} \
|
||||
scope void prefix##_swap(void *h, size_t a, size_t b) \
|
||||
static void prefix##_swap(void *h, size_t a, size_t b) \
|
||||
{ \
|
||||
type *_heap = h; type _swap = _heap[a]; \
|
||||
set(_heap, a, _heap[b]); set(_heap, b, _swap); \
|
||||
|
|
Loading…
Reference in New Issue