/* * Harbour compatibility header for * other Clipper compatible languages * * Copyright 2013 Viktor Szakats (vszakats.net/harbour) * */ #ifndef __HARBOUR__ #ifndef __XPP__ #ifndef __CLIP__ #ifndef FlagShip #define __CLIPPER__ #endif #endif #endif #ifdef __CLIPPER__ #ifndef __PLATFORM__DOS #define __PLATFORM__DOS #endif #endif #xtranslate hb_eol() => ( Chr( 13 ) + Chr( 10 ) ) #xtranslate hb_ps() => "\" #xtranslate hb_osFileMask() => "*.*" #xtranslate hb_run( ) => __Run( ) #xtranslate hb_dbExists( ) => File( ) #xtranslate hb_dbDrop( ) => FErase( ) #xtranslate HB_ISSTRING( ) => ( ValType( ) $ "CM" ) #xtranslate HB_ISNUMERIC( ) => ( ValType( ) == "N" ) #xtranslate HB_ISLOGICAL( ) => ( ValType( ) == "L" ) #xtranslate HB_ISARRAY( ) => ( ValType( ) == "A" ) #xtranslate HB_ISOBJECT( ) => ( ValType( ) == "O" ) #xtranslate HB_ISBLOCK( ) => ( ValType( ) == "B" ) #xtranslate HB_ISEVALITEM( ) => ( ValType( ) == "B" ) #xtranslate hb_keyCode( ) => Asc( ) #xtranslate hb_keyChar( ) => Chr( ) #xtranslate hb_keyPut( ) => __Keyboard( Chr( ) ) #xtranslate hb_keyIns( ) => __Keyboard( Chr( ) ) #xtranslate hb_BPeek( ,

) => Asc( SubStr( ,

, 1 ) ) #xtranslate hb_BCode( ) => Asc( ) #xtranslate hb_BChar( ) => Chr( ) #xtranslate hb_BLen( ) => Len( ) #xtranslate hb_BSubStr( ,

[, ] ) => SubStr( ,

, ) #xtranslate hb_BLeft( , ) => Left( , ) #xtranslate hb_BRight( , ) => Right( , ) #xtranslate hb_BStrTran( , [, ] ) => StrTran( , , ) #xtranslate hb_ntos( ) => LTrim( Str( ) ) #xtranslate hb_SToD( [] ) => Eval( {| s, df, dt | df := Set( _SET_DATEFORMAT, "YYYY/MM/DD" ), dt := CToD( Stuff( Stuff( s, 7, 0, "/" ), 5, 0, "/" ) ), Set( _SET_DATEFORMAT, df ), dt }, ) #xtranslate hb_Compiler() => "C" #xtranslate hb_cdpIsUTF8( [] ) => .F. #xtranslate hb_cdpCharMax() => 255 #xtranslate hb_IsFunction( c ) => ( Type( c + "()" ) == "UI" ) #xtranslate hb_NToColor( ) => LTrim( Str( Int( % 16 ), 2 ) ) + "/" + LTrim( Str( Int( / 16 ), 2 ) ) #xtranslate __mvScope() => -1 #xtranslate HB_SYMBOL_UNUSED( ) => #endif