From 1a5bdcc0e85f7a5c941d56fcb38fa0c55372eebe Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Tue, 3 Aug 2010 19:50:23 +0000 Subject: [PATCH] 2010-08-03 21:49 UTC+0200 Viktor Szakats (harbour.01 syenar.hu) * contrib/xhb/xhb.hbp + contrib/xhb/xhbpval.c * contrib/xhb/xhbfunc.c + PVALUE() moved to separate source. --- harbour/ChangeLog | 10 +++++-- harbour/contrib/xhb/xhb.hbp | 1 + harbour/contrib/xhb/xhbfunc.c | 1 - harbour/contrib/xhb/xhbpval.c | 55 +++++++++++++++++++++++++++++++++++ 4 files changed, 64 insertions(+), 3 deletions(-) create mode 100644 harbour/contrib/xhb/xhbpval.c diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 577196174d..b09d712b7c 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -16,11 +16,17 @@ The license applies to all entries newer than 2009-04-28. */ -2010-08-03 21:00 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com) +2010-08-03 21:49 UTC+0200 Viktor Szakats (harbour.01 syenar.hu) + * contrib/xhb/xhb.hbp + + contrib/xhb/xhbpval.c + * contrib/xhb/xhbfunc.c + + PVALUE() moved to separate source. + +2010-08-03 21:00 UTC+0200 Viktor Szakats (harbour.01 syenar.hu) * contrib/make.hbs ! Fixed to create .hbx only for -hblib and -hbdyn targets. -2010-08-03 20:54 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com) +2010-08-03 20:54 UTC+0200 Viktor Szakats (harbour.01 syenar.hu) * contrib/make.hbs ! Fixed missing output from hbmk2 runs. * Will not echo the --hbinfo hbmk2 invokation anymore. diff --git a/harbour/contrib/xhb/xhb.hbp b/harbour/contrib/xhb/xhb.hbp index 173b3a6b59..5213905960 100644 --- a/harbour/contrib/xhb/xhb.hbp +++ b/harbour/contrib/xhb/xhb.hbp @@ -52,6 +52,7 @@ xhbmsgs.c xhbmtc.c xhbqself.c xhbproc.c +xhbpval.c xhbregx.c xhbsave.c xhbscr.c diff --git a/harbour/contrib/xhb/xhbfunc.c b/harbour/contrib/xhb/xhbfunc.c index a5bc7b5082..e546a170a3 100644 --- a/harbour/contrib/xhb/xhbfunc.c +++ b/harbour/contrib/xhb/xhbfunc.c @@ -318,7 +318,6 @@ HB_FUNC( XHB_MEMOWRIT ) HB_FUNC_EXEC( MEMOWRIT ) } -HB_FUNC_EXTERN( HB_PVALUE ) ; HB_FUNC( PVALUE ) { HB_FUNC_EXEC( HB_PVALUE ); } HB_FUNC_EXTERN( HB_METHODNAME ) ; HB_FUNC( METHODNAME ) { HB_FUNC_EXEC( HB_METHODNAME ); } HB_FUNC_EXTERN( HB_LIBLOAD ) ; HB_FUNC( LIBLOAD ) { HB_FUNC_EXEC( HB_LIBLOAD ); } HB_FUNC_EXTERN( HB_LIBFREE ) ; HB_FUNC( LIBFREE ) { HB_FUNC_EXEC( HB_LIBFREE ); } diff --git a/harbour/contrib/xhb/xhbpval.c b/harbour/contrib/xhb/xhbpval.c new file mode 100644 index 0000000000..4127dbf5bb --- /dev/null +++ b/harbour/contrib/xhb/xhbpval.c @@ -0,0 +1,55 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * PVALUE() function + * + * Copyright 2010 Viktor Szakats (harbour.01 syenar.hu) + * www - http://harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ + +#include "hbapi.h" + +HB_FUNC_TRANSLATE( PVALUE, HB_PVALUE )