From 667983f196234f65f46280b63b5dfc4dbdd06f47 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Tue, 10 Feb 2009 01:35:15 +0000 Subject: [PATCH] 2009-02-10 02:34 UTC+0100 Viktor Szakats (harbour.01 syenar hu) * include/hbapigt.h * source/rtl/hbgtcore.c * source/rtl/gtfunc.c - Removed unnecessary extension to HB_GT_INFO. --- harbour/ChangeLog | 6 ++++++ harbour/include/hbapigt.h | 1 - harbour/source/rtl/gtfunc.c | 4 ---- harbour/source/rtl/hbgtcore.c | 3 +-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 2b9a0e6a2d..b15e212182 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -8,6 +8,12 @@ 2009-12-31 13:59 UTC+0100 Foo Bar (foo.bar foobar.org) */ +2009-02-10 02:34 UTC+0100 Viktor Szakats (harbour.01 syenar hu) + * include/hbapigt.h + * source/rtl/hbgtcore.c + * source/rtl/gtfunc.c + - Removed unnecessary extension to HB_GT_INFO. + 2009-02-10 02:04 UTC+0100 Viktor Szakats (harbour.01 syenar hu) * doc/whatsnew.txt * include/hbextern.ch diff --git a/harbour/include/hbapigt.h b/harbour/include/hbapigt.h index 4895a376e2..b2b7722cff 100644 --- a/harbour/include/hbapigt.h +++ b/harbour/include/hbapigt.h @@ -149,7 +149,6 @@ typedef struct PHB_ITEM pNewVal; PHB_ITEM pResult; PHB_ITEM pNewVal2; - int nPCount; } HB_GT_INFO, * PHB_GT_INFO; /* Public interface. These should never change, only be added to. */ diff --git a/harbour/source/rtl/gtfunc.c b/harbour/source/rtl/gtfunc.c index c77616bb1e..a38243d0a9 100644 --- a/harbour/source/rtl/gtfunc.c +++ b/harbour/source/rtl/gtfunc.c @@ -103,10 +103,6 @@ HB_FUNC( HB_GTINFO ) gtInfo.pNewVal = hb_param( 2, HB_IT_ANY ); gtInfo.pNewVal2 = hb_param( 3, HB_IT_ANY ); gtInfo.pResult = NULL; - gtInfo.nPCount = hb_pcount() - 1; - - if( gtInfo.nPCount > 2 ) - gtInfo.nPCount = 2; hb_gtInfo( hb_parni( 1 ), >Info ); if( gtInfo.pResult ) diff --git a/harbour/source/rtl/hbgtcore.c b/harbour/source/rtl/hbgtcore.c index 5615c69048..88a5f17324 100644 --- a/harbour/source/rtl/hbgtcore.c +++ b/harbour/source/rtl/hbgtcore.c @@ -1594,7 +1594,7 @@ static BOOL hb_gt_def_Info( PHB_GT pGT, int iType, PHB_GT_INFO pInfo ) else pInfo->pResult = hb_itemNew( pGT->pCargo ); } - if( pInfo->nPCount ) + if( pInfo->pNewVal ) { if( pGT->pCargo ) { @@ -1633,7 +1633,6 @@ static int hb_gt_def_Alert( PHB_GT pGT, PHB_ITEM pMessage, PHB_ITEM pOptions, HB_GT_INFO gtInfo; gtInfo.pNewVal = gtInfo.pNewVal2 = gtInfo.pResult = NULL; - gtInfo.nPCount = 0; HB_GTSELF_INFO( pGT, HB_GTI_FULLSCREEN, >Info ); if( gtInfo.pResult )