From f5f66dc911b977bdd4715fdce1027d4fa4143a02 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Wed, 11 Feb 2009 15:56:04 +0000 Subject: [PATCH] Mon Dec 15 10:33:40 CST 2008 Pekka Pessi * 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 --- libs/sofia-sip/libsofia-sip-ua/su/sofia-sip/heap.h | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/libs/sofia-sip/libsofia-sip-ua/su/sofia-sip/heap.h b/libs/sofia-sip/libsofia-sip-ua/su/sofia-sip/heap.h index 50007ce684..25142795a7 100644 --- a/libs/sofia-sip/libsofia-sip-ua/su/sofia-sip/heap.h +++ b/libs/sofia-sip/libsofia-sip-ua/su/sofia-sip/heap.h @@ -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_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) */