2000-11-23 23:11 UTC+0100 jfl (mafact) <jfl@mafact.com>
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2000-11-23 23:11 UTC+0100 jfl (mafact) <jfl@mafact.com>
|
||||
* source/vm/classes.c
|
||||
* corrected hb___msgClsParent( void )
|
||||
where some pointer was badly deallocated
|
||||
|
||||
2000-11-23 11:11 UTC+0800 Ron Pinkas <ron@profit-master.com>
|
||||
* source/rtl/idle.c
|
||||
! Added Reset Logic to HB_IDLESTATE()
|
||||
|
||||
@@ -1867,6 +1867,7 @@ static HARBOUR hb___msgClsParent( void )
|
||||
PCLASS pClass;
|
||||
char * szParentName = 0;
|
||||
USHORT uiClass, i;
|
||||
BOOL lClass=FALSE;
|
||||
|
||||
if( HB_IS_BYREF( hb_stack.pBase + 1 ) ) /* Variables by reference */
|
||||
pItemRef = hb_itemUnRef( hb_stack.pBase + 1 );
|
||||
@@ -1882,14 +1883,18 @@ static HARBOUR hb___msgClsParent( void )
|
||||
if( HB_IS_OBJECT( pItemParam ) )
|
||||
szParentName = hb_objGetClsName( pItemParam );
|
||||
else if( HB_IS_STRING( pItemParam ) )
|
||||
{
|
||||
szParentName = hb_itemGetC( pItemParam );
|
||||
lClass=TRUE;
|
||||
}
|
||||
|
||||
for( i = 0; szParentName[ i ] != '\0'; i++ )
|
||||
szParentName[ i ] = ( char ) toupper( szParentName[ i ] );
|
||||
|
||||
hb_retl( hb_clsIsParent( pClass, szParentName ) );
|
||||
|
||||
hb_itemFreeC( szParentName );
|
||||
if (lClass)
|
||||
hb_itemFreeC( szParentName );
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user