From 8c0a2d69cdb78e0b1bb727089394bb71f84998df Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Thu, 8 Feb 2007 23:33:20 +0000 Subject: [PATCH] 2007-02-09 00:28 UTC+0100 Viktor Szakats (harbour.01 syenar.hu) * harbour/source/rtl/isprint.c * harbour/include/hbapi.h ! hb_printerIsReady() C level function made public again. + Added proper declaration for it. * harbour/bin/bld.bat ! Mistakenly committed change undone. --- harbour/ChangeLog | 9 +++++++++ harbour/bin/bld.bat | 2 +- harbour/include/hbapi.h | 3 ++- harbour/source/rtl/isprint.c | 2 +- 4 files changed, 13 insertions(+), 3 deletions(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 867e8d85ec..b4fce2e1dd 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -8,6 +8,15 @@ 2002-12-01 13:30 UTC+0100 Foo Bar */ +2007-02-09 00:28 UTC+0100 Viktor Szakats (harbour.01 syenar.hu) + * harbour/source/rtl/isprint.c + * harbour/include/hbapi.h + ! hb_printerIsReady() C level function made public again. + + Added proper declaration for it. + + * harbour/bin/bld.bat + ! Mistakenly committed change undone. + 2007-02-09 00:10 UTC+0100 Viktor Szakats (harbour.01 syenar.hu) * harbour/source/common/hbstr.c ! Fixed three BCC5.5 warnings. diff --git a/harbour/bin/bld.bat b/harbour/bin/bld.bat index 0c1c38067d..74c3214142 100644 --- a/harbour/bin/bld.bat +++ b/harbour/bin/bld.bat @@ -208,7 +208,7 @@ if not "%HB_ARCHITECTURE%" == "w32" goto A_OS2 if "%HB_GT_LIB%" == "" set _HB_GT_LIB=gtwin - if "%HB_COMPILER%" == "bcc32" bcc32 -O2 -d %CFLAGS% -I%HB_INC_INSTALL% -L%HB_LIB_INSTALL% %1.c codepage.lib debug.lib vm.lib rtl.lib %_HB_GT_LIB%.lib lang.lib rdd.lib macro.lib pp.lib libct.lib dbffpt.lib dbfntx.lib dbfcdx.lib hbsix.lib common.lib + if "%HB_COMPILER%" == "bcc32" bcc32 -O2 -d %CFLAGS% -I%HB_INC_INSTALL% -L%HB_LIB_INSTALL% %1.c codepage.lib debug.lib vm.lib rtl.lib %_HB_GT_LIB%.lib lang.lib rdd.lib macro.lib pp.lib dbffpt.lib dbfntx.lib dbfcdx.lib hbsix.lib common.lib if "%HB_COMPILER%" == "gcc" gcc %1.c -o%1.exe %CFLAGS% -I%HB_INC_INSTALL% -L%HB_LIB_INSTALL% -lcodepage -ldebug -lvm -lrtl -l%_HB_GT_LIB% -llang -lrdd -lrtl -lvm -lmacro -lpp -ldbffpt -ldbfntx -ldbfcdx -lhbsix -lcommon if "%HB_COMPILER%" == "mingw32" gcc %1.c -o%1.exe %CFLAGS% -mno-cygwin -I%HB_INC_INSTALL% %HB_INC_TEMP% -L%HB_LIB_INSTALL% -lcodepage -ldebug -lvm -lrtl -l%_HB_GT_LIB% -llang -lrdd -lrtl -lvm -lmacro -lpp -ldbffpt -ldbfntx -ldbfcdx -lhbsix -lcommon diff --git a/harbour/include/hbapi.h b/harbour/include/hbapi.h index 767334faf1..753587a028 100644 --- a/harbour/include/hbapi.h +++ b/harbour/include/hbapi.h @@ -845,7 +845,8 @@ extern char * hb_verHarbour( void ); /* retrieves a newly allocated buffer conta extern char * hb_verPCode( void ); /* retrieves a newly allocated buffer containing PCode version */ extern void hb_verBuildInfo( void ); /* display harbour, compiler, and platform versions to standard console */ -extern HB_EXPORT BOOL hb_iswinnt(void); /* return .T. if OS == WinNt, 2000, XP */ +extern HB_EXPORT BOOL hb_iswinnt( void ); /* return .T. if OS == WinNt, 2000, XP */ +extern HB_EXPORT BOOL hb_printerIsReady( char * pszPrinterName ); /* environment variables access */ /* WARNING: This returned pointer must be freed if not NULL using hb_xfree( ( void * ) ptr ); */ diff --git a/harbour/source/rtl/isprint.c b/harbour/source/rtl/isprint.c index 60de5d6937..aa48aa3772 100644 --- a/harbour/source/rtl/isprint.c +++ b/harbour/source/rtl/isprint.c @@ -80,7 +80,7 @@ static BOOL DPGetDefaultPrinter(LPTSTR pPrinterName, LPDWORD pdwBufferSize); #endif -BOOL hb_printerIsReady( char * pszPrinterName ) +HB_EXPORT BOOL hb_printerIsReady( char * pszPrinterName ) { BOOL bIsPrinter;