2008-06-04 15:48 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* source/rtl/hbbit.c
+ Added important NOTE about hb_bit*() functions'
relation to the compiler optimization engine.
* source/vm/fm.c
* source/vm/extrap.c
* Log filenames converted to static variables. With the
intent that they'll be converted to Set()s or similar
user settable values in the future, since it's useful
and more elegant to redirect these to the app's normal
logfile.
* contrib/hbsqlit3/hbsqlit3.c
* Minor formatting.
This commit is contained in:
@@ -53,6 +53,13 @@
|
||||
#include "hbapi.h"
|
||||
#include "hbapierr.h"
|
||||
|
||||
/* NOTE: IMPORTANT:
|
||||
hb_bit*() Harbour level function names and logic are embedded
|
||||
in the compiler optimization engine, so in any case these
|
||||
function have to be changed, updated or extended, don't forget
|
||||
to update the references in the compiler as well.
|
||||
[vszakats] */
|
||||
|
||||
static BOOL hb_numParam( int iParam, HB_LONG * plNum )
|
||||
{
|
||||
if( ISNUM( iParam ) )
|
||||
|
||||
@@ -60,6 +60,8 @@
|
||||
|
||||
#if defined(HB_OS_WIN_32) && !defined(HB_WINCE)
|
||||
|
||||
static char * s_pszLogFileName = "hb_ex.log";
|
||||
|
||||
LONG WINAPI hb_win32ExceptionHandler( struct _EXCEPTION_POINTERS * ExceptionInfo )
|
||||
{
|
||||
char msg[ ( HB_SYMBOL_NAME_LEN + HB_SYMBOL_NAME_LEN + 32 ) * 32 ];
|
||||
@@ -68,7 +70,7 @@ LONG WINAPI hb_win32ExceptionHandler( struct _EXCEPTION_POINTERS * ExceptionInfo
|
||||
USHORT uiLine;
|
||||
int iLevel;
|
||||
|
||||
FILE * hLog = hb_fopen( "hb_ex.log", "a+" );
|
||||
FILE * hLog = hb_fopen( s_pszLogFileName, "a+" );
|
||||
|
||||
if( hLog )
|
||||
{
|
||||
|
||||
@@ -155,6 +155,8 @@ static LONG s_lMemoryConsumed = 0; /* memory max size consumed */
|
||||
static PHB_MEMINFO s_pFirstBlock = NULL;
|
||||
static PHB_MEMINFO s_pLastBlock = NULL;
|
||||
|
||||
static char * s_pszLogFileName = "hb_fm.log";
|
||||
|
||||
#else /* ! HB_FM_STATISTICS */
|
||||
|
||||
typedef void * PHB_MEMINFO;
|
||||
@@ -583,7 +585,7 @@ HB_EXPORT void hb_xexit( void ) /* Deinitialize fixed memory subsystem */
|
||||
FILE * hLog = NULL;
|
||||
|
||||
if( s_lMemoryBlocks )
|
||||
hLog = hb_fopen( "hb_fm.log", "a+" );
|
||||
hLog = hb_fopen( s_pszLogFileName, "a+" );
|
||||
|
||||
hb_conOutErr( hb_conNewLine(), 0 );
|
||||
hb_conOutErr( "----------------------------------------", 0 );
|
||||
|
||||
Reference in New Issue
Block a user