On Tue, 23 Jun 2009, vszak...@users.sourceforge.net wrote: Hi,
> 2009-06-23 18:15 UTC+0200 Viktor Szakats (harbour.01 syenar.hu) > * include/hbapi.h > * include/hbapiitm.h > * source/vm/itemapi.c > * source/vm/arrays.c > * source/vm/extend.c > ! Fixed hb_parvc() function to return NULL in case an array > is passed as Harbour level parameter. This makes this function > (and _parc()) fully CA-Cl*pper compatible. > ; Please review maybe there is a lighter patch to achieve this > goal. I had to add NULL versions for two functions downstream. Just simply replace in hb_parvc(): return hb_arrayGetCPtrNULL( pItem, ulArrayIndex ); with: pItem = hb_arrayGetItemPtr( pItem, ulArrayIndex ); return pItem && HB_IS_STRING( pItem ) ? hb_itemGetCPtr( pItem ) : NULL; It's not very important but names like hb_arrayGetCPtrNULL() and hb_itemGetCPtrNULL() does not look good for me. best regards, Przemek _______________________________________________ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour