modify lib hbcom
Posted: Wed Dec 14, 2011 10:07 am
Staff have to modify the lib hbcom and I'm compiling giving errors but this hb_imbufsize FindIndex and, among other commands how do I use these commands with HMG and modify the lib hbcom.
HB_FUNC( INBUFSIZE ) // Find out how many chars are in input buffer
{
int nIdx ;
nIdx = FindIndex( hb_parnl( 1 ) ) ;
if ( nIdx != -1 )
hb_retnl( hb_inbufsize( nIdx ) );
else
hb_retnl( 0 ) ;
}
HB_FUNC( INBUFSIZE ) // Find out how many chars are in input buffer
{
int nIdx ;
nIdx = FindIndex( hb_parnl( 1 ) ) ;
if ( nIdx != -1 )
hb_retnl( hb_inbufsize( nIdx ) );
else
hb_retnl( 0 ) ;
}