Commit 86b3098c authored by Pekka Pessi's avatar Pekka Pessi

sofia-sip/heap.h: use static scope for functions given to sort()

Ignore-this: 72e91b9470ccc23300ce06eb836d56f4

darcs-hash:20090224150308-db55f-1f52dfdfe5affb6862a77c9474f8b22e23336163.gz
parent 66db9939
......@@ -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); \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment