From 79d5392cfc28439ce59c78bdc7771a4651fee739 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Fri, 28 Sep 2007 15:31:45 +0000 Subject: [PATCH] 2007-09-28 17:26 UTC+0100 Viktor Szakats (harbour.01 syenar.hu) * include/Makefile - include/hbcompat.ch + contrib/xhb/hbcompat.ch * contrib/xhb/xhb.ch * contrib/xhb/Makefile * Moved content or hbcompat.ch into xhb.ch. Those who need compatibility, have to replace * Moved hbcompat.ch (for compatibility) to contrib/xhb --- harbour/ChangeLog | 10 ++ harbour/contrib/xhb/Makefile | 1 + harbour/contrib/xhb/hbcompat.ch | 53 +++++++ harbour/contrib/xhb/xhb.ch | 194 ++++++++++++++++++++++++- harbour/include/Makefile | 1 - harbour/include/hbcompat.ch | 242 -------------------------------- 6 files changed, 256 insertions(+), 245 deletions(-) create mode 100644 harbour/contrib/xhb/hbcompat.ch delete mode 100644 harbour/include/hbcompat.ch diff --git a/harbour/ChangeLog b/harbour/ChangeLog index de28082449..ee58baff90 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -8,6 +8,16 @@ 2002-12-01 13:30 UTC+0100 Foo Bar */ +2007-09-28 17:26 UTC+0100 Viktor Szakats (harbour.01 syenar.hu) + * include/Makefile + - include/hbcompat.ch + + contrib/xhb/hbcompat.ch + * contrib/xhb/xhb.ch + * contrib/xhb/Makefile + * Moved content or hbcompat.ch into xhb.ch. + Those who need compatibility, have to replace + * Moved hbcompat.ch (for compatibility) to contrib/xhb + 2007-09-28 16:32 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/include/hbexprb.c * respect -ks in macrovars and array item references diff --git a/harbour/contrib/xhb/Makefile b/harbour/contrib/xhb/Makefile index 0f9ba1ef86..2b4a7a9236 100644 --- a/harbour/contrib/xhb/Makefile +++ b/harbour/contrib/xhb/Makefile @@ -22,6 +22,7 @@ PRG_SOURCES=\ PRG_HEADERS=\ xhb.ch \ + hbcompat.ch \ hblog.ch \ hblogdef.ch \ cstruct.ch \ diff --git a/harbour/contrib/xhb/hbcompat.ch b/harbour/contrib/xhb/hbcompat.ch new file mode 100644 index 0000000000..b84654491a --- /dev/null +++ b/harbour/contrib/xhb/hbcompat.ch @@ -0,0 +1,53 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * Header file for cross-compatibility between different Harbour flavours + * + * Copyright 1999-2007 {list of individual authors and e-mail addresses} + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ + +#include "xhb.ch" diff --git a/harbour/contrib/xhb/xhb.ch b/harbour/contrib/xhb/xhb.ch index 2118a08d56..114e426bbe 100644 --- a/harbour/contrib/xhb/xhb.ch +++ b/harbour/contrib/xhb/xhb.ch @@ -50,13 +50,203 @@ * */ -#ifndef __XHARBOUR__ +#ifndef XHB__CH_ +#define XHB__CH_ - #include "hbcompat.ch" +#ifdef __HARBOUR__ + +#ifdef __XHARBOUR__ + #include "gtinfo.ch" + #include "gfx.ch" +#else + #include "hbgtinfo.ch" + #include "hbgfx.ch" +#endif + + +#ifdef __XHARBOUR__ + + #xtranslate hb_gtSys => gtSys + #xtranslate hb_gtInfo([]) => gtInfo() + #xtranslate hb_gtVersion([]) => hb_gt_Version() + + #xtranslate hb_isregex([]) => hb_isregexstring() + #xtranslate hb_pvalue([]) => pvalue() + #xtranslate hb_methodName([])=> methodName() + #xtranslate hb_libLoad([]) => libLoad() + #xtranslate hb_libFree([]) => libFree() + #xtranslate hb_adler32([]) => hb_checksum() + #xtranslate hb_setLastKey([])=> setLastKey() + #xtranslate hb_CStr([]) => CStr() + + #xtranslate hb_HexToNum([]) => HexToNum() + #xtranslate hb_NumToHex([]) => NumToHex() + #xtranslate hb_HexToStr([]) => HexToStr() + #xtranslate hb_StrToHex([]) => StrToHex() + + #xtranslate hb_AScan(,,[],[],) => AScan(,,,,) + #xtranslate hb_RAScan([]) => RAScan() + + #xtranslate hb_ISPOINTER( )=> ISPOINTER( ) + + #xtranslate hb_IniSetComment([]) => hb_SetIniComment() + #xtranslate hb_IniRead([]) => hb_ReadIni() + #xtranslate hb_IniWrite([]) => hb_WriteIni() + + /* Some statement endings */ + #xcommand ENDSEQUENCE => END + #xcommand ENDSWITCH => END + #xcommand END SWITCH => END + #xcommand ENDWITH => END + #xcommand END WITH => END + #xcommand END OBJECT => END + +#else REQUEST XHB_LIB #xtranslate AIns(,,[]) => xhb_AIns(,,) #xtranslate ADel(,,) => xhb_ADel(,,) + #xtranslate gtSys => hb_gtSys + #xtranslate gtInfo([]) => hb_gtInfo() + #xtranslate hb_gt_Version([]) => hb_gtVersion() + + #xtranslate gtSetClipboard() => hb_gtInfo( GTI_CLIPBOARDDATA, ) + #xtranslate gtGetClipboard() => hb_gtInfo( GTI_CLIPBOARDDATA ) + #xtranslate gtGetClipBoardSize() => Len( hb_gtInfo( GTI_CLIPBOARDDATA ) ) + #xtranslate gtPasteClipBoard([]) => hb_gtInfo( GTI_CLIPBOARDPAST ) + #xtranslate gtProcessMessages() => NextKey() + #xtranslate gfxPrimitive([]) => hb_gfxPrimitive() + #xtranslate gfxText([]) => hb_gfxText() + + #xtranslate hb_isregexstring([]) => hb_isregex() + #xtranslate pvalue([]) => hb_pvalue() + #xtranslate methodName([]) => hb_methodName() + #xtranslate libLoad([]) => hb_libLoad() + #xtranslate libFree([]) => hb_libFree() + #xtranslate hb_checksum([]) => hb_adler32() + #xtranslate setLastKey([]) => hb_setLastKey() + #xtranslate CStr([]) => hb_CStr() + + #xtranslate HexToNum([]) => hb_HexToNum() + #xtranslate NumToHex([]) => hb_NumToHex() + #xtranslate HexToStr([]) => hb_HexToStr() + #xtranslate StrToHex([]) => hb_StrToHex() + + #xtranslate AScan(,,[],[],) => hb_AScan(,,,,) + #xtranslate RAScan([]) => hb_RAScan() + + #xtranslate ISPOINTER( ) => hb_ISPOINTER( ) + + #xtranslate hb_SetIniComment([]) => hb_IniSetComment() + #xtranslate hb_ReadIni([]) => hb_IniRead() + #xtranslate hb_WriteIni([]) => hb_IniWrite() + + #xtranslate Str(,[],[],)=> iif(, LTrim(Str()), Str()) + #xtranslate hb_CMDARGARGV([])=> hb_ARGV(0) + + /* Hash item functions */ + #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_HSETCASEMATCH() + #xtranslate HGETCASEMATCH([])=> hb_HCASEMATCH() + #xtranslate HSETAUTOADD([]) => hb_HSETAUTOADD() + #xtranslate HGETAUTOADD([]) => hb_HAUTOADD() + #xtranslate HALLOCATE([]) => hb_HALLOCATE() + #xtranslate HDEFAULT([]) => hb_HDEFAULT() + + /* Inet functions */ + #xtranslate INETINIT([]) => hb_INETINIT() + #xtranslate INETCLEANUP([]) => hb_INETCLEANUP() + #xtranslate INETCREATE([]) => hb_INETCREATE() + #xtranslate INETCLOSE([]) => hb_INETCLOSE() + #xtranslate INETFD([]) => hb_INETFD() + #xtranslate INETSTATUS([]) => hb_INETSTATUS() + #xtranslate INETERRORCODE([]) => hb_INETERRORCODE() + #xtranslate INETERRORDESC([]) => hb_INETERRORDESC() + #xtranslate INETCLEARERROR([]) => hb_INETCLEARERROR() + #xtranslate INETCOUNT([]) => hb_INETCOUNT() + #xtranslate INETADDRESS([]) => hb_INETADDRESS() + #xtranslate INETPORT([]) => hb_INETPORT() + #xtranslate INETSETTIMEOUT([]) => hb_INETTIMEOUT() + #xtranslate INETGETTIMEOUT([]) => hb_INETTIMEOUT() + #xtranslate INETCLEARTIMEOUT([]) => hb_INETCLEARTIMEOUT() + #xtranslate INETSETTIMELIMIT([]) => hb_INETTIMELIMIT() + #xtranslate INETGETTIMELIMIT([]) => hb_INETTIMELIMIT() + #xtranslate INETCLEARTIMELIMIT([]) => hb_INETCLEARTIMELIMIT() + #xtranslate INETSETPERIODCALLBACK([]) => hb_INETPERIODCALLBACK() + #xtranslate INETGETPERIODCALLBACK([]) => hb_INETPERIODCALLBACK() + #xtranslate INETCLEARPERIODCALLBACK([])=> hb_INETCLEARPERIODCALLBACK() + #xtranslate INETRECV([]) => hb_INETRECV() + #xtranslate INETRECVALL([]) => hb_INETRECVALL() + #xtranslate INETRECVLINE([]) => hb_INETRECVLINE() + #xtranslate INETRECVENDBLOCK([]) => hb_INETRECVENDBLOCK() + #xtranslate INETDATAREADY([]) => hb_INETDATAREADY() + #xtranslate INETSEND([]) => hb_INETSEND() + #xtranslate INETSENDALL([]) => hb_INETSENDALL() + #xtranslate INETGETHOSTS([]) => hb_INETGETHOSTS() + #xtranslate INETGETALIAS([]) => hb_INETGETALIAS() + #xtranslate INETSERVER([]) => hb_INETSERVER() + #xtranslate INETACCEPT([]) => hb_INETACCEPT() + #xtranslate INETCONNECT([]) => hb_INETCONNECT() + #xtranslate INETCONNECTIP([]) => hb_INETCONNECTIP() + #xtranslate INETDGRAMBIND([]) => hb_INETDGRAMBIND() + #xtranslate INETDGRAM([]) => hb_INETDGRAM() + #xtranslate INETDGRAMSEND([]) => hb_INETDGRAMSEND() + #xtranslate INETDGRAMRECV([]) => hb_INETDGRAMRECV() + #xtranslate INETCRLF([]) => hb_INETCRLF() + #xtranslate ISINETSOCKET([]) => HB_ISINETSOCKET() + #xtranslate INETDESTROY([]) => IIF( HB_ISINETSOCKET( ), ; + hb_INETCLOSE( ), ) + + /* THROW => generate error */ + #xtranslate THROW() => (Eval(ErrorBlock(), ), Break()) + + /* TEXT INTO */ + #xcommand TEXT INTO => #pragma __text|+=%s+HB_OSNEWLINE();:="" + + /* SWITCH ... ; case ... ; DEFAULT ; ... ; END */ + #xcommand DEFAULT => OTHERWISE + + /* TRY / CATCH / FINALLY / END */ + #xcommand TRY => BEGIN SEQUENCE WITH {|oErr| Break( oErr )} + #xcommand CATCH [] => RECOVER [USING ] <-oErr-> + #xcommand FINALLY => ALWAYS + + /* EXTENDED CODEBLOCKs */ + #xtranslate \<|[]| => {|| + #xcommand > [<*x*>] => } + + /* xHarbour operators: IN, HAS, LIKE, >>, <<, |, &, ^^ */ + #translate ( IN ) => ( () $ () ) + #translate ( HAS ) => ( HB_REGEXHAS( (), () ) ) + #translate ( LIKE ) => ( HB_REGEXLIKE( (), () ) ) + #translate ( \<\< ) => ( HB_BITSHIFT( (), () ) ) + #translate ( >> ) => ( HB_BITSHIFT( (), -() ) ) + #translate ( | ) => ( HB_BITOR( (), () ) ) + #translate ( & ) => ( HB_BITAND( (), () ) ) + #translate ( ^^ ) => ( HB_BITXOR( (), () ) ) + #endif + +#endif /* __HARBOUR__ */ + +#endif /* XHB__CH_ */ diff --git a/harbour/include/Makefile b/harbour/include/Makefile index f7c6c7300f..50d020b4b5 100644 --- a/harbour/include/Makefile +++ b/harbour/include/Makefile @@ -73,7 +73,6 @@ PRG_HEADERS=\ getexit.ch \ hbclass.ch \ hbcommon.ch \ - hbcompat.ch \ hbdebug.ch \ hbextern.ch \ hbgetcmt.ch \ diff --git a/harbour/include/hbcompat.ch b/harbour/include/hbcompat.ch deleted file mode 100644 index e7fdc205cd..0000000000 --- a/harbour/include/hbcompat.ch +++ /dev/null @@ -1,242 +0,0 @@ -/* - * $Id$ - */ - -/* - * Harbour Project source code: - * Header file for cross-compatibility between different Harbour flavours - * - * Copyright 1999-2007 {list of individual authors and e-mail addresses} - * www - http://www.harbour-project.org - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this software; see the file COPYING. If not, write to - * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, - * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). - * - * As a special exception, the Harbour Project gives permission for - * additional uses of the text contained in its release of Harbour. - * - * The exception is that, if you link the Harbour libraries with other - * files to produce an executable, this does not by itself cause the - * resulting executable to be covered by the GNU General Public License. - * Your use of that executable is in no way restricted on account of - * linking the Harbour library code into it. - * - * This exception does not however invalidate any other reasons why - * the executable file might be covered by the GNU General Public License. - * - * This exception applies only to the code released by the Harbour - * Project under the name Harbour. If you copy code from other - * Harbour Project or Free Software Foundation releases into a copy of - * Harbour, as the General Public License permits, the exception does - * not apply to the code that you add in this way. To avoid misleading - * anyone as to the status of such modified files, you must delete - * this exception notice from them. - * - * If you write modifications of your own for Harbour, it is your choice - * whether to permit this exception to apply to your modifications. - * If you do not wish that, delete this exception notice. - * - */ - -#ifdef __HARBOUR__ - -#ifdef __XHARBOUR__ - #include "gtinfo.ch" - #include "gfx.ch" -#else - #include "hbgtinfo.ch" - #include "hbgfx.ch" -#endif - - -#ifdef __XHARBOUR__ - - #xtranslate hb_gtSys => gtSys - #xtranslate hb_gtInfo([]) => gtInfo() - #xtranslate hb_gtVersion([]) => hb_gt_Version() - - #xtranslate hb_isregex([]) => hb_isregexstring() - #xtranslate hb_pvalue([]) => pvalue() - #xtranslate hb_methodName([])=> methodName() - #xtranslate hb_libLoad([]) => libLoad() - #xtranslate hb_libFree([]) => libFree() - #xtranslate hb_adler32([]) => hb_checksum() - #xtranslate hb_setLastKey([])=> setLastKey() - #xtranslate hb_CStr([]) => CStr() - - #xtranslate hb_HexToNum([]) => HexToNum() - #xtranslate hb_NumToHex([]) => NumToHex() - #xtranslate hb_HexToStr([]) => HexToStr() - #xtranslate hb_StrToHex([]) => StrToHex() - - #xtranslate hb_AScan(,,[],[],) => AScan(,,,,) - #xtranslate hb_RAScan([]) => RAScan() - - #xtranslate hb_ISPOINTER( )=> ISPOINTER( ) - - #xtranslate hb_IniSetComment([]) => hb_SetIniComment() - #xtranslate hb_IniRead([]) => hb_ReadIni() - #xtranslate hb_IniWrite([]) => hb_WriteIni() - - /* Some statement endings */ - #xcommand ENDSEQUENCE => END - #xcommand ENDSWITCH => END - #xcommand END SWITCH => END - #xcommand ENDWITH => END - #xcommand END WITH => END - #xcommand END OBJECT => END - -#else - - #xtranslate gtSys => hb_gtSys - #xtranslate gtInfo([]) => hb_gtInfo() - #xtranslate hb_gt_Version([]) => hb_gtVersion() - - #xtranslate gtSetClipboard() => hb_gtInfo( GTI_CLIPBOARDDATA, ) - #xtranslate gtGetClipboard() => hb_gtInfo( GTI_CLIPBOARDDATA ) - #xtranslate gtGetClipBoardSize() => Len( hb_gtInfo( GTI_CLIPBOARDDATA ) ) - #xtranslate gtPasteClipBoard([]) => hb_gtInfo( GTI_CLIPBOARDPAST ) - #xtranslate gtProcessMessages() => NextKey() - #xtranslate gfxPrimitive([]) => hb_gfxPrimitive() - #xtranslate gfxText([]) => hb_gfxText() - - #xtranslate hb_isregexstring([]) => hb_isregex() - #xtranslate pvalue([]) => hb_pvalue() - #xtranslate methodName([]) => hb_methodName() - #xtranslate libLoad([]) => hb_libLoad() - #xtranslate libFree([]) => hb_libFree() - #xtranslate hb_checksum([]) => hb_adler32() - #xtranslate setLastKey([]) => hb_setLastKey() - #xtranslate CStr([]) => hb_CStr() - - #xtranslate HexToNum([]) => hb_HexToNum() - #xtranslate NumToHex([]) => hb_NumToHex() - #xtranslate HexToStr([]) => hb_HexToStr() - #xtranslate StrToHex([]) => hb_StrToHex() - - #xtranslate AScan(,,[],[],) => hb_AScan(,,,,) - #xtranslate RAScan([]) => hb_RAScan() - - #xtranslate ISPOINTER( ) => hb_ISPOINTER( ) - - #xtranslate hb_SetIniComment([]) => hb_IniSetComment() - #xtranslate hb_ReadIni([]) => hb_IniRead() - #xtranslate hb_WriteIni([]) => hb_IniWrite() - - #xtranslate Str(,[],[],)=> iif(, LTrim(Str()), Str()) - #xtranslate hb_CMDARGARGV([])=> hb_ARGV(0) - - /* Hash item functions */ - #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_HSETCASEMATCH() - #xtranslate HGETCASEMATCH([])=> hb_HCASEMATCH() - #xtranslate HSETAUTOADD([]) => hb_HSETAUTOADD() - #xtranslate HGETAUTOADD([]) => hb_HAUTOADD() - #xtranslate HALLOCATE([]) => hb_HALLOCATE() - #xtranslate HDEFAULT([]) => hb_HDEFAULT() - - /* Inet functions */ - #xtranslate INETINIT([]) => hb_INETINIT() - #xtranslate INETCLEANUP([]) => hb_INETCLEANUP() - #xtranslate INETCREATE([]) => hb_INETCREATE() - #xtranslate INETCLOSE([]) => hb_INETCLOSE() - #xtranslate INETFD([]) => hb_INETFD() - #xtranslate INETSTATUS([]) => hb_INETSTATUS() - #xtranslate INETERRORCODE([]) => hb_INETERRORCODE() - #xtranslate INETERRORDESC([]) => hb_INETERRORDESC() - #xtranslate INETCLEARERROR([]) => hb_INETCLEARERROR() - #xtranslate INETCOUNT([]) => hb_INETCOUNT() - #xtranslate INETADDRESS([]) => hb_INETADDRESS() - #xtranslate INETPORT([]) => hb_INETPORT() - #xtranslate INETSETTIMEOUT([]) => hb_INETTIMEOUT() - #xtranslate INETGETTIMEOUT([]) => hb_INETTIMEOUT() - #xtranslate INETCLEARTIMEOUT([]) => hb_INETCLEARTIMEOUT() - #xtranslate INETSETTIMELIMIT([]) => hb_INETTIMELIMIT() - #xtranslate INETGETTIMELIMIT([]) => hb_INETTIMELIMIT() - #xtranslate INETCLEARTIMELIMIT([]) => hb_INETCLEARTIMELIMIT() - #xtranslate INETSETPERIODCALLBACK([]) => hb_INETPERIODCALLBACK() - #xtranslate INETGETPERIODCALLBACK([]) => hb_INETPERIODCALLBACK() - #xtranslate INETCLEARPERIODCALLBACK([])=> hb_INETCLEARPERIODCALLBACK() - #xtranslate INETRECV([]) => hb_INETRECV() - #xtranslate INETRECVALL([]) => hb_INETRECVALL() - #xtranslate INETRECVLINE([]) => hb_INETRECVLINE() - #xtranslate INETRECVENDBLOCK([]) => hb_INETRECVENDBLOCK() - #xtranslate INETDATAREADY([]) => hb_INETDATAREADY() - #xtranslate INETSEND([]) => hb_INETSEND() - #xtranslate INETSENDALL([]) => hb_INETSENDALL() - #xtranslate INETGETHOSTS([]) => hb_INETGETHOSTS() - #xtranslate INETGETALIAS([]) => hb_INETGETALIAS() - #xtranslate INETSERVER([]) => hb_INETSERVER() - #xtranslate INETACCEPT([]) => hb_INETACCEPT() - #xtranslate INETCONNECT([]) => hb_INETCONNECT() - #xtranslate INETCONNECTIP([]) => hb_INETCONNECTIP() - #xtranslate INETDGRAMBIND([]) => hb_INETDGRAMBIND() - #xtranslate INETDGRAM([]) => hb_INETDGRAM() - #xtranslate INETDGRAMSEND([]) => hb_INETDGRAMSEND() - #xtranslate INETDGRAMRECV([]) => hb_INETDGRAMRECV() - #xtranslate INETCRLF([]) => hb_INETCRLF() - #xtranslate ISINETSOCKET([]) => HB_ISINETSOCKET() - #xtranslate INETDESTROY([]) => IIF( HB_ISINETSOCKET( ), ; - hb_INETCLOSE( ), ) - - /* THROW => generate error */ - #xtranslate THROW() => (Eval(ErrorBlock(), ), Break()) - - /* TEXT INTO */ - #xcommand TEXT INTO => #pragma __text|+=%s+HB_OSNEWLINE();:="" - - /* SWITCH ... ; case ... ; DEFAULT ; ... ; END */ - #xcommand DEFAULT => OTHERWISE - - /* TRY / CATCH / FINALLY / END */ - #xcommand TRY => BEGIN SEQUENCE WITH {|oErr| Break( oErr )} - #xcommand CATCH [] => RECOVER [USING ] <-oErr-> - #xcommand FINALLY => ALWAYS - - /* EXTENDED CODEBLOCKs */ - #xtranslate \<|[]| => {|| - #xcommand > [<*x*>] => } - - /* xHarbour operators: IN, HAS, LIKE, >>, <<, |, &, ^^ */ - #translate ( IN ) => ( () $ () ) - #translate ( HAS ) => ( HB_REGEXHAS( (), () ) ) - #translate ( LIKE ) => ( HB_REGEXLIKE( (), () ) ) - #translate ( \<\< ) => ( HB_BITSHIFT( (), () ) ) - #translate ( >> ) => ( HB_BITSHIFT( (), -() ) ) - #translate ( | ) => ( HB_BITOR( (), () ) ) - #translate ( & ) => ( HB_BITAND( (), () ) ) - #translate ( ^^ ) => ( HB_BITXOR( (), () ) ) - -#endif - -#endif /* __HARBOUR__ */