2009-07-02 01:19 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)

* harbour/include/hbapi.h
  * harbour/source/vm/extend.c
    * changed type of returned value in hb_par[v]ds() functions
      from 'char *' to 'const char *'
This commit is contained in:
Przemyslaw Czerpak
2009-07-01 23:20:05 +00:00
parent 0b8fe0090a
commit 9220ae716c
3 changed files with 10 additions and 4 deletions

View File

@@ -17,6 +17,12 @@
past entries belonging to author(s): Viktor Szakats.
*/
2009-07-02 01:19 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbapi.h
* harbour/source/vm/extend.c
* changed type of returned value in hb_par[v]ds() functions
from 'char *' to 'const char *'
2009-07-02 00:35 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/Makefile
* Moved hbxbp to the end of list as a workaround for potentially

View File

@@ -613,7 +613,7 @@ extern HB_EXPORT const char * hb_parc( int iParam ); /* retrieve a string parame
extern HB_EXPORT const char * hb_parcx( int iParam ); /* retrieve a string parameter */
extern HB_EXPORT ULONG hb_parclen( int iParam ); /* retrieve a string parameter length */
extern HB_EXPORT ULONG hb_parcsiz( int iParam ); /* retrieve a by-reference string parameter length, including terminator */
extern HB_EXPORT char * hb_pards( int iParam ); /* retrieve a date as a string YYYYMMDD */
extern HB_EXPORT const char * hb_pards( int iParam ); /* retrieve a date as a string YYYYMMDD */
extern HB_EXPORT char * hb_pardsbuff( char * szDate, int iParam ); /* retrieve a date as a string YYYYMMDD */
extern HB_EXPORT LONG hb_pardl( int iParam ); /* retrieve a date as a LONG NUMBER */
extern HB_EXPORT double hb_partd( int iParam ); /* retrieve a timestamp as a double number */
@@ -633,7 +633,7 @@ extern HB_EXPORT const char * hb_parvc( int iParam, ... ); /* retrieve a string
extern HB_EXPORT const char * hb_parvcx( int iParam, ... ); /* retrieve a string parameter */
extern HB_EXPORT ULONG hb_parvclen( int iParam, ... ); /* retrieve a string parameter length */
extern HB_EXPORT ULONG hb_parvcsiz( int iParam, ... ); /* retrieve a by-reference string parameter length, including terminator */
extern HB_EXPORT char * hb_parvds( int iParam, ... ); /* retrieve a date as a string YYYYMMDD */
extern HB_EXPORT const char * hb_parvds( int iParam, ... ); /* retrieve a date as a string YYYYMMDD */
extern HB_EXPORT char * hb_parvdsbuff( char * szDate, int iParam, ... ); /* retrieve a date as a string YYYYMMDD */
extern HB_EXPORT LONG hb_parvdl( int iParam, ... ); /* retrieve a date as a LONG NUMBER */
extern HB_EXPORT double hb_parvtd( int iParam, ... ); /* retrieve a timestamp as a double number */

View File

@@ -298,7 +298,7 @@ ULONG hb_parcsiz( int iParam )
/* NOTE: Using hb_stackDateBuffer() a temporary date buffer guaranties
good behavior when multithreading. */
char * hb_pards( int iParam )
const char * hb_pards( int iParam )
{
HB_STACK_TLS_PRELOAD
@@ -747,7 +747,7 @@ ULONG hb_parvcsiz( int iParam, ... )
/* NOTE: Using hb_stackDateBuffer() a temporary date buffer guaranties
good behavior when multithreading. */
char * hb_parvds( int iParam, ... )
const char * hb_parvds( int iParam, ... )
{
HB_STACK_TLS_PRELOAD