cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Code cleanup in lib/ssh.c

From: Yang Tse <yangsita_at_gmail.com>
Date: Tue, 19 Feb 2008 18:02:58 +0100

2008/2/19, Daniel Stenberg wrote:

> > Is someone planning to give some use to LIBSSH2_ALLOC_FUNC()
> > LIBSSH2_REALLOC_FUNC() and LIBSSH2_FREE_FUNC() static
> > functions in lib/ssh.c ?

> They're used in the libssh2_init_ex() call. I'd say the main (and only?)
> benefit of doing it like that is that we get libssh2's memory allocations and
> frees covered by our own memory debugging system for the test suite etc.

He, he, I've looked too fast at that code. LIBSSH2_ALLOC_FUNC,
LIBSSH2_REALLOC_FUNC and LIBSSH2_FREE_FUNC are actually the callback
prototypes. And yes they are really used.

Sorry for the noise.

-- 
-=[Yang]=-
Received on 2008-02-19