2017-09-08 16:00 UTC Viktor Szakats (vszakats users.noreply.github.com)
* *
* partial sync with the 3.4 fork codebase. These are the things
synces for the most part:
- copyright headers
- grammar/typos in comments and some readmes
- comment/whitespace/decorations
- variable scoping in C files
- DO CASE/SWITCH and some other alternate syntax usage
- minimal amount of human readable text in strings
- minor code updates
- HB_TRACE() void * casts for pointers and few other changes to
avoid C compiler warnings
- various other, minor code cleanups
- only Harbour/C code/headers were touched in src, utils, contrib,
include. No 3rd party code, no make files, and with just a few
exceptions, no 'tests' code was touched.
- certain components were not touched were 3.4 diverged too much
already, like f.e. hbmk2, hbssl, hbcurl, hbexpat
- the goal was that no actual program logic should be altered by
these changes. Except some possible minor exceptions, any such
change is probably a bug in this patch.
It's a massive patch, if you find anything broken after it, please
open an Issue with the details. Build test was done on macOS.
The goal is make it easier to see what actual code/logic was changed
in 3.4 compared to 3.2 and to make patches easier to apply in both
ways.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* hb_FSize() function
|
||||
* hb_fsFSize() function
|
||||
*
|
||||
* Copyright 2000-2001 Jose Lalin <dezac@corevia.com>
|
||||
* Copyright 2000-2001 Viktor Szakats (vszakats.net/harbour)
|
||||
@@ -68,8 +68,8 @@
|
||||
#if defined( __USE_LARGEFILE64 )
|
||||
/*
|
||||
* The macro: __USE_LARGEFILE64 is set when _LARGEFILE64_SOURCE is
|
||||
* defined and effectively enables lseek64/flock64/ftruncate64 functions
|
||||
* on 32bit machines.
|
||||
* defined and effectively enables lseek64()/flock64()/ftruncate64()
|
||||
* functions on 32-bit machines.
|
||||
*/
|
||||
#define HB_USE_LARGEFILE64
|
||||
#elif defined( HB_OS_UNIX ) && defined( O_LARGEFILE )
|
||||
@@ -170,6 +170,7 @@ HB_FOFFSET hb_fsFSize( const char * pszFileName, HB_BOOL bUseDirEntry )
|
||||
return nPos;
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -177,5 +178,5 @@ HB_FUNC( HB_FSIZE )
|
||||
{
|
||||
const char * pszFile = hb_parc( 1 );
|
||||
|
||||
hb_retnint( pszFile ? hb_fsFSize( pszFile, hb_parldef( 2, 1 ) ) : 0 );
|
||||
hb_retnint( pszFile ? hb_fsFSize( pszFile, hb_parldef( 2, HB_TRUE ) ) : 0 );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user