2016-06-23 00:54 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)

* include/hbapiitm.h
  * src/vm/itemapi.c
    + added new C function:
         PHB_ITEM hb_itemPutNil( PHB_ITEM pItem );

  * src/rdd/dbf1.c
    ! fixed yet another RDDI_SETHEADER clearing in internal DBF RDD code
    * clear few passed variables before internal SELF_INFO() and
      SELF_RDDINFO() read calls - they were safe in current code but
      potentially may badly interact with 3-rd party DBF RDD wrappers.
This commit is contained in:
Przemysław Czerpak
2016-06-23 00:54:16 +02:00
parent 7bc80aaf1d
commit a7e0e45857
4 changed files with 39 additions and 12 deletions

View File

@@ -234,6 +234,18 @@ PHB_ITEM hb_itemArrayPut( PHB_ITEM pArray, HB_SIZE nIndex, PHB_ITEM pItem )
return pArray;
}
PHB_ITEM hb_itemPutNil( PHB_ITEM pItem )
{
HB_TRACE( HB_TR_DEBUG, ( "hb_itemPutNil(%p)", pItem ) );
if( pItem )
hb_itemSetNil( pItem );
else
pItem = hb_itemNew( NULL );
return pItem;
}
PHB_ITEM hb_itemPutC( PHB_ITEM pItem, const char * szText )
{
HB_SIZE nLen, nAlloc;