From e4d10ec39863e84681c5b685d8b46e9c7351f5b4 Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Tue, 1 May 2007 10:42:22 +0000 Subject: Ported PJLIB and PJLIB-TEST to Symbian! git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1238 74dad513-b988-da41-8d7b-12977e46ad98 --- pjlib/src/pjlib-test/pool_perf.c | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) (limited to 'pjlib/src/pjlib-test/pool_perf.c') diff --git a/pjlib/src/pjlib-test/pool_perf.c b/pjlib/src/pjlib-test/pool_perf.c index 6fb341e0..c65b6e40 100644 --- a/pjlib/src/pjlib-test/pool_perf.c +++ b/pjlib/src/pjlib-test/pool_perf.c @@ -60,6 +60,35 @@ static int pool_test_pool() return 0; } +/* Symbian doesn't have malloc()/free(), so we use new/delete instead */ +#if defined(PJ_SYMBIAN) && PJ_SYMBIAN != 0 + +static int pool_test_malloc_free() +{ + int i; /* must be signed */ + + for (i=0; i= 0) + delete [] p[i], --i; + return -1; + } + *p[i] = '\0'; + } + + for (i=0; i