Mon Dec 15 10:33:40 CST 2008 Pekka Pessi <first.last@nokia.com>
* sofia-sip/heap.h: added protype for su_smoothsort() git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11760 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
76c08c2274
commit
f5f66dc911
|
@ -319,9 +319,6 @@ scope 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); \
|
||||
} \
|
||||
void su_smoothsort(void *base, size_t r0, size_t N, \
|
||||
int (*less)(void *base, size_t a, size_t b), \
|
||||
void (*swap)(void *base, size_t a, size_t b)); \
|
||||
scope void prefix##sort(heaptype h) \
|
||||
{ \
|
||||
struct prefix##priv { size_t _size, _used; type _heap[1];}; \
|
||||
|
@ -331,4 +328,14 @@ scope void prefix##sort(heaptype h) \
|
|||
} \
|
||||
extern int const prefix##dummy_heap
|
||||
|
||||
#include <sofia-sip/su_types.h>
|
||||
|
||||
SOFIA_BEGIN_DECLS
|
||||
|
||||
SOFIAPUBFUN void su_smoothsort(void *base, size_t r0, size_t N,
|
||||
int (*less)(void *base, size_t a, size_t b),
|
||||
void (*swap)(void *base, size_t a, size_t b));
|
||||
|
||||
SOFIA_END_DECLS
|
||||
|
||||
#endif /** !defined(SOFIA_SIP_HEAP_H) */
|
||||
|
|
Loading…
Reference in New Issue