20000419-00:28 GMT+1 Victor Szakats <info@szelvesz.hu>

This commit is contained in:
Viktor Szakats
2000-04-18 23:30:42 +00:00
parent e21bfe779a
commit 4e36c6b41f
23 changed files with 313 additions and 70 deletions

View File

@@ -1,9 +1,55 @@
20000419-00:28 GMT+1 Victor Szakats <info@szelvesz.hu>
* source/rtl/gtcrs/gtcrs.c
! Removed "Linux" from the version string.
* source/rtl/dateshb.c
% Local variables removed, non-standard string conversion, slow sprintf()
call removed. Now using hb_retd() to return the value. It's faster and
smaller now.
* source/lang/Makefile
* makefile.bc
+ New languages added.
* include/hbver.h
* Date bumped.
* include/set.ch
* __SET_COUNT_HB -> HB_SET_COUNT
* bin/bld.*
! Redone some undocumented changes in the build batch files.
+ tests/testcdx.prg
* tests/Makefile
+ New test file added.
* source/rtl/gt*/gt*.c
! All hb_gt_xPutch() functions made static.
* source/rtl/gtapi.c
- Removed obsolete #define (hb_gtRepChar() related)
; by Jose Lalin
* source/vm/asort.c
% hb_itemLess fixed to handle LOGICAL values that were missed from
first implementation
* tests/
+ tstasort.prg
little test which gives the same results when asorting without
codeblock and shows an error with codeblock.
+ vmasort.prg
massive VM and aSort test
C53 fails when executed with a value greater than 5.
20000418-19:30 GMT-3 Luiz Rafael Culik <culik@sl.conex.net)
*doc/en/diskspac.txt
doc/en/file.txt
doc/en/set.txt
*Fixed doc by fixing the errors reported by chen
>>>>>>> 1.1996
2000-04-18 14:55 GMT-4 David G. Holm <dholm@jsd-llc.com>
* source/rtl/gtwin/gtwin.c
! Don't generate a key code for Caps Lock.

View File

@@ -101,19 +101,21 @@ rem if "%HB_GT_LIB%" == "" set HB_GT_LIB=
:A_DOS
if not "%HB_GT_LIB%" == "" set _HB_GT_LIB=%HB_GT_LIB%
if not "%HB_ARCHITECTURE%" == "dos" goto A_W32
if "%HB_GT_LIB%" == "" set HB_GT_LIB=gtdos
if "%HB_GT_LIB%" == "" set _HB_GT_LIB=gtdos
if not "%HB_COMPILER%" == "bcc16" goto A_DOS_BCC16_NOT
echo -O2 -mh %CFLAGS% -I..\include -L..\lib > build.tmp
echo -O2 -d -mh %CFLAGS% -I..\include -L..\lib > build.tmp
echo -e%1.exe %1.c >> build.tmp
echo tools.lib >> build.tmp
echo debug.lib >> build.tmp
echo vm.lib >> build.tmp
echo rtl.lib >> build.tmp
echo %HB_GT_LIB%.lib >> build.tmp
echo %_HB_GT_LIB%.lib >> build.tmp
echo lang.lib >> build.tmp
echo rdd.lib >> build.tmp
echo macro.lib >> build.tmp
@@ -134,7 +136,7 @@ rem if "%HB_GT_LIB%" == "" set HB_GT_LIB=
echo -ldebug >> build.tmp
echo -lvm >> build.tmp
echo -lrtl >> build.tmp
echo -l%HB_GT_LIB% >> build.tmp
echo -l%_HB_GT_LIB% >> build.tmp
echo -llang >> build.tmp
echo -lrdd >> build.tmp
echo -lrtl >> build.tmp
@@ -150,42 +152,41 @@ rem if "%HB_GT_LIB%" == "" set HB_GT_LIB=
:A_DOS_DJGPP_NOT
if "%HB_COMPILER%" == "rsx32" gcc %1.c -Zrsx32 %CFLAGS% -I..\include -L..\lib -ltools -ldebug -lvm -lrtl -l%HB_GT_LIB% -llang -lrdd -lrtl -lvm -lmacro -lpp -ldbfntx -ldbfcdx -lcommon
if "%HB_COMPILER%" == "rsx32" gcc %1.c -Zrsx32 %CFLAGS% -I..\include -L..\lib -ltools -ldebug -lvm -lrtl -l%_HB_GT_LIB% -llang -lrdd -lrtl -lvm -lmacro -lpp -ldbfntx -ldbfcdx -lcommon
goto END
:A_W32
if not "%HB_ARCHITECTURE%" == "w32" goto A_OS2
if "%HB_GT_LIB%" == "" set HB_GT_LIB=gtwin
if "%HB_GT_LIB%" == "" set _HB_GT_LIB=gtwin
if "%HB_COMPILER%" == "bcc32" bcc32 -O2 %CFLAGS% -I..\include -L..\lib %1.c tools.lib debug.lib vm.lib rtl.lib %HB_GT_LIB%.lib lang.lib rdd.lib macro.lib pp.lib dbfntx.lib dbfcdx.lib common.lib
if "%HB_COMPILER%" == "gcc" gcc %1.c -o%1.exe %CFLAGS% -I..\include -L..\lib -ltools -ldebug -lvm -lrtl -l%HB_GT_LIB% -llang -lrdd -lrtl -lvm -lmacro -lpp -ldbfntx -ldbfcdx -lcommon
if "%HB_COMPILER%" == "mingw32" gcc %1.c -o%1.exe %CFLAGS% -mno-cygwin -I..\include -L..\lib -ltools -ldebug -lvm -lrtl -l%HB_GT_LIB% -llang -lrdd -lrtl -lvm -lmacro -lpp -ldbfntx -ldbfcdx -lcommon
if "%HB_COMPILER%" == "rsxnt" gcc %1.c -Zwin32 %CFLAGS% -I..\include -L..\lib -ltools -ldebug -lvm -lrtl -l%HB_GT_LIB% -llang -lrdd -lrtl -lvm -lmacro -lpp -ldbfntx -ldbfcdx -lcommon
if "%HB_COMPILER%" == "msvc" cl -Fd..\bin\harbour -w -Zi -TP -GZ -GA %CFLAGS% -I..\include %1.c /link /subsystem:CONSOLE ..\lib\tools.lib ..\lib\debug.lib ..\lib\vm.lib ..\lib\rtl.lib ..\lib\%HB_GT_LIB%.lib ..\lib\lang.lib ..\lib\rdd.lib ..\lib\macro.lib ..\lib\pp.lib ..\lib\dbfntx.lib ..\lib\dbfcdx.lib ..\lib\common.lib user32.lib
if "%HB_COMPILER%" == "bcc32" bcc32 -O2 -d %CFLAGS% -I..\include -L..\lib %1.c tools.lib debug.lib vm.lib rtl.lib %_HB_GT_LIB%.lib lang.lib rdd.lib macro.lib pp.lib dbfntx.lib dbfcdx.lib common.lib
if "%HB_COMPILER%" == "gcc" gcc %1.c -o%1.exe %CFLAGS% -I..\include -L..\lib -ltools -ldebug -lvm -lrtl -l%_HB_GT_LIB% -llang -lrdd -lrtl -lvm -lmacro -lpp -ldbfntx -ldbfcdx -lcommon
if "%HB_COMPILER%" == "mingw32" gcc %1.c -o%1.exe %CFLAGS% -mno-cygwin -I..\include -L..\lib -ltools -ldebug -lvm -lrtl -l%_HB_GT_LIB% -llang -lrdd -lrtl -lvm -lmacro -lpp -ldbfntx -ldbfcdx -lcommon
if "%HB_COMPILER%" == "rsxnt" gcc %1.c -Zwin32 %CFLAGS% -I..\include -L..\lib -ltools -ldebug -lvm -lrtl -l%_HB_GT_LIB% -llang -lrdd -lrtl -lvm -lmacro -lpp -ldbfntx -ldbfcdx -lcommon
if "%HB_COMPILER%" == "msvc" cl -TP -W3 %CFLAGS% -I..\include %1.c /link /subsystem:CONSOLE ..\lib\tools.lib ..\lib\debug.lib ..\lib\vm.lib ..\lib\rtl.lib ..\lib\%_HB_GT_LIB%.lib ..\lib\lang.lib ..\lib\rdd.lib ..\lib\macro.lib ..\lib\pp.lib ..\lib\dbfntx.lib ..\lib\dbfcdx.lib ..\lib\common.lib user32.lib
if "%HB_COMPILER%" == "msvc" echo Ignore LNK4033 warning
if "%HB_GT_LIB%" == "gtwin" set HB_GT_LIB=
goto END
:A_OS2
if not "%HB_ARCHITECTURE%" == "os2" goto A_LINUX
if "%HB_GT_LIB%" == "" set HB_GT_LIB=gtos2
if "%HB_GT_LIB%" == "" set _HB_GT_LIB=gtos2
if "%HB_COMPILER%" == "gcc" gcc %1.c %CFLAGS% -I..\include -L..\lib -ltools -ldebug -lvm -lrtl -l%HB_GT_LIB% -llang -lrdd -lrtl -lvm -lmacro -lpp -ldbfntx -ldbfcdx -lcommon
if "%HB_COMPILER%" == "icc" icc /Gs+ /W2 /Se /Sd+ /Ti+ /C- /Tp %CFLAGS% -I..\include %1.c ..\lib\tools.lib ..\lib\debug.lib ..\lib\vm.lib ..\lib\rtl.lib ..\lib\%HB_GT_LIB%.lib ..\lib\lang.lib ..\lib\rdd.lib ..\lib\rtl.lib ..\lib\vm.lib ..\lib\macro.lib ..\lib\pp.lib ..\lib\dbfntx.lib ..\lib\dbfcdx.lib ..\lib\common.lib
if "%HB_COMPILER%" == "gcc" gcc %1.c %CFLAGS% -I..\include -L..\lib -ltools -ldebug -lvm -lrtl -l%_HB_GT_LIB% -llang -lrdd -lrtl -lvm -lmacro -lpp -ldbfntx -ldbfcdx -lcommon
if "%HB_COMPILER%" == "icc" icc /Gs+ /W2 /Se /Sd+ /Ti+ /C- /Tp %CFLAGS% -I..\include %1.c ..\lib\tools.lib ..\lib\debug.lib ..\lib\vm.lib ..\lib\rtl.lib ..\lib\%_HB_GT_LIB%.lib ..\lib\lang.lib ..\lib\rdd.lib ..\lib\rtl.lib ..\lib\vm.lib ..\lib\macro.lib ..\lib\pp.lib ..\lib\dbfntx.lib ..\lib\dbfcdx.lib ..\lib\common.lib
goto END
:A_LINUX
if not "%HB_ARCHITECTURE%" == "linux" goto BAD_ARCH
if "%HB_GT_LIB%" == "" set HB_GT_LIB=gtstd
if "%HB_GT_LIB%" == "" set _HB_GT_LIB=gtstd
if "%HB_COMPILER%" == "gcc" gcc %1.c %CFLAGS% -I../include -L../lib -ltools -ldebug -lvm -lrtl -l%HB_GT_LIB% -llang -lrdd -lrtl -lvm -lmacro -lpp -ldbfntx -ldbfcdx -lcommon
if "%HB_COMPILER%" == "gcc" gcc %1.c %CFLAGS% -I../include -L../lib -ltools -ldebug -lvm -lrtl -l%_HB_GT_LIB% -llang -lrdd -lrtl -lvm -lmacro -lpp -ldbfntx -ldbfcdx -lcommon
goto END
:CLEANUP

View File

@@ -101,19 +101,21 @@ rem if "%HB_GT_LIB%" == "" set HB_GT_LIB=
:A_DOS
if not "%HB_GT_LIB%" == "" set _HB_GT_LIB=%HB_GT_LIB%
if not "%HB_ARCHITECTURE%" == "dos" goto A_W32
if "%HB_GT_LIB%" == "" set HB_GT_LIB=gtdos
if "%HB_GT_LIB%" == "" set _HB_GT_LIB=gtdos
if not "%HB_COMPILER%" == "bcc16" goto A_DOS_BCC16_NOT
echo -O2 -mh %CFLAGS% -I..\include -L..\lib > build.tmp
echo -O2 -d -mh %CFLAGS% -I..\include -L..\lib > build.tmp
echo -e%1.exe %1.c >> build.tmp
echo tools.lib >> build.tmp
echo debug.lib >> build.tmp
echo vm.lib >> build.tmp
echo rtl.lib >> build.tmp
echo %HB_GT_LIB%.lib >> build.tmp
echo %_HB_GT_LIB%.lib >> build.tmp
echo lang.lib >> build.tmp
echo rdd.lib >> build.tmp
echo macro.lib >> build.tmp
@@ -134,7 +136,7 @@ rem if "%HB_GT_LIB%" == "" set HB_GT_LIB=
echo -ldebug >> build.tmp
echo -lvm >> build.tmp
echo -lrtl >> build.tmp
echo -l%HB_GT_LIB% >> build.tmp
echo -l%_HB_GT_LIB% >> build.tmp
echo -llang >> build.tmp
echo -lrdd >> build.tmp
echo -lrtl >> build.tmp
@@ -150,40 +152,41 @@ rem if "%HB_GT_LIB%" == "" set HB_GT_LIB=
:A_DOS_DJGPP_NOT
if "%HB_COMPILER%" == "rsx32" gcc %1.c -Zrsx32 %CFLAGS% -I..\include -L..\lib -ltools -ldebug -lvm -lrtl -l%HB_GT_LIB% -llang -lrdd -lrtl -lvm -lmacro -lpp -ldbfntx -ldbfcdx -lcommon
if "%HB_COMPILER%" == "rsx32" gcc %1.c -Zrsx32 %CFLAGS% -I..\include -L..\lib -ltools -ldebug -lvm -lrtl -l%_HB_GT_LIB% -llang -lrdd -lrtl -lvm -lmacro -lpp -ldbfntx -ldbfcdx -lcommon
goto END
:A_W32
if not "%HB_ARCHITECTURE%" == "w32" goto A_OS2
if "%HB_GT_LIB%" == "" set HB_GT_LIB=gtwin
if "%HB_GT_LIB%" == "" set _HB_GT_LIB=gtwin
if "%HB_COMPILER%" == "bcc32" bcc32 -O2 %CFLAGS% -I..\include -L..\lib %1.c tools.lib debug.lib vm.lib rtl.lib %HB_GT_LIB%.lib lang.lib rdd.lib macro.lib pp.lib dbfntx.lib dbfcdx.lib common.lib
if "%HB_COMPILER%" == "gcc" gcc %1.c -o%1.exe %CFLAGS% -I..\include -L..\lib -ltools -ldebug -lvm -lrtl -l%HB_GT_LIB% -llang -lrdd -lrtl -lvm -lmacro -lpp -ldbfntx -ldbfcdx -lcommon
if "%HB_COMPILER%" == "mingw32" gcc %1.c -o%1.exe %CFLAGS% -mno-cygwin -I..\include -L..\lib -ltools -ldebug -lvm -lrtl -l%HB_GT_LIB% -llang -lrdd -lrtl -lvm -lmacro -lpp -ldbfntx -ldbfcdx -lcommon
if "%HB_COMPILER%" == "rsxnt" gcc %1.c -Zwin32 %CFLAGS% -I..\include -L..\lib -ltools -ldebug -lvm -lrtl -l%HB_GT_LIB% -llang -lrdd -lrtl -lvm -lmacro -lpp -ldbfntx -ldbfcdx -lcommon
if "%HB_COMPILER%" == "msvc" cl -Fd..\bin\harbour -w -Zi -TP -GZ -GA %CFLAGS% -I..\include %1.c /link /subsystem:CONSOLE ..\lib\tools.lib ..\lib\debug.lib ..\lib\vm.lib ..\lib\rtl.lib ..\lib\%HB_GT_LIB%.lib ..\lib\lang.lib ..\lib\rdd.lib ..\lib\macro.lib ..\lib\pp.lib ..\lib\dbfntx.lib ..\lib\dbfcdx.lib ..\lib\common.lib user32.lib
if "%HB_COMPILER%" == "bcc32" bcc32 -O2 -d %CFLAGS% -I..\include -L..\lib %1.c tools.lib debug.lib vm.lib rtl.lib %_HB_GT_LIB%.lib lang.lib rdd.lib macro.lib pp.lib dbfntx.lib dbfcdx.lib common.lib
if "%HB_COMPILER%" == "gcc" gcc %1.c -o%1.exe %CFLAGS% -I..\include -L..\lib -ltools -ldebug -lvm -lrtl -l%_HB_GT_LIB% -llang -lrdd -lrtl -lvm -lmacro -lpp -ldbfntx -ldbfcdx -lcommon
if "%HB_COMPILER%" == "mingw32" gcc %1.c -o%1.exe %CFLAGS% -mno-cygwin -I..\include -L..\lib -ltools -ldebug -lvm -lrtl -l%_HB_GT_LIB% -llang -lrdd -lrtl -lvm -lmacro -lpp -ldbfntx -ldbfcdx -lcommon
if "%HB_COMPILER%" == "rsxnt" gcc %1.c -Zwin32 %CFLAGS% -I..\include -L..\lib -ltools -ldebug -lvm -lrtl -l%_HB_GT_LIB% -llang -lrdd -lrtl -lvm -lmacro -lpp -ldbfntx -ldbfcdx -lcommon
if "%HB_COMPILER%" == "msvc" cl -TP -W3 %CFLAGS% -I..\include %1.c /link /subsystem:CONSOLE ..\lib\tools.lib ..\lib\debug.lib ..\lib\vm.lib ..\lib\rtl.lib ..\lib\%_HB_GT_LIB%.lib ..\lib\lang.lib ..\lib\rdd.lib ..\lib\macro.lib ..\lib\pp.lib ..\lib\dbfntx.lib ..\lib\dbfcdx.lib ..\lib\common.lib user32.lib
if "%HB_COMPILER%" == "msvc" echo Ignore LNK4033 warning
goto END
:A_OS2
if not "%HB_ARCHITECTURE%" == "os2" goto A_LINUX
if "%HB_GT_LIB%" == "" set HB_GT_LIB=gtos2
if "%HB_GT_LIB%" == "" set _HB_GT_LIB=gtos2
if "%HB_COMPILER%" == "gcc" gcc %1.c %CFLAGS% -I..\include -L..\lib -ltools -ldebug -lvm -lrtl -l%HB_GT_LIB% -llang -lrdd -lrtl -lvm -lmacro -lpp -ldbfntx -ldbfcdx -lcommon
if "%HB_COMPILER%" == "icc" icc /Gs+ /W2 /Se /Sd+ /Ti+ /C- /Tp %CFLAGS% -I..\include %1.c ..\lib\tools.lib ..\lib\debug.lib ..\lib\vm.lib ..\lib\rtl.lib ..\lib\%HB_GT_LIB%.lib ..\lib\lang.lib ..\lib\rdd.lib ..\lib\rtl.lib ..\lib\vm.lib ..\lib\macro.lib ..\lib\pp.lib ..\lib\dbfntx.lib ..\lib\dbfcdx.lib ..\lib\common.lib
if "%HB_COMPILER%" == "gcc" gcc %1.c %CFLAGS% -I..\include -L..\lib -ltools -ldebug -lvm -lrtl -l%_HB_GT_LIB% -llang -lrdd -lrtl -lvm -lmacro -lpp -ldbfntx -ldbfcdx -lcommon
if "%HB_COMPILER%" == "icc" icc /Gs+ /W2 /Se /Sd+ /Ti+ /C- /Tp %CFLAGS% -I..\include %1.c ..\lib\tools.lib ..\lib\debug.lib ..\lib\vm.lib ..\lib\rtl.lib ..\lib\%_HB_GT_LIB%.lib ..\lib\lang.lib ..\lib\rdd.lib ..\lib\rtl.lib ..\lib\vm.lib ..\lib\macro.lib ..\lib\pp.lib ..\lib\dbfntx.lib ..\lib\dbfcdx.lib ..\lib\common.lib
goto END
:A_LINUX
if not "%HB_ARCHITECTURE%" == "linux" goto BAD_ARCH
if "%HB_GT_LIB%" == "" set HB_GT_LIB=gtstd
if "%HB_GT_LIB%" == "" set _HB_GT_LIB=gtstd
if "%HB_COMPILER%" == "gcc" gcc %1.c %CFLAGS% -I../include -L../lib -ltools -ldebug -lvm -lrtl -l%HB_GT_LIB% -llang -lrdd -lrtl -lvm -lmacro -lpp -ldbfntx -ldbfcdx -lcommon
if "%HB_COMPILER%" == "gcc" gcc %1.c %CFLAGS% -I../include -L../lib -ltools -ldebug -lvm -lrtl -l%_HB_GT_LIB% -llang -lrdd -lrtl -lvm -lmacro -lpp -ldbfntx -ldbfcdx -lcommon
goto END
:CLEANUP

View File

@@ -81,10 +81,10 @@ else
if [ "$HB_ARCHITECTURE" == "dos" ]; then
if [ -z "$HB_GT_LIB" ]; then export HB_GT_LIB=gtdos; fi
if [ -z "$HB_GT_LIB" ]; then HB_GT_LIB=gtdos; fi
if [ "$HB_COMPILER" == "bcc16" ]; then
bcc -O2 -mh $CFLAGS -I..\include -L..\lib $1.c tools.lib debug.lib vm.lib rtl.lib $HB_GT_LIB.lib lang.lib rdd.lib macro.lib pp.lib dbfntx.lib dbfcdx.lib common.lib
bcc -O2 -mh -d $CFLAGS -I..\include -L..\lib $1.c tools.lib debug.lib vm.lib rtl.lib $HB_GT_LIB.lib lang.lib rdd.lib macro.lib pp.lib dbfntx.lib dbfcdx.lib common.lib
elif [ "$HB_COMPILER" == "djgpp" ]; then
gcc $1.c -o$1.exe $CFLAGS -I..\include -L..\lib -ltools -ldebug -lvm -lrtl -l$HB_GT_LIB -llang -lrdd -lrtl -lvm -lmacro -lpp -ldbfnt -ldbfcd -lcommo
elif [ "$HB_COMPILER" == "rsx32" ]; then
@@ -95,10 +95,10 @@ else
elif [ "$HB_ARCHITECTURE" == "w32" ]; then
if [ -z "$HB_GT_LIB" ]; then export HB_GT_LIB=gtwin; fi
if [ -z "$HB_GT_LIB" ]; then HB_GT_LIB=gtwin; fi
if [ "$HB_COMPILER" == "bcc32" ]; then
bcc32 -O2 $CFLAGS -I..\include -L..\lib $1.c tools.lib debug.lib vm.lib rtl.lib $HB_GT_LIB.lib lang.lib rdd.lib macro.lib pp.lib dbfntx.lib dbfcdx.lib common.lib
bcc32 -O2 -d $CFLAGS -I..\include -L..\lib $1.c tools.lib debug.lib vm.lib rtl.lib $HB_GT_LIB.lib lang.lib rdd.lib macro.lib pp.lib dbfntx.lib dbfcdx.lib common.lib
elif [ "$HB_COMPILER" == "gcc" ]; then
gcc $1.c -o$1.exe $CFLAGS -I..\include -L..\lib -ltools -ldebug -lvm -lrtl -l$HB_GT_LIB -llang -lrdd -lrtl -lvm -lmacro -lpp -ldbfntx -ldbfcdx -lcommon
elif [ "$HB_COMPILER" == "mingw32" ]; then
@@ -106,7 +106,7 @@ else
elif [ "$HB_COMPILER" == "rsxnt" ]; then
gcc $1.c -Zwin32 $CFLAGS -I..\include -L..\lib -ltools -ldebug -lvm -lrtl -l$HB_GT_LIB -llang -lrdd -lrtl -lvm -lmacro -lpp -ldbfntx -ldbfcdx -lcommon
elif [ "$HB_COMPILER" == "msvc" ]; then
cl -Fd..\bin\harbour -w -Zi -TP -GZ -GA $CFLAGS -I..\include $1.c /link /subsystem:CONSOLE ..\lib\tools.lib ..\lib\debug.lib ..\lib\vm.lib ..\lib\rtl.lib ..\lib\$HB_GT_LIB.lib ..\lib\lang.lib ..\lib\rdd.lib ..\lib\macro.lib ..\lib\pp.lib ..\lib\dbfntx.lib ..\lib\dbfcdx.lib
cl -TP -W3 $CFLAGS -I..\include $1.c /link /subsystem:CONSOLE ..\lib\tools.lib ..\lib\debug.lib ..\lib\vm.lib ..\lib\rtl.lib ..\lib\$HB_GT_LIB.lib ..\lib\lang.lib ..\lib\rdd.lib ..\lib\macro.lib ..\lib\pp.lib ..\lib\dbfntx.lib ..\lib\dbfcdx.lib
echo Ignore LNK4033 warning
else
echo Error: HB_COMPILER value is unsupported.
@@ -114,7 +114,7 @@ else
elif [ "$HB_ARCHITECTURE" == "os2" ]; then
if [ -z "$HB_GT_LIB" ]; then export HB_GT_LIB=gtos2; fi
if [ -z "$HB_GT_LIB" ]; then HB_GT_LIB=gtos2; fi
if [ "$HB_COMPILER" == "gcc" ]; then
gcc $1.c $CFLAGS -I..\include -L..\lib -ltools -ldebug -lvm -lrtl -l$HB_GT_LIB -llang -lrdd -lrtl -lvm -lmacro -lpp -ldbfntx -ldbfcdx -lcommon
@@ -126,7 +126,7 @@ else
elif [ "$HB_ARCHITECTURE" == "linux" ]; then
if [ -z "$HB_GT_LIB" ]; then export HB_GT_LIB=gtstd; fi
if [ -z "$HB_GT_LIB" ]; then HB_GT_LIB=gtstd; fi
if [ "$HB_COMPILER" == "gcc" ]; then
gcc $1.c $CFLAGS -I../include -L../lib -ltools -ldebug -lvm -lrtl -l$HB_GT_LIB -llang -lrdd -lrtl -lvm -lmacro -lpp -ldbfntx -ldbfcdx -lcommon

View File

@@ -42,6 +42,6 @@
#define HB_VER_BUILD 33 /* Build number */
#define HB_VER_YEAR 2000 /* Build year */
#define HB_VER_MONTH 04 /* Build month */
#define HB_VER_DAY 14 /* Build day */
#define HB_VER_DAY 18 /* Build day */
#endif /* HB_VER_H_ */

View File

@@ -97,8 +97,9 @@
#define _SET_COUNT 47
#define _SET_LANGUAGE 100
#define _SET_LANGUAGE 100
#define __SET_COUNT_HB 1
#define HB_SET_BASE 100
#define HB_SET_COUNT 1
#endif /* _SET_CH */

View File

@@ -302,9 +302,12 @@ LANG_LIB_OBJS = \
$(OBJ_DIR)\msgeu.obj \
$(OBJ_DIR)\msgfr.obj \
$(OBJ_DIR)\msggl.obj \
$(OBJ_DIR)\msghe862.obj \
$(OBJ_DIR)\msghewin.obj \
$(OBJ_DIR)\msghu852.obj \
$(OBJ_DIR)\msghucwi.obj \
$(OBJ_DIR)\msghuwin.obj \
$(OBJ_DIR)\msgis850.obj \
$(OBJ_DIR)\msgpt.obj \
$(OBJ_DIR)\msgro.obj
@@ -1610,6 +1613,14 @@ $(OBJ_DIR)\msggl.obj : $(LANG_DIR)\msggl.c
$(CC) $(CLIBFLAGS) -I$(LANG_DIR) -o$@ $**
tlib $(LANG_LIB) $(ARFLAGS) -+$@,,
$(OBJ_DIR)\msghe862.obj : $(LANG_DIR)\msghe862.c
$(CC) $(CLIBFLAGS) -I$(LANG_DIR) -o$@ $**
tlib $(LANG_LIB) $(ARFLAGS) -+$@,,
$(OBJ_DIR)\msghewin.obj : $(LANG_DIR)\msghewin.c
$(CC) $(CLIBFLAGS) -I$(LANG_DIR) -o$@ $**
tlib $(LANG_LIB) $(ARFLAGS) -+$@,,
$(OBJ_DIR)\msghu852.obj : $(LANG_DIR)\msghu852.c
$(CC) $(CLIBFLAGS) -I$(LANG_DIR) -o$@ $**
tlib $(LANG_LIB) $(ARFLAGS) -+$@,,
@@ -1622,6 +1633,10 @@ $(OBJ_DIR)\msghuwin.obj : $(LANG_DIR)\msghuwin.c
$(CC) $(CLIBFLAGS) -I$(LANG_DIR) -o$@ $**
tlib $(LANG_LIB) $(ARFLAGS) -+$@,,
$(OBJ_DIR)\msgis850.obj : $(LANG_DIR)\msgis850.c
$(CC) $(CLIBFLAGS) -I$(LANG_DIR) -o$@ $**
tlib $(LANG_LIB) $(ARFLAGS) -+$@,,
$(OBJ_DIR)\msgpt.obj : $(LANG_DIR)\msgpt.c
$(CC) $(CLIBFLAGS) -I$(LANG_DIR) -o$@ $**
tlib $(LANG_LIB) $(ARFLAGS) -+$@,,

View File

@@ -11,6 +11,8 @@ C_SOURCES=\
msgeu.c \
msgfr.c \
msggl.c \
msghe862.c \
msghewin.c \
msghu852.c \
msghucwi.c \
msghuwin.c \

View File

@@ -323,13 +323,11 @@ HB_FUNC( TIME )
HB_FUNC( DATE )
{
char szResult[ 9 ];
#if defined(HB_OS_WIN_32)
{
SYSTEMTIME st;
GetLocalTime( &st );
sprintf( szResult, "%04d%02d%02d", st.wYear, st.wMonth, st.wDay );
hb_retd( st.wYear, st.wMonth, st.wDay );
}
#else
{
@@ -338,11 +336,9 @@ HB_FUNC( DATE )
time( &t );
oTime = localtime( &t );
sprintf( szResult, "%04d%02d%02d", oTime->tm_year + 1900, oTime->tm_mon + 1, oTime->tm_mday );
hb_retd( oTime->tm_year + 1900, oTime->tm_mon + 1, oTime->tm_mday );
}
#endif
hb_retds( szResult );
}
HB_FUNC( DOW )

View File

@@ -225,7 +225,7 @@ void hb_gt_SetCursorStyle( USHORT uiStyle )
}
}
void hb_gt_xPutch( USHORT uiRow, USHORT uiCol, BYTE byAttr, BYTE byChar )
static void hb_gt_xPutch( USHORT uiRow, USHORT uiCol, BYTE byAttr, BYTE byChar )
{
HB_TRACE(HB_TR_DEBUG, ("hb_gt_xPutch(%hu, %hu, %d, %i)", uiRow, uiCol, (int) byAttr, byChar));

View File

@@ -190,7 +190,9 @@ USHORT hb_gtBox( USHORT uiTop, USHORT uiLeft, USHORT uiBottom, USHORT uiRight, B
}
else
hb_gt_HorizLine( uiTop, uiLeft, uiRight, szBox[ 1 ], ( BYTE ) s_pColor[ s_uiColorIndex ] );
hb_gtSetPos( uiTop + 1, uiLeft + 1 );
return 0;
}
else
@@ -217,6 +219,7 @@ USHORT hb_gtBoxD( USHORT uiTop, USHORT uiLeft, USHORT uiBottom, USHORT uiRight )
}
else
hb_gt_HorizLine( uiTop, uiLeft, uiRight, _B_DOUBLE_V, ( BYTE ) s_pColor[ s_uiColorIndex ] );
hb_gtSetPos( uiTop + 1, uiLeft + 1 );
return 0;
@@ -245,6 +248,7 @@ USHORT hb_gtBoxS( USHORT uiTop, USHORT uiLeft, USHORT uiBottom, USHORT uiRight )
}
else
hb_gt_HorizLine( uiTop, uiLeft, uiRight, _B_SINGLE_H, ( BYTE ) s_pColor[ s_uiColorIndex ] );
hb_gtSetPos( uiTop + 1, uiLeft + 1 );
return 0;
@@ -695,11 +699,6 @@ USHORT hb_gtRectSize( USHORT uiTop, USHORT uiLeft, USHORT uiBottom, USHORT uiRig
return 0;
}
/* NOTE: Above this buffer size the function will allocate dynamic memory and
will be slower. [vszakats] */
#define REPCHAR_BUFFER_SIZE 255
USHORT hb_gtRepChar( USHORT uiRow, USHORT uiCol, BYTE byChar, USHORT uiCount )
{
HB_TRACE(HB_TR_DEBUG, ("hb_gtRepChar(%hu, %hu, %d, %hu)", uiRow, uiCol, (int) byChar, uiCount));

View File

@@ -474,7 +474,7 @@ void hb_gt_SetCursorStyle( USHORT uiStyle )
curs_set( 1 );
}
void hb_gt_xPutch( USHORT uiRow, USHORT uiCol, BYTE byAttr, BYTE byChar )
static void hb_gt_xPutch( USHORT uiRow, USHORT uiCol, BYTE byAttr, BYTE byChar )
{
HB_TRACE(HB_TR_DEBUG, ("hb_gt_xPutch(%hu, %hu, %d, %i)", uiRow, uiCol, (int) byAttr, byChar));
@@ -748,7 +748,7 @@ static void gt_SetRC(int r, int c)
char * hb_gt_Version( void )
{
return "Harbour Terminal: ncurses (Linux console)";
return "Harbour Terminal: ncurses";
}
USHORT hb_gt_DispCount()

View File

@@ -606,7 +606,7 @@ static void hb_gt_xGetXY( USHORT cRow, USHORT cCol, BYTE * attr, BYTE * ch )
#endif
}
void hb_gt_xPutch( USHORT cRow, USHORT cCol, BYTE attr, BYTE ch )
static void hb_gt_xPutch( USHORT cRow, USHORT cCol, BYTE attr, BYTE ch )
{
HB_TRACE(HB_TR_DEBUG, ("hb_gt_xPutch(%hu, %hu, %d, %d", cRow, cCol, (int) attr, (int) ch));

View File

@@ -597,7 +597,7 @@ static void hb_gt_xGetXY( USHORT cRow, USHORT cCol, BYTE * attr, BYTE * ch )
}
void hb_gt_xPutch( USHORT cRow, USHORT cCol, BYTE attr, BYTE ch )
static void hb_gt_xPutch( USHORT cRow, USHORT cCol, BYTE attr, BYTE ch )
{
HB_TRACE(HB_TR_DEBUG, ("hb_gt_xPutch(%hu, %hu, %d, %d", cRow, cCol, (int) attr, (int) ch));

View File

@@ -297,7 +297,7 @@ void hb_gt_SetCursorStyle( USHORT style )
HB_SYMBOL_UNUSED( style );
}
void hb_gt_xPutch( USHORT usRow, USHORT usCol, BYTE attr, BYTE byChar )
static void hb_gt_xPutch( USHORT usRow, USHORT usCol, BYTE attr, BYTE byChar )
{
char tmp[ 2 ];
HB_TRACE(HB_TR_DEBUG, ("hb_gt_xPutch(%hu, %hu, %d, %i)", usRow, usCol, (int) attr, byChar));

View File

@@ -228,7 +228,7 @@ void hb_gt_SetCursorStyle( USHORT uiStyle )
}
}
void hb_gt_xPutch( USHORT uiRow, USHORT uiCol, BYTE byAttr, BYTE byChar )
static void hb_gt_xPutch( USHORT uiRow, USHORT uiCol, BYTE byAttr, BYTE byChar )
{
HB_TRACE(HB_TR_DEBUG, ("hb_gt_xPutch(%hu, %hu, %d, %i)", uiRow, uiCol, (int) byAttr, byChar));
{

View File

@@ -230,7 +230,7 @@ void hb_gt_SetCursorStyle( USHORT uiCursorStyle )
s_uiCursorStyle = uiCursorStyle;
}
void hb_gt_xPutch( USHORT uiRow, USHORT uiCol, BYTE byAttr, BYTE byChar )
static void hb_gt_xPutch( USHORT uiRow, USHORT uiCol, BYTE byAttr, BYTE byChar )
{
HB_TRACE(HB_TR_DEBUG, ("hb_gt_xPutch(%hu, %hu, %d, %i)", uiRow, uiCol, (int) byAttr, byAttr));

View File

@@ -802,7 +802,7 @@ void hb_gt_SetCursorStyle( USHORT style )
SetConsoleCursorInfo( s_HActive, &cci );
}
void hb_gt_xPutch( USHORT uiRow, USHORT uiCol, BYTE attr, BYTE byChar )
static void hb_gt_xPutch( USHORT uiRow, USHORT uiCol, BYTE attr, BYTE byChar )
{
DWORD dwWritten;
COORD coord;

View File

@@ -68,7 +68,7 @@ static BOOL hb_itemIsLess( PHB_ITEM pItem1, PHB_ITEM pItem2 )
else
{
/* NOTE: For non-matching types CA-Cl*pper sorts always like this:
Array/Object Block String Date Numeric NIL [jlalin] */
Array/Object Block String Logical Date Numeric NIL [jlalin] */
int iWeight1;
int iWeight2;
@@ -76,16 +76,18 @@ static BOOL hb_itemIsLess( PHB_ITEM pItem1, PHB_ITEM pItem2 )
if( HB_IS_ARRAY( pItem1 ) ) iWeight1 = 1;
else if( HB_IS_BLOCK( pItem1 ) ) iWeight1 = 2;
else if( HB_IS_STRING( pItem1 ) ) iWeight1 = 3;
else if( HB_IS_DATE( pItem1 ) ) iWeight1 = 4;
else if( HB_IS_NUMERIC( pItem1 ) ) iWeight1 = 5;
else iWeight1 = 6;
else if( HB_IS_LOGICAL( pItem1 ) ) iWeight1 = 4;
else if( HB_IS_DATE( pItem1 ) ) iWeight1 = 5;
else if( HB_IS_NUMERIC( pItem1 ) ) iWeight1 = 6;
else iWeight1 = 7;
if( HB_IS_ARRAY( pItem2 ) ) iWeight2 = 1;
else if( HB_IS_BLOCK( pItem2 ) ) iWeight2 = 2;
else if( HB_IS_STRING( pItem2 ) ) iWeight2 = 3;
else if( HB_IS_DATE( pItem2 ) ) iWeight2 = 4;
else if( HB_IS_NUMERIC( pItem2 ) ) iWeight2 = 5;
else iWeight2 = 6;
else if( HB_IS_LOGICAL( pItem2 ) ) iWeight2 = 4;
else if( HB_IS_DATE( pItem2 ) ) iWeight2 = 5;
else if( HB_IS_NUMERIC( pItem2 ) ) iWeight2 = 6;
else iWeight2 = 7;
return iWeight1 < iWeight2;
}

View File

@@ -127,6 +127,7 @@ PRG_SOURCES=\
test_all.prg \
testbrdb.prg \
testbrw.prg \
testcdx.prg \
testcgi.prg \
testdbf.prg \
testerro.prg \
@@ -144,10 +145,12 @@ PRG_SOURCES=\
testvars.prg \
testwarn.prg \
tstalias.prg \
tstasort.prg \
tstcolor.prg \
tstdbi.prg \
tstdspac.prg \
version.prg \
vmasort.prg \
while.prg \
PRG_HEADERS=\

25
harbour/tests/testcdx.prg Normal file
View File

@@ -0,0 +1,25 @@
//
// $Id$
//
function Main()
local aStruct := { { "CHARACTER", "C", 25, 0 }, ;
{ "NUMERIC", "N", 8, 0 }, ;
{ "DOUBLE", "N", 8, 2 }, ;
{ "DATE", "D", 8, 0 }, ;
{ "LOGICAL", "L", 1, 0 } }
REQUEST DBFCDX
rddSetDefault( "DBFCDX" )
FErase( "testcdx.cdx" )
// dbCreate( "testcdx", aStruct, "DBFCDX" )
dbUseArea( ,, "testcdx", "MYALIAS" )
ordCreate( "testcdx", "1Tag ", "Character", { || Character }, .F. )
ordCreate( "testcdx", "2Tag ", "Character", { || Character }, .F. )
// ? MYALIAS->CHARACTER
return nil

View File

@@ -0,0 +1,65 @@
//
// $Id$
//
function main()
local oError := ErrorNew()
local a := { 3, 2, 1 }
local b := { 10 }
local c := { 2, .T., "B", NIL, { 1 }, {|| b }, oError, Date(), 1, .F., "A", NIL, Date() - 1, { 0 }, {|| a }, oError }
local t
?
?
? "Original.....:", aDump( t := a )
? "Asort.c......:", aDump( aSort( t := aClone( a ) ) )
? "Asort.c.block:", aDump( aSort( t := aClone( a ), , , {| x, y | x < y } ) )
?
? "Original.....:", aDump( t := b )
? "Asort.c......:", aDump( aSort( t := aClone( b ) ) )
? "Asort.c.block:", aDump( aSort( t := aClone( b ), , , {| x, y | x < y } ) )
?
? "Original.....:", aDump( t := c )
? "Asort.c......:", aDump( aSort( t := aClone( c ) ) )
? "Asort.c.block:", aDump( aSort( t := aClone( c ), , , {| x, y | x < y } ) )
return nil
function aDump( a )
local cStr := ""
local n := len( a )
local i
for i := 1 to n
cStr += alltrim( xToStr( a[i] ) ) + " "
next
return cStr
function xToStr( xValue )
LOCAL cType := ValType( xValue )
do case
case cType == "C" .or. cType == "M"
return xValue
case cType == "N"
return AllTrim( Str( xValue ) )
case cType == "D"
return DToC( xValue )
case cType == "L"
return if( xValue, ".T.", ".F." )
case cType == "U"
return "NIL"
case cType == "A"
return "{.}"
case cType == "B"
return "{|| }"
case cType == "O"
return "[O]"
endcase
return xValue

85
harbour/tests/vmasort.prg Normal file
View File

@@ -0,0 +1,85 @@
//
// $Id$
//
function Main( nPass )
LOCAL aTest
LOCAL aOrig
if nPass == NIL
nPass := 1
else
nPass := Val( nPass )
endif
? "Testing aSort with " + Str( nPass ) + " loops."
?
aTest := aMkArray( nPass )
aOrig := aClone( aTest )
set( _SET_DATEFORMAT, "mm/dd/yyyy" )
? "Original.....:", aDump( aOrig )
? "Asort.c......:", aDump( aSort( aTest ) )
// ? "Asort.c.block:", aDump( aSort( aTest, , , {| x, y | x < y } ) )
return nil
static function aMkArray( nPass )
LOCAL aData := {}
LOCAL n
LOCAL nMult := 200
LOCAL nMid := ( nMult / 2 ) + 1
LOCAL nMax := nPass * nMult
for n := 1 to nMax
aAdd( aData, NIL )
aAdd( aData, nMid - n )
aAdd( aData, Date() - n )
aAdd( aData, if( n % 2 == 0, .f., .t. ) )
aAdd( aData, Replicate( Chr( 64 + ( n % 256 ) ) , nPass ) )
aAdd( aData, {|| n } )
aAdd( aData, Array( n ) )
aAdd( aData, ErrorNew() )
next
return aData
function aDump( a )
local cStr := ""
local n := len( a )
local i
for i := 1 to n
cStr += alltrim( xToStr( a[i] ) ) + " "
next
return cStr
function xToStr( xValue )
LOCAL cType := ValType( xValue )
do case
case cType == "C" .or. cType == "M"
return xValue
case cType == "N"
return AllTrim( Str( xValue ) )
case cType == "D"
return DToC( xValue )
case cType == "L"
return if( xValue, ".T.", ".F." )
case cType == "U"
return "NIL"
case cType == "A"
return "{.}"
case cType == "B"
return "{|| }"
case cType == "O"
return "[O]"
endcase
return xValue