2008-07-09 22:53 UTC+0200 Viktor Szakats (harbour.01 syenar hu)

* contrib/hbcurl/hbcurl.c
     + Changed to use Harbour memory allocation functions in 
       libcurl.
This commit is contained in:
Viktor Szakats
2008-07-09 20:54:20 +00:00
parent f7550368fe
commit 34e0f7d1c3
2 changed files with 5 additions and 11 deletions

View File

@@ -8,6 +8,11 @@
2008-12-31 13:59 UTC+0100 Foo Bar <foo.bar@foobar.org>
*/
2008-07-09 22:53 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* contrib/hbcurl/hbcurl.c
+ Changed to use Harbour memory allocation functions in
libcurl.
2008-07-09 22:42 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/make_xmingwce.sh
! fixed HB_PPGEN_PATH setting

View File

@@ -111,11 +111,6 @@ typedef struct _HB_CURL
/* ---------------------------------------------------------------------------- */
/* Global initialization/deinitialization */
#ifdef _HB_CURL_REDEF_MEM
/* NOTE/TOFIX: _HB_CURL_REDEF_MEM doesn't work at this moment, as hb_xgrab() is
getting pointers not allocated by our allocators. [vszakats] */
void * hb_curl_xgrab( size_t size )
{
return hb_xgrab( size );
@@ -146,20 +141,14 @@ void * hb_curl_calloc( size_t nelem, size_t elsize )
return ptr;
}
#endif
HB_FUNC( CURL_GLOBAL_INIT )
{
#ifdef _HB_CURL_REDEF_MEM
hb_retnl( ( long ) curl_global_init_mem( ISNUM( 1 ) ? hb_parnl( 1 ) : CURL_GLOBAL_ALL,
hb_curl_xgrab,
hb_curl_xfree,
hb_curl_xrealloc,
hb_curl_strdup,
hb_curl_calloc ) );
#else
hb_retnl( ( long ) curl_global_init( ISNUM( 1 ) ? hb_parnl( 1 ) : CURL_GLOBAL_ALL ) );
#endif
}
HB_FUNC( CURL_GLOBAL_CLEANUP )