From d13e8ab76f047512f1bf1ad50ed203d16709b903 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Fri, 2 Jun 2000 01:34:35 +0000 Subject: [PATCH] 2000-06-02 02:54 UTC+0100 Victor Szakats --- harbour/ChangeLog | 9 +++++++++ harbour/include/Makefile | 1 - harbour/source/compiler/harbour.c | 8 +++++--- harbour/source/rtl/filesys.c | 2 +- 4 files changed, 15 insertions(+), 5 deletions(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 05f25b61d7..288fe20a3b 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -4,6 +4,15 @@ * doc/whatsnew.doc * Bumped version to 0.34 and date to 2000-06-02 + * source/rtl/filesys.c + ! hb_fsEof() fixed for DJGPP. + + * include/Makefile + - hbapiext.h removed + + * source/compiler/harbour.c + ! Fixed GCC -O2 warning. + 2000-06-01 22:18 UTC+0100 Victor Szakats * source/lang/msgcswin.c diff --git a/harbour/include/Makefile b/harbour/include/Makefile index b87f1e51a5..ebbb2015b3 100644 --- a/harbour/include/Makefile +++ b/harbour/include/Makefile @@ -9,7 +9,6 @@ C_HEADERS=\ extend.h \ hbapi.h \ hbapierr.h \ - hbapiext.h \ hbapifs.h \ hbapigt.h \ hbapiitm.h \ diff --git a/harbour/source/compiler/harbour.c b/harbour/source/compiler/harbour.c index b976f725f8..ad7655cec8 100644 --- a/harbour/source/compiler/harbour.c +++ b/harbour/source/compiler/harbour.c @@ -272,12 +272,14 @@ int main( int argc, char * argv[] ) { PCOMSYMBOL pSym = hb_comp_symbols.pFirst; - char * szFirstFunction ; + char * szFirstFunction; if( hb_comp_bStartProc ) - szFirstFunction = hb_comp_functions.pFirst->szName ; + szFirstFunction = hb_comp_functions.pFirst->szName; else if( hb_comp_functions.pFirst->pNext ) - szFirstFunction = hb_comp_functions.pFirst->pNext->szName ; + szFirstFunction = hb_comp_functions.pFirst->pNext->szName; + else + szFirstFunction = NULL; while( pSym ) { diff --git a/harbour/source/rtl/filesys.c b/harbour/source/rtl/filesys.c index 8f979d2921..5712de1541 100644 --- a/harbour/source/rtl/filesys.c +++ b/harbour/source/rtl/filesys.c @@ -1462,7 +1462,7 @@ BOOL hb_fsFile( BYTE * pFilename ) BOOL hb_fsEof( FHANDLE hFileHandle ) { -#if defined(__CYGWIN__) || defined(OS_UNIX_COMPATIBLE) +#if defined(__DJGPP__) || defined(__CYGWIN__) || defined(OS_UNIX_COMPATIBLE) long curPos = lseek( hFileHandle, 0L, SEEK_CUR ); long endPos = lseek( hFileHandle, 0L, SEEK_END ); long newPos = lseek( hFileHandle, curPos, SEEK_SET );