diff --git a/harbour/ChangeLog b/harbour/ChangeLog index aeb8fa800c..35c382a083 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -8,6 +8,10 @@ 2002-12-01 13:30 UTC+0100 Foo Bar */ +2007-04-14 13:47 UTC+0200 Francesco Saverio Giudice (info/at/fsgiudice.com) + * harbour/include/hbcompat.ch + * added xharbour compatible hash translations + 2007-04-14 13:36 UTC+0200 Francesco Saverio Giudice (info/at/fsgiudice.com) * harbour/bin/bld.bat * added HB_USER_LIB var to bcc link line to make usable bldtest.bat diff --git a/harbour/include/hbcompat.ch b/harbour/include/hbcompat.ch index f6c448806e..8814cd5438 100644 --- a/harbour/include/hbcompat.ch +++ b/harbour/include/hbcompat.ch @@ -31,4 +31,37 @@ #xcommand DEFAULT => OTHERWISE #endif +#if !defined( HB_COMPAT_XHB ) + +#xtranslate HASH([]) => HB_HASH([]) +#xtranslate HHASKEY([]) => HB_HHASKEY([]) +#xtranslate HGETPOS([]) => HB_HPOS([]) +#xtranslate HGET([]) => HB_HGET([]) +#xtranslate HSET([]) => HB_HSET([]) +#xtranslate HDEL([]) => HB_HDEL([]) +#xtranslate HGETKEYAT([]) => HB_HKEYAT([]) +#xtranslate HGETVALUEAT([]) => HB_HVALUEAT([]) +#xtranslate HSETVALUEAT([]) => HB_HVALUEAT([]) +#xtranslate HGETPAIRAT([]) => HB_HPAIRAT([]) +#xtranslate HDELAT([]) => HB_HDELAT([]) +#xtranslate HGETKEYS([]) => HB_HKEYS([]) +#xtranslate HGETVALUES([]) => HB_HVALUES([]) +#xtranslate HFILL([]) => HB_HFILL([]) +#xtranslate HCLONE([]) => HB_HCLONE([]) +#xtranslate HCOPY([]) => HB_HCOPY([]) +#xtranslate HMERGE([]) => HB_HMERGE([]) +#xtranslate HEVAL([]) => HB_HEVAL([]) +#xtranslate HSCAN([]) => HB_HSCAN([]) +#xtranslate HSETCASEMATCH( , ) => HB_HCASEMATCH( , ); +#xtranslate HGETCASEMATCH([]) => HB_HCASEMATCH([]) +#xtranslate HSETAUTOADD( , ) => HB_HAUTOADD( , ); +#xtranslate HGETAUTOADD([]) => HB_HAUTOADD([]) +#xtranslate HALLOCATE([]) => HB_HALLOCATE([]) +#xtranslate HDEFAULT([]) => HB_HDEFAULT([]) + +#xtranslate NUMTOHEX() => NTOC(, 16) +#xtranslate HEXTONUM() => CTON(, 16) + +#endif + #endif /* __HARBOUR__ */