2012-06-20 13:02 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)

* harbour/src/rtl/valtype.c
  * harbour/include/harbour.hbx
    + added new PRG function HB_ISEVALITEM()
      It returns true if item can be evaluated by EVAL() function,
      i.e. for codeblocks and function symbols.
      In the future it can be extended to accept objects with :EVAL()
      methods.
This commit is contained in:
Przemyslaw Czerpak
2012-06-20 11:02:39 +00:00
parent 965c71b3e9
commit 340fc44e05
3 changed files with 15 additions and 0 deletions

View File

@@ -16,6 +16,15 @@
The license applies to all entries newer than 2009-04-28.
*/
2012-06-20 13:02 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* harbour/src/rtl/valtype.c
* harbour/include/harbour.hbx
+ added new PRG function HB_ISEVALITEM()
It returns true if item can be evaluated by EVAL() function,
i.e. for codeblocks and function symbols.
In the future it can be extended to accept objects with :EVAL()
methods.
2012-06-20 09:27 UTC+0200 Viktor Szakats (harbour syenar.net)
* config/os2/watcom.mk
! same RC fix for os2

View File

@@ -612,6 +612,7 @@ DYNAMIC HB_ISBLOCK
DYNAMIC HB_ISCHAR
DYNAMIC HB_ISDATE
DYNAMIC HB_ISDATETIME
DYNAMIC HB_ISEVALITEM
DYNAMIC hb_IsFunction
DYNAMIC HB_ISHASH
DYNAMIC HB_ISHASHKEY

View File

@@ -151,6 +151,11 @@ HB_FUNC( HB_ISHASHKEY )
hb_retl( ( hb_parinfo( 1 ) & HB_IT_HASHKEY ) != 0 );
}
HB_FUNC( HB_ISEVALITEM )
{
hb_retl( ( hb_parinfo( 1 ) & HB_IT_EVALITEM ) != 0 );
}
HB_FUNC( HB_ISNULL )
{
PHB_ITEM pItem = hb_param( 1, HB_IT_ANY );