2008-09-18 07:55 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/rtl/cdpapi.c
* explicit casting to char * in 1-st strchr() parameter as workaround
for wrong function prototype in DMC header files
This commit is contained in:
@@ -8,6 +8,11 @@
|
||||
2008-12-31 13:59 UTC+0100 Foo Bar (foo.bar foobar.org)
|
||||
*/
|
||||
|
||||
2008-09-18 07:55 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
|
||||
* harbour/source/rtl/cdpapi.c
|
||||
* explicit casting to char * in 1-st strchr() parameter as workaround
|
||||
for wrong function prototype in DMC header files
|
||||
|
||||
2008-09-18 07:21 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
|
||||
* harbour/include/hbthread.h
|
||||
* use assembler version of atomic inc/dec operation in all x86 based
|
||||
|
||||
@@ -501,12 +501,12 @@ HB_EXPORT void hb_cdpTranslate( char *psz, PHB_CODEPAGE cdpIn, PHB_CODEPAGE cdpO
|
||||
{
|
||||
char * ptr;
|
||||
|
||||
ptr = strchr( cdpIn->CharsUpper, *psz );
|
||||
ptr = strchr( ( char * ) cdpIn->CharsUpper, *psz );
|
||||
if( ptr )
|
||||
*psz = cdpOut->CharsUpper[ ptr - cdpIn->CharsUpper ];
|
||||
else
|
||||
{
|
||||
ptr = strchr( cdpIn->CharsLower, *psz );
|
||||
ptr = strchr( ( char * ) cdpIn->CharsLower, *psz );
|
||||
if( ptr )
|
||||
*psz = cdpOut->CharsLower[ ptr - cdpIn->CharsLower ];
|
||||
}
|
||||
@@ -543,12 +543,12 @@ HB_EXPORT void hb_cdpnTranslate( char *psz, PHB_CODEPAGE cdpIn, PHB_CODEPAGE cdp
|
||||
{
|
||||
char * ptr;
|
||||
|
||||
ptr = strchr( cdpIn->CharsUpper, *psz );
|
||||
ptr = strchr( ( char * ) cdpIn->CharsUpper, *psz );
|
||||
if( ptr )
|
||||
*psz = cdpOut->CharsUpper[ ptr - cdpIn->CharsUpper ];
|
||||
else
|
||||
{
|
||||
ptr = strchr( cdpIn->CharsLower, *psz );
|
||||
ptr = strchr( ( char * ) cdpIn->CharsLower, *psz );
|
||||
if( ptr )
|
||||
*psz = cdpOut->CharsLower[ ptr - cdpIn->CharsLower ];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user