2009-07-10 04:50 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)

* include/hbdefs.h
    - Deleted HB_RESULT. We already have HB_ERRCODE.

  * source/main/harbour.c
    * hb_xquery() parameter type updated.
This commit is contained in:
Viktor Szakats
2009-07-10 02:46:48 +00:00
parent 8427e79694
commit 85ea4b601b
3 changed files with 10 additions and 6 deletions

View File

@@ -17,6 +17,13 @@
past entries belonging to author(s): Viktor Szakats.
*/
2009-07-10 04:50 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* include/hbdefs.h
- Deleted HB_RESULT. We already have HB_ERRCODE.
* source/main/harbour.c
* hb_xquery() parameter type updated.
2009-07-10 04:40 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* include/hbdefs.h
+ Added HB_RESULT. This is meant to replace current USHORT used

View File

@@ -726,9 +726,6 @@ typedef unsigned char hbU8;
HB_IT_LONG due to performance reduction. */
typedef long hbVMIntMax; /* TOFIX */
/* To replace error codes. */
#define HB_RESULT hbUShort
#define HB_MAX( a, b ) ( ( ( a ) > ( b ) ) ? ( a ) : ( b ) )
#define HB_MIN( a, b ) ( ( ( a ) < ( b ) ) ? ( a ) : ( b ) )

View File

@@ -224,12 +224,12 @@ void hb_xfree( void * pMem ) /* frees fixed memory */
hb_errInternal( HB_EI_XFREENULL, "hb_xfree called with a NULL pointer", NULL, NULL );
}
ULONG hb_xquery( USHORT uiMode )
ULONG hb_xquery( int iMode )
{
ULONG ulResult = 0;
#ifdef HB_FM_STATISTICS
switch( uiMode )
switch( iMode )
{
case HB_MEM_USED:
ulResult = s_ulMemoryConsumed;
@@ -240,7 +240,7 @@ ULONG hb_xquery( USHORT uiMode )
break;
}
#else
HB_SYMBOL_UNUSED( uiMode );
HB_SYMBOL_UNUSED( iMode );
#endif
return ulResult;
}