提交 e591b6ce authored 作者: Michael Jerris's avatar Michael Jerris

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
上级 cf9f7888
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); \
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论