From a83b7dcdcef3ade28517e4346f82106e4fe8a88c Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Wed, 21 Jan 2009 20:46:58 +0000 Subject: [PATCH] 2009-01-21 21:46 UTC+0100 Viktor Szakats (harbour.01 syenar hu) * contrib/hbhpdf/harupdf.ch * contrib/hbhpdf/harupdf.c + Added HPDF_VERSION_TEXT() function which returns the libharu version hbhpdf was linked against. - Removed #defined HPDF_VERSION_TEXT with hard-wired libharu version. --- harbour/ChangeLog | 10 +++++++++- harbour/contrib/hbhpdf/harupdf.c | 5 +++++ harbour/contrib/hbhpdf/harupdf.ch | 2 -- 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index dc8b625361..31ded70bcd 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -8,6 +8,14 @@ 2008-12-31 13:59 UTC+0100 Foo Bar (foo.bar foobar.org) */ +2009-01-21 21:46 UTC+0100 Viktor Szakats (harbour.01 syenar hu) + * contrib/hbhpdf/harupdf.ch + * contrib/hbhpdf/harupdf.c + + Added HPDF_VERSION_TEXT() function which returns the + libharu version hbhpdf was linked against. + - Removed #defined HPDF_VERSION_TEXT with hard-wired libharu + version. + 2009-01-21 17:52 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/common.mak * harbour/source/rtl/Makefile @@ -105,7 +113,7 @@ * contrib/hbpgsql/tests/stress.prg * contrib/hbpgsql/tests/dbf2pg.prg * general cleanup for Harbour - * fix of function and method names, removed hard wired uid and pwd + * fix of function and method names, removed hard wired uid and pwd * contrib/hbtip/utils.c * added new mime types like flash files, rtf, csv diff --git a/harbour/contrib/hbhpdf/harupdf.c b/harbour/contrib/hbhpdf/harupdf.c index 74e9c8d509..ae5bdf5c91 100644 --- a/harbour/contrib/hbhpdf/harupdf.c +++ b/harbour/contrib/hbhpdf/harupdf.c @@ -1836,3 +1836,8 @@ HB_FUNC( HPDF_EXTGSTATE_SETBLENDMODE ) hb_retnl( ( long ) HPDF_ExtGState_SetBlendMode( ( HPDF_ExtGState ) hb_parptr( 1 ), ( HPDF_BlendMode ) hb_parni( 2 ) ) ); } /*----------------------------------------------------------------------*/ + +HB_FUNC( HPDF_VERSION_TEXT ) +{ + hb_retc_const( HPDF_VERSION_TEXT ); +} diff --git a/harbour/contrib/hbhpdf/harupdf.ch b/harbour/contrib/hbhpdf/harupdf.ch index 6affec2f1a..674e724d6b 100644 --- a/harbour/contrib/hbhpdf/harupdf.ch +++ b/harbour/contrib/hbhpdf/harupdf.ch @@ -333,8 +333,6 @@ #define HPDF_DEF_PAGE_WIDTH 595.276F #define HPDF_DEF_PAGE_HEIGHT 841.89F -#define HPDF_VERSION_TEXT "2.0.8" - /*---------------------------------------------------------------------------*/ /*----- compression mode ----------------------------------------------------*/