Add casts to xgrab calls
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -84,7 +84,7 @@ static void do_justify (int iSwitch)
|
||||
else
|
||||
cJustChar = 0x20;
|
||||
|
||||
pcRet = hb_xgrab (sStrLen);
|
||||
pcRet = ( char *)hb_xgrab (sStrLen);
|
||||
|
||||
switch (iSwitch)
|
||||
{
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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++)
|
||||
{
|
||||
|
||||
@@ -268,7 +268,7 @@ HB_FUNC (CHARRELREP)
|
||||
return;
|
||||
}
|
||||
|
||||
pcRet = hb_xgrab (sStrLen2);
|
||||
pcRet = ( char * ) hb_xgrab (sStrLen2);
|
||||
hb_xmemcpy (pcRet, pcString2, sStrLen2);
|
||||
|
||||
sOffset1 = 0;
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user