From d3de57ca66fdefae055d9bac9f5b89ae2da49692 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Sun, 13 Apr 2008 23:56:57 +0000 Subject: [PATCH] 2008-04-14 01:53 UTC+0100 Viktor Szakats (harbour.01 syenar hu) * utils/hbtest/rt_main.h * Cleanup. --- harbour/ChangeLog | 4 ++++ harbour/utils/hbtest/rt_main.h | 22 +++++----------------- 2 files changed, 9 insertions(+), 17 deletions(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index d99f6f3391..2c33d0b23f 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -8,6 +8,10 @@ 2008-12-31 13:59 UTC+0100 Foo Bar */ +2008-04-14 01:53 UTC+0100 Viktor Szakats (harbour.01 syenar hu) + * utils/hbtest/rt_main.h + * Cleanup. + 2008-04-14 01:40 UTC+0100 Viktor Szakats (harbour.01 syenar hu) * source/rtl/tbcolumn.prg + TBColumn() instance variable ordering in class definition diff --git a/harbour/utils/hbtest/rt_main.h b/harbour/utils/hbtest/rt_main.h index 709301358e..02194e17b5 100644 --- a/harbour/utils/hbtest/rt_main.h +++ b/harbour/utils/hbtest/rt_main.h @@ -54,33 +54,21 @@ #include "extend.api" #include "item.api" -/* NOTE: Do not use C level function names longer than - 10 chars. This is to keep things simple. [vszakats] */ +/* NOTE: Do not use names longer than 10 chars for .prg callable function. + This is to keep things simple. [vszakats] */ #if defined(__HARBOUR__) #include "hbundoc.api" - #define RT_FUNDEF( funcname ) HB_FUNC( funcname ) + #define RT_FUNDEF( funcname ) HB_FUNC( funcname ) #elif defined(__XPP__) - #define RT_FUNDEF( funcname ) XPPRET XPPENTRY funcname ( XppParamList paramList ) + #define RT_FUNDEF( funcname ) XPPRET XPPENTRY funcname ( XppParamList paramList ) #else /* __CLIPPER__ */ - #define RT_FUNDEF( funcname ) CLIPPER funcname ( void ) - - /* NOTE: It's safe to call _xfree() instead of _itemFreeC() as - in C52 they do exactly the same, actually the only thing - _itemFreeC() does is passing the call to _xfree(). - [vszakats] */ - - /* NOTE: WARNING! Do not use function calls as parameters for the - following functions: */ - - #define hb_retc_buffer( b ) { _retc( ( char * ) b ); free( ( void * ) b ); } - #define hb_retclen_buffer( b, l ) { _retclen( ( char * ) b, l ); free( ( void * ) b ); } - #define hb_retc_const( c ) _retc( ( char * ) ( c ) ) + #define RT_FUNDEF( funcname ) CLIPPER funcname ( void ) #endif