From 343b6802306c8b0b129cd8481f456b15ba0f5247 Mon Sep 17 00:00:00 2001 From: Przemyslaw Czerpak Date: Wed, 4 Apr 2007 10:15:16 +0000 Subject: [PATCH] 2007-04-04 12:15 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/ChangeLog ! typos * harbour/source/vm/extend.c * formatting --- harbour/ChangeLog | 16 ++++++++++++---- harbour/source/vm/extend.c | 1 + 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 0ff75529bb..ace7300348 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -8,6 +8,12 @@ 2002-12-01 13:30 UTC+0100 Foo Bar */ +2007-04-04 12:15 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) + * harbour/ChangeLog + ! typos + * harbour/source/vm/extend.c + * formatting + 2007-04-04 10:35 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/contrib/tip/Makefile - harbour/contrib/tip/atokens.c @@ -33,9 +39,11 @@ accept as delimiters string longer then one character. By default they are using " " as delimiter. " " delimiter has special mening Unlike other delimiters repeted ' ' characters does not create empty - tokens, f.e.: HB_ATOKENS( " 1 2 3 " ) returns array { "1", "2" } - Any other delimiters are restrictly counted, f.e. HB_ATOKENS( ",,1,,2,") - return array: { "", "", "1", "", "2", "" }. + tokens, f.e.: HB_ATOKENS( " 1 2 3 " ) returns array: + { "1", "2", "3" } + Any other delimiters are restrictly counted, f.e.: + HB_ATOKENS( ",,1,,2,") returns array: + { "", "", "1", "", "2", "" } + added emulation for old __STRTOKEN(), __STRTKPTR() and xHarbour's __STRTOKENCOUNT() by HB_TOKEN*() functions. They do not return @@ -195,7 +203,7 @@ HB_MD5FILE( ) -> HB_CRC() is general CRC function which can be used for any polynomial given as second argument, f.e.: 0x104C11DB7 is CRC32 polynomial, - 0x18005 -> CRC16, 0x11021 -> CRC16 X.26, 0x1393 -> CRC12, 0x101 -> LCR8 + 0x18005 -> CRC16, 0x11021 -> CRC16 X.25, 0x1393 -> CRC12, 0x101 -> LCR8 HB_CRCCT() makes exactly the same job but it uses broken algorithm. Unfortunately it seems that this broken version is widely used by many other projects, f.e. HB_CRCCT() gives exactly the same results as diff --git a/harbour/source/vm/extend.c b/harbour/source/vm/extend.c index f50b545550..04bb8f98ec 100644 --- a/harbour/source/vm/extend.c +++ b/harbour/source/vm/extend.c @@ -151,6 +151,7 @@ HB_EXPORT BOOL hb_extIsObject( int iParam ) if( HB_IS_BYREF( pItem ) ) pItem = hb_itemUnRef( pItem ); + return HB_IS_OBJECT( pItem ); }