diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 2e9a6b7fa3..32b37fc9cf 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -8,6 +8,12 @@ 2009-12-31 13:59 UTC+0100 Foo Bar (foo.bar foobar.org) */ +2009-03-02 09:43 UTC+0100 Viktor Szakats (harbour.01 syenar hu) + * include/hbapi.h + * source/rtl/hbstrfmt.c + * C level function renamed to hb_strFormat(). + + Added to headers, exported. + 2009-03-02 09:36 UTC+0100 Viktor Szakats (harbour.01 syenar hu) * source/rtl/Makefile * include/hbextern.ch diff --git a/harbour/include/hbapi.h b/harbour/include/hbapi.h index d8d138df08..ff54d2a5cf 100644 --- a/harbour/include/hbapi.h +++ b/harbour/include/hbapi.h @@ -866,6 +866,7 @@ extern HB_EXPORT double hb_numRound( double dResult, int iDec ); /* round a n extern HB_EXPORT double hb_numInt( double dNum ); /* take the integer part of the number */ extern HB_EXPORT double hb_numDecConv( double dNum, int iDec ); +extern HB_EXPORT PHB_ITEM hb_strFormat( PHB_ITEM pItemReturn, PHB_ITEM pItemFormat, int iCount, PHB_ITEM * pItemArray ); /* architecture dependent number conversions */ extern HB_EXPORT void hb_put_ieee754( BYTE * ptr, double d ); diff --git a/harbour/source/rtl/hbstrfmt.c b/harbour/source/rtl/hbstrfmt.c index 4d4d90114b..9501ad0291 100644 --- a/harbour/source/rtl/hbstrfmt.c +++ b/harbour/source/rtl/hbstrfmt.c @@ -3,7 +3,7 @@ */ /* - * HB_STRFORMAT()/hb_StrFormat() functions. + * HB_STRFORMAT()/hb_strFormat() functions. * * Copyright 2008 Mindaugas Kavaliauskas * www - http://www.harbour-project.org @@ -72,7 +72,7 @@ static void bufadd( BUFFERTYPE * pBuf, char * pAdd, ULONG ulLen ) pBuf->pData[ pBuf->ulLen ] = '\0'; } -PHB_ITEM hb_StrFormat( PHB_ITEM pItemReturn, PHB_ITEM pItemFormat, int iCount, PHB_ITEM * pItemArray ) +PHB_ITEM hb_strFormat( PHB_ITEM pItemReturn, PHB_ITEM pItemFormat, int iCount, PHB_ITEM * pItemArray ) { BUFFERTYPE buffer; PHB_ITEM pItem; @@ -469,7 +469,7 @@ HB_FUNC( HB_STRFORMAT ) pItemArray[ i - 1 ] = hb_param( i + 1, HB_IT_ANY ); } - hb_itemReturnRelease( hb_StrFormat( NULL, pFormat, iParams - 1, pItemArray ) ); + hb_itemReturnRelease( hb_strFormat( NULL, pFormat, iParams - 1, pItemArray ) ); if( iParams > 1 ) hb_xfree( pItemArray );