Add casts to xgrab calls

This commit is contained in:
Paul Tucker
2001-10-20 05:40:55 +00:00
parent c69ab9cfc0
commit 7b3fe049b3
9 changed files with 25 additions and 13 deletions

View File

@@ -1,3 +1,15 @@
2001-10-19 01:35 UTC-0500 Paul Tucker <ptucker@sympatico.ca>
* source/contrib/libct
* justify.c
pos2.c
range.c
relation.c
replace.c
strswap.c
wordtoch.c
pad.c
* added casts to xgrab calls.
2001-10-19 18:42 GMT-3 Horacio Roldan <harbour_ar@yahoo.com.ar>
* source/rdd/dbfcdx/dbfcdx1.c
! fixed ordSetFocus related, if the previos order was 0, it did nothing

View File

@@ -84,7 +84,7 @@ static void do_justify (int iSwitch)
else
cJustChar = 0x20;
pcRet = hb_xgrab (sStrLen);
pcRet = ( char *)hb_xgrab (sStrLen);
switch (iSwitch)
{

View File

@@ -100,7 +100,7 @@ static void do_pad (int iSwitch)
else
cFill = 0x20;
pcRet = hb_xgrab (sRetLen);
pcRet = ( char * )hb_xgrab (sRetLen);
if (iSwitch == DO_PAD_PADLEFT)
{

View File

@@ -123,7 +123,7 @@ HB_FUNC (POSCHAR)
sPosition = sStrLen;
}
pcRet = hb_xgrab (sStrLen);
pcRet = ( char * )hb_xgrab (sStrLen);
hb_xmemcpy (pcRet, pcString, sStrLen);
*(pcRet+sPosition-1) = cReplace;
@@ -262,7 +262,7 @@ HB_FUNC (POSDEL)
sStartPos = sStrLen-sDelLen+1;
}
pcRet = hb_xgrab (sStrLen-sDelLen);
pcRet = ( char * )hb_xgrab (sStrLen-sDelLen);
/* copy first part */
if (sStartPos > 1)
@@ -382,7 +382,7 @@ HB_FUNC (POSINS)
return;
}
pcRet = hb_xgrab (sStrLen+sInsLen);
pcRet = ( char * )hb_xgrab (sStrLen+sInsLen);
/* copy first part */
if (sStartPos > 1)
@@ -547,7 +547,7 @@ HB_FUNC (POSREPL)
sRetLen = sStartPos+sReplLen-1;
}
pcRet = hb_xgrab (sRetLen);
pcRet = ( char * )hb_xgrab (sRetLen);
/* copy first part */
if (sStartPos > 1)

View File

@@ -119,7 +119,7 @@ HB_FUNC (RANGEREM)
iMode = (ucChar2 < ucChar1);
pcRet = hb_xgrab (sStrLen);
pcRet = ( char * )hb_xgrab (sStrLen);
sRetIndex = 0;
for (pc = pcString; pc < pcString+sStrLen; pc++)
{
@@ -257,7 +257,7 @@ HB_FUNC (RANGEREPL)
iMode = (ucChar2 < ucChar1);
pcRet = hb_xgrab (sStrLen);
pcRet = ( char * )hb_xgrab (sStrLen);
sRetIndex = 0;
for (pc = pcString; pc < pcString+sStrLen; pc++)
{

View File

@@ -268,7 +268,7 @@ HB_FUNC (CHARRELREP)
return;
}
pcRet = hb_xgrab (sStrLen2);
pcRet = ( char * ) hb_xgrab (sStrLen2);
hb_xmemcpy (pcRet, pcString2, sStrLen2);
sOffset1 = 0;

View File

@@ -107,7 +107,7 @@ static void do_replace (int iSwitch)
cSearch = 0x20;
}
pcRet = hb_xgrab (sStrLen);
pcRet = ( char * )hb_xgrab (sStrLen);
hb_xmemcpy (pcRet, pcString, sStrLen);
if (iSwitch != DO_REPLACE_REPLRIGHT)

View File

@@ -102,13 +102,13 @@ HB_FUNC (STRSWAP)
if ((iChange1=ISBYREF(1)) != 0)
{
pcRet1 = hb_xgrab (sStrLen1);
pcRet1 = ( char * )hb_xgrab (sStrLen1);
hb_xmemcpy (pcRet1, pcString1, sStrLen1);
}
if ((iChange2=ISBYREF(2)) != 0)
{
pcRet2 = hb_xgrab (sStrLen2);
pcRet2 = ( char * )hb_xgrab (sStrLen2);
hb_xmemcpy (pcRet2, pcString2, sStrLen2);
}

View File

@@ -108,7 +108,7 @@ HB_FUNC (WORDTOCHAR)
size_t sRetIndex, sIndex;
int iNoReplace;
pcRet = hb_xgrab (sStrLen);
pcRet = ( char * )hb_xgrab (sStrLen);
sRetIndex = 0;
sIndex = 0;