From 47497c3561ce379b2d33745293351cddfe732ffa Mon Sep 17 00:00:00 2001 From: Petr Chornyj Date: Sun, 9 Jan 2011 15:43:02 +0000 Subject: [PATCH] 2011-01-09 17:45 UTC+0200 Petr Chornyj (myorg63 at mail.ru) * contrib/hbmxml/hbmxml.hbp + contrib/hbmxml/hbmxml.hbx + contrib/hbmxml/hbmxmlx.prg + Added .hbx and extern puller harness. Borrowed from hbexpat/Viktor Szakats. --- harbour/contrib/hbmxml/hbmxml.hbp | 3 +- harbour/contrib/hbmxml/hbmxml.hbx | 99 ++++++++++++++++++++++++++++++ harbour/contrib/hbmxml/hbmxmlx.prg | 55 +++++++++++++++++ 3 files changed, 156 insertions(+), 1 deletion(-) create mode 100644 harbour/contrib/hbmxml/hbmxml.hbx create mode 100644 harbour/contrib/hbmxml/hbmxmlx.prg diff --git a/harbour/contrib/hbmxml/hbmxml.hbp b/harbour/contrib/hbmxml/hbmxml.hbp index a8ec837086..c9f99d5eba 100644 --- a/harbour/contrib/hbmxml/hbmxml.hbp +++ b/harbour/contrib/hbmxml/hbmxml.hbp @@ -18,7 +18,8 @@ -instfile=inc:hbmxml.ch -hbmxmlp.prg hbmxml.c +hbmxmlp.prg +hbmxmlx.prg 3rd/minixml/mxml.hbc{HBMK_HAS_MXML_LOCAL} diff --git a/harbour/contrib/hbmxml/hbmxml.hbx b/harbour/contrib/hbmxml/hbmxml.hbx new file mode 100644 index 0000000000..b3ae5652ee --- /dev/null +++ b/harbour/contrib/hbmxml/hbmxml.hbx @@ -0,0 +1,99 @@ +/* + * $Id$ + */ + +/* -------------------------------------------------------------------- */ +/* NOTE: You can add manual override which functions to include or */ +/* exclude from automatically generated EXTERNAL/DYNAMIC list. */ +/* Syntax: // HB_FUNC_INCLUDE */ +/* // HB_FUNC_EXCLUDE */ +/* -------------------------------------------------------------------- */ + +/* -------------------------------------------------------------------- */ +/* WARNING: Automatically generated code below. DO NOT EDIT! */ +/* Regenerate with HB_REBUILD_EXTERN=yes while using GCC */ +/* compiler family. [vszakats] */ +/* -------------------------------------------------------------------- */ + +#ifndef __HBEXTERN_CH__HBMXML__ +#define __HBEXTERN_CH__HBMXML__ + +#ifdef __HBEXTERN__HBMXML__ANNOUNCE + ANNOUNCE __HBEXTERN__HBMXML__ +#endif + +#ifdef __HBEXTERN__HBMXML__REQUEST + #command DYNAMIC => EXTERNAL +#endif + +DYNAMIC HB_MXMLVERSION +DYNAMIC MXMLADD +DYNAMIC MXMLDELETE +DYNAMIC MXMLELEMENTDELETEATTR +DYNAMIC MXMLELEMENTGETATTR +DYNAMIC MXMLELEMENTSETATTR +DYNAMIC MXMLELEMENTSETATTRF +DYNAMIC MXMLENTITYGETNAME +DYNAMIC MXMLENTITYGETVALUE +DYNAMIC MXMLFINDELEMENT +DYNAMIC MXMLFINDPATH +DYNAMIC MXMLGETCDATA +DYNAMIC MXMLGETCUSTOM +DYNAMIC MXMLGETELEMENT +DYNAMIC MXMLGETFIRSTCHILD +DYNAMIC MXMLGETINTEGER +DYNAMIC MXMLGETLASTCHILD +DYNAMIC MXMLGETNEXTSIBLING +DYNAMIC MXMLGETOPAQUE +DYNAMIC MXMLGETPARENT +DYNAMIC MXMLGETPREVSIBLING +DYNAMIC MXMLGETREAL +DYNAMIC MXMLGETREFCOUNT +DYNAMIC MXMLGETTEXT +DYNAMIC MXMLGETTYPE +DYNAMIC MXMLGETUSERDATA +DYNAMIC MXMLINDEXDELETE +DYNAMIC MXMLINDEXENUM +DYNAMIC MXMLINDEXFIND +DYNAMIC MXMLINDEXGETCOUNT +DYNAMIC MXMLINDEXNEW +DYNAMIC MXMLINDEXRESET +DYNAMIC MXMLLOADFILE +DYNAMIC MXMLLOADSTRING +DYNAMIC MXMLNEWCDATA +DYNAMIC MXMLNEWCUSTOM +DYNAMIC MXMLNEWELEMENT +DYNAMIC MXMLNEWINTEGER +DYNAMIC MXMLNEWOPAQUE +DYNAMIC MXMLNEWREAL +DYNAMIC MXMLNEWTEXT +DYNAMIC MXMLNEWTEXTF +DYNAMIC MXMLNEWXML +DYNAMIC MXMLRELEASE +DYNAMIC MXMLREMOVE +DYNAMIC MXMLRETAIN +DYNAMIC MXMLSAVEALLOCSTRING +DYNAMIC MXMLSAVEFILE +DYNAMIC MXMLSAVESTRING +DYNAMIC MXMLSAXLOADFILE +DYNAMIC MXMLSAXLOADSTRING +DYNAMIC MXMLSETCDATA +DYNAMIC MXMLSETCUSTOM +DYNAMIC MXMLSETCUSTOMHANDLERS +DYNAMIC MXMLSETELEMENT +DYNAMIC MXMLSETERRORCALLBACK +DYNAMIC MXMLSETINTEGER +DYNAMIC MXMLSETOPAQUE +DYNAMIC MXMLSETREAL +DYNAMIC MXMLSETTEXT +DYNAMIC MXMLSETTEXTF +DYNAMIC MXMLSETUSERDATA +DYNAMIC MXMLSETWRAPMARGIN +DYNAMIC MXMLWALKNEXT +DYNAMIC MXMLWALKPREV + +#ifdef __HBEXTERN__HBMXML__REQUEST + #uncommand DYNAMIC => EXTERNAL +#endif + +#endif diff --git a/harbour/contrib/hbmxml/hbmxmlx.prg b/harbour/contrib/hbmxml/hbmxmlx.prg new file mode 100644 index 0000000000..9b3329a1bb --- /dev/null +++ b/harbour/contrib/hbmxml/hbmxmlx.prg @@ -0,0 +1,55 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * extern puller + * + * Copyright 2010-2011 Petr Chornyj + * 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. + * + */ + +#define __HBEXTERN__HBMXML__ANNOUNCE +#define __HBEXTERN__HBMXML__REQUEST +#include "hbmxml.hbx"