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.
This commit is contained in:
Viktor Szakats
2009-03-02 08:44:00 +00:00
parent 9f2c4df193
commit cf2a1eb5ed
3 changed files with 10 additions and 3 deletions

View File

@@ -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

View File

@@ -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 );

View File

@@ -3,7 +3,7 @@
*/
/*
* HB_STRFORMAT()/hb_StrFormat() functions.
* HB_STRFORMAT()/hb_strFormat() functions.
*
* Copyright 2008 Mindaugas Kavaliauskas <dbtopas at dbtopas.lt>
* 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 );