Commit 4e021620 authored by Pekka Pessi's avatar Pekka Pessi

sofia-sip/heap.h: added protype for su_smoothsort()

darcs-hash:20081215163340-db55f-f2a7db9b0f806123113817918dfcf7d31aea50bd.gz
parent f38926ee
......@@ -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) */
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