20000415-20:46 GMT+1 Victor Szakats <info@szelvesz.hu>
This commit is contained in:
@@ -37,8 +37,6 @@
|
||||
|
||||
#include <time.h>
|
||||
#include <ctype.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include "hbapi.h"
|
||||
#include "hbapiitm.h"
|
||||
@@ -252,12 +250,12 @@ typedef struct
|
||||
typedef SORTINFO * LPSORTINFO;
|
||||
|
||||
|
||||
HB_FUNC(_DBFCDX);
|
||||
HB_FUNC(DBFCDX_GETFUNCTABLE);
|
||||
extern HB_FUNC( _DBFCDX );
|
||||
extern HB_FUNC( DBFCDX_GETFUNCTABLE );
|
||||
|
||||
HB_INIT_SYMBOLS_BEGIN( dbfcdx1__InitSymbols )
|
||||
{ "_DBFCDX", HB_FS_PUBLIC, HB_FUNCNAME(_DBFCDX), NULL },
|
||||
{ "DBFCDX_GETFUNCTABLE", HB_FS_PUBLIC, HB_FUNCNAME(DBFCDX_GETFUNCTABLE), NULL }
|
||||
{ "_DBFCDX", HB_FS_PUBLIC, HB_FUNCNAME( _DBFCDX ), NULL },
|
||||
{ "DBFCDX_GETFUNCTABLE", HB_FS_PUBLIC, HB_FUNCNAME( DBFCDX_GETFUNCTABLE ), NULL }
|
||||
HB_INIT_SYMBOLS_END( dbfcdx1__InitSymbols )
|
||||
#if ! defined(__GNUC__) && ! defined(_MSC_VER)
|
||||
#pragma startup dbfcdx1__InitSymbols
|
||||
@@ -1928,7 +1926,7 @@ static void hb_cdxIndexAddTag( LPINDEXINFO pIndex, char * szTagName, char * szKe
|
||||
pLastTag = NULL;
|
||||
while( pTag != NULL )
|
||||
{
|
||||
if( stricmp( pTag->TagName, szTagName ) == 0 )
|
||||
if( hb_stricmp( pTag->TagName, szTagName ) == 0 )
|
||||
{
|
||||
pKey->Tag = pTag->TagBlock;
|
||||
if( hb_cdxTagKeyFind( pIndex->CompoundTag, pKey ) > 0 )
|
||||
@@ -2078,7 +2076,7 @@ static void hb_cdxSortInsertWord( LPSORTINFO pSort, LONG Tag, char * Value )
|
||||
SHORT v;
|
||||
LPSORTDATA wx;
|
||||
|
||||
_ltoa( Tag, s + 1, 10 );
|
||||
hb_cdxltoa( Tag, s + 1, 10 );
|
||||
w = strlen( Value );
|
||||
if( pSort->NodeLimit - pSort->NodeCur < w + strlen( s + 1 ) + 1 )
|
||||
{
|
||||
@@ -3284,11 +3282,11 @@ static RDDFUNCS cdxTable = { cdxBof,
|
||||
cdxWhoCares
|
||||
};
|
||||
|
||||
HB_FUNC(_DBFCDX)
|
||||
HB_FUNC( _DBFCDX )
|
||||
{
|
||||
}
|
||||
|
||||
HB_FUNC(DBFCDX_GETFUNCTABLE)
|
||||
HB_FUNC( DBFCDX_GETFUNCTABLE )
|
||||
{
|
||||
RDDFUNCS * pTable;
|
||||
USHORT * uiCount;
|
||||
|
||||
@@ -91,14 +91,12 @@ static int * s_pColor;
|
||||
|
||||
/* gt API functions */
|
||||
|
||||
#define COLOR_COUNT_DEF 5
|
||||
|
||||
void hb_gtInit( int s_iFilenoStdin, int s_iFilenoStdout, int s_iFilenoStderr )
|
||||
{
|
||||
HB_TRACE(HB_TR_DEBUG, ("hb_gtInit()"));
|
||||
|
||||
s_pColor = ( int * ) hb_xgrab( COLOR_COUNT_DEF * sizeof( int ) );
|
||||
s_uiColorCount = COLOR_COUNT_DEF;
|
||||
s_pColor = ( int * ) hb_xgrab( ( HB_CLR_MAX_ + 1 ) * sizeof( int ) );
|
||||
s_uiColorCount = HB_CLR_MAX_ + 1;
|
||||
|
||||
hb_gt_Init( s_iFilenoStdin, s_iFilenoStdout, s_iFilenoStderr );
|
||||
|
||||
@@ -611,7 +609,7 @@ USHORT hb_gtSetColorStr( char * szColorString )
|
||||
if( nPos > 0 && nPos < 4 )
|
||||
s_pColor[ 4 ] = s_pColor[ 1 ];
|
||||
|
||||
s_uiColorIndex = CLR_STANDARD; /* hb_gtColorSelect( CLR_STANDARD ); */
|
||||
s_uiColorIndex = HB_CLR_STANDARD; /* hb_gtColorSelect( HB_CLR_STANDARD ); */
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user