See changelog. Thanks to Les
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
19990522-15:35 CET Eddie Runia
|
||||
* tests/working/instr.prg, source/vm/hvm.c
|
||||
Les Griffiths patch inserted
|
||||
|
||||
19990522-15:10 CET Eddie Runia
|
||||
* include/test.ch
|
||||
added
|
||||
|
||||
@@ -1058,13 +1058,11 @@ void Instring( void )
|
||||
PITEM pItem1 = stack.pPos - 2;
|
||||
PITEM pItem2 = stack.pPos - 1;
|
||||
int iResult;
|
||||
ULONG ul;
|
||||
|
||||
if( IS_STRING( pItem1 ) && IS_STRING( pItem2 ) )
|
||||
{
|
||||
for( iResult = 0, ul = 0; !iResult && ul < (ULONG) pItem1->wLength; ul++ )
|
||||
iResult = hb_strAt( pItem1->value.szText + ul, 1,
|
||||
pItem2->value.szText, pItem2->wLength );
|
||||
iResult = hb_strAt( pItem1->value.szText, pItem1->wLength,
|
||||
pItem2->value.szText, pItem2->wLength );
|
||||
StackPop();
|
||||
StackPop();
|
||||
PushLogical( iResult == 0 ? 0 : 1 );
|
||||
|
||||
@@ -11,7 +11,7 @@ qout('"d" $ "BCDE" ', "d" $ "BCDE",.f.)
|
||||
qout('"D" $ "bcde" ', "D" $ "bcde",.f.)
|
||||
|
||||
qout('"de" $ "bcde"', "de" $ "bcde",.t.)
|
||||
qout('"bd" $ "bcde"', "bd" $ "bcde",.t.)
|
||||
qout('"bd" $ "bcde"', "bd" $ "bcde",.f.)
|
||||
qout('"BD" $ "bcde"', "BD" $ "bcde",.f.)
|
||||
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user