2001-03-17 21:50 GMT+3 Alexander Kresin <alex@belacy.belgorod.su>

This commit is contained in:
Alexander S.Kresin
2001-03-17 19:03:06 +00:00
parent ff763a9ef8
commit 0d51a788ed
6 changed files with 35 additions and 6 deletions

View File

@@ -1,3 +1,16 @@
2001-03-17 21:50 GMT+3 Alexander Kresin <alex@belacy.belgorod.su>
+ contrib/Makefile
* Makefile
* Changes to forse contrib/libmisc to be compiled while make process
* tests/Makefile
* added again CONTRIBS=libmisc and readfile.prg moved to PRG_SOURCES
from BAD_PRG_SOURCES
* utils/hbmake/pickfile.prg
* names of include files changed to lower case ( to work under Unix )
* source/rdd/dbfntx/dbfntx1.c
* fixed format string in printf() to be compatible with other compilers
fixed determining of the length of numeric key
2001-03-16 16:10 UTC+0100 Ryszard Glab <rglab@imid.med.pl>
*doc/en/garbage.txt

View File

@@ -7,6 +7,7 @@ ROOT = ./
DIRS=\
include \
source \
contrib \
utils \
tests \
# samples \

10
harbour/contrib/Makefile Normal file
View File

@@ -0,0 +1,10 @@
#
# $Id$
#
ROOT = ../
DIRS=\
libmisc \
include $(ROOT)config/dir.cf

View File

@@ -1650,7 +1650,7 @@ static ERRCODE hb_ntxIndexCreate( LPNTXINDEX pIndex )
( LONG ) hb_numRound( hb_itemGetND( pItem ), 0 ) );
}
else
sprintf( szBuffer, "%0*.0*f", pTag->KeyLength,
sprintf( szBuffer, "%0*.*f", pTag->KeyLength,
pTag->KeyDec, hb_numRound( hb_itemGetND( pItem ),
pTag->KeyDec ) );
}
@@ -1659,7 +1659,7 @@ static ERRCODE hb_ntxIndexCreate( LPNTXINDEX pIndex )
if( pTag->KeyDec == 0 )
sprintf( szBuffer, "%0*li", pTag->KeyLength, hb_itemGetNL( pItem ) );
else
sprintf( szBuffer, "%0*.0*f", pTag->KeyLength,
sprintf( szBuffer, "%0*.*f", pTag->KeyLength,
pTag->KeyDec, hb_itemGetND( pItem ) );
}
szBuffer[ pTag->KeyLength ] = 0;
@@ -2233,6 +2233,8 @@ static ERRCODE ntxOrderCreate( NTXAREAP pArea, LPDBORDERCREATEINFO pOrderInfo )
case HB_IT_DOUBLE:
bType = 'N';
hb_itemGetNLen( pResult, (int*) &uiLen, (int*) &uiDec );
if( uiDec )
uiLen += uiDec + 1;
/* printf( "\nLength: %d %d",uiLen,uiDec ); */
break;

View File

@@ -8,6 +8,9 @@ endif
ROOT = ../
CONTRIBS=\
libmisc\
LIBS=\
debug \
vm \
@@ -98,6 +101,7 @@ PRG_SOURCES=\
passref.prg \
procline.prg \
procname.prg \
readfile.prg \
readhrb.prg \
recursiv.prg \
returns.prg \
@@ -167,7 +171,6 @@ BAD_PRG_SOURCES=\
mathtest.prg \
objarr.prg \
objasign.prg \
readfile.prg \
rtfclass.prg \
spawn.prg \
spawn2.prg \

View File

@@ -70,9 +70,9 @@
*/
#include "COMMON.CH"
#include "BOX.CH"
#include "DIRECTRY.CH"
#include "common.ch"
#include "box.ch"
#include "directry.ch"
*+±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±
*+