2006-09-11 20:30 UTC+0300 Alexander Kresin <alex@belacy.belgorod.su>

This commit is contained in:
Alexander S.Kresin
2006-09-11 16:31:10 +00:00
parent eee1c71e5e
commit e10df29fdd
2 changed files with 9 additions and 6 deletions

View File

@@ -8,6 +8,10 @@
2002-12-01 13:30 UTC+0100 Foo Bar <foo.bar@foobar.org>
*/
I'll add Class(y) compatible functions used in class(y) header files
so it will be possible to use original class(y) .ch files in Harbour
though it will not be the most efficient because we have @func() operator
which gives better performance then using codeblocks. Anyhow classy
create separate meta class for each class with CLASS members and
<clasName>() function always return such meta class object so for full
Class(y) compatibility we need to generate differ .prg code.

View File

@@ -1631,14 +1631,13 @@ HB_EXPORT int hb_itemStrCmp( PHB_ITEM pFirst, PHB_ITEM pSecond, BOOL bForceExact
}
while( --ulMinLen );
if( !iRet && ulLenSecond != ulLenFirst )
if( hb_set.HB_SET_EXACT || bForceExact || ulLenSecond > ulLenFirst )
{
if( ulLenSecond > ulLenFirst )
iRet = 1;
else if( hb_set.HB_SET_EXACT || bForceExact )
iRet = -1;
/* Force an exact comparison */
if( !iRet && ulLenFirst != ulLenSecond )
/* If length is different ! */
iRet = ( ulLenFirst < ulLenSecond ) ? -1 : 1;
}
}
}
else