hbarg.c |
Type | Function | Source | Line |
CLIPPER | HB_ARGC( void )
CLIPPER HB_ARGC( void )
{
_retni( __argc - 1 );
}
| hbarg.c | 58 |
CLIPPER | HB_ARGV( void )
CLIPPER HB_ARGV( void )
{
if( ISNUM( 1 ) )
{
int argc = _parni( 1 );
_retc( ( argc >= 0 && argc < __argc ) ? __argv[ argc ] : "" );
}
else
_retc( "" );
}
| hbarg.c | 63 |
hbcolind.c |
Type | Function | Source | Line |
CLIPPER | HB_COLORIN( void )
CLIPPER HB_COLORIN( void )
{
if( ISCHAR( 1 ) && ISNUM( 2 ) )
{
char * pszColor = _parc( 1 );
USHORT uiColorPos;
USHORT uiColorLen;
USHORT uiColorIndex = ( USHORT ) _parni( 2 );
/* Skip the given number of commas */
for( uiColorPos = 0 ; pszColor[ uiColorPos ] != '\0' && uiColorIndex > 0 ; uiColorPos++ )
{
if( pszColor[ uiColorPos ] == ',' )
uiColorIndex--;
}
/* if found, continue */
if( uiColorIndex == 0 )
{
/* Skip the spaces after the comma */
while( pszColor[ uiColorPos ] == ' ' ) uiColorPos++;
/* Search for next comma or end of string */
uiColorLen = 0;
while( pszColor[ uiColorPos + uiColorLen ] != '\0' &&
pszColor[ uiColorPos + uiColorLen ] != ',' ) uiColorLen++;
/* Skip the trailing spaces */
while( uiColorLen > 0 &&
pszColor[ uiColorPos + uiColorLen - 1 ] == ' ' ) uiColorLen--;
/* Return the string */
_retclen( pszColor + uiColorPos, uiColorLen );
}
else
_retc( "" );
}
else
_retc( "" );
}
| hbcolind.c | 55 |
hbstod.c |
Type | Function | Source | Line |
CLIPPER | HB_STOD( void )
CLIPPER HB_STOD( void )
{
/* The length check is a fix to avoid buggy behaviour of _retds() */
_retds( ( ISCHAR( 1 ) && _parclen( 1 ) == 8 ) ? _parc( 1 ) : " " );
}
| hbstod.c | 55 |
hbstodx.c |
Type | Function | Source | Line |
CLIPPER | STOD( void )
CLIPPER STOD( void )
{
/* The length check is a fix to avoid buggy behaviour of _retds() */
_retds( ( ISCHAR( 1 ) && _parclen( 1 ) == 8 ) ? _parc( 1 ) : " " );
}
| hbstodx.c | 55 |
hbclip.prg |
Type | Function | Source | Line |
FUNCTION | HB_OSNEWLINE()
FUNCTION HB_OSNEWLINE()
RETURN Chr( 13 ) + Chr( 10 )
| hbclip.prg | 55 |
FUNCTION | HB_ANSITOOEM( cString )
FUNCTION HB_ANSITOOEM( cString )
RETURN cString
| hbclip.prg | 58 |
FUNCTION | HB_OEMTOANSI( cString )
FUNCTION HB_OEMTOANSI( cString )
RETURN cString
| hbclip.prg | 61 |
FUNCTION | HB_TRACESTATE( nValue )
FUNCTION HB_TRACESTATE( nValue )
RETURN 0
| hbclip.prg | 64 |
FUNCTION | HB_TRACELEVEL( nValue )
FUNCTION HB_TRACELEVEL( nValue )
RETURN 0
| hbclip.prg | 67 |
FUNCTION | HB_COMPILER()
FUNCTION HB_COMPILER()
RETURN iif( "5.3" $ Version(), "Microsoft C 8.0", "Microsoft C 5.1" )
| hbclip.prg | 70 |
hbkeyput.prg |
Type | Function | Source | Line |
PROCEDURE | HB_KEYPUT( nKey )
PROCEDURE HB_KEYPUT( nKey )
KEYBOARD Chr( nKey )
RETURN
| hbkeyput.prg | 56 |
hbshadow.prg |
Type | Function | Source | Line |
FUNCTION | HB_SHADOW( t, l, b, r, a )
FUNCTION HB_SHADOW( t, l, b, r, a )
RETURN dbgShadow( t, l, b, r, a )
| hbshadow.prg | 55 |
hbvaltoc.prg |
Type | Function | Source | Line |
FUNCTION | HB_VALTOSTR( xValue )
FUNCTION HB_VALTOSTR( xValue )
LOCAL cType := ValType( xValue )
DO CASE
CASE cType $ "CM" ; RETURN xValue
CASE cType == "D" ; RETURN CToD( xValue )
CASE cType == "N" ; RETURN Str( xValue )
CASE cType == "L" ; RETURN iif( xValue, ".T.", ".F." )
CASE cType == "U" ; RETURN "NIL"
ENDCASE
RETURN ""
| hbvaltoc.prg | 53 |