summaryrefslogtreecommitdiff
path: root/packages/libxml/src/HTMLparser.inc
diff options
context:
space:
mode:
authorivost <ivost@3ad0048d-3df7-0310-abae-a5850022a9f2>2008-08-14 10:59:12 +0000
committerivost <ivost@3ad0048d-3df7-0310-abae-a5850022a9f2>2008-08-14 10:59:12 +0000
commit91e5f25dd9c42ef6e94a9809c95b0eb5b72aa9e2 (patch)
tree3a2e3a2b11b35868596b5772c3b1911036508d6b /packages/libxml/src/HTMLparser.inc
parent2affc4ee811e6a4e5a80e2f01e300ba7723e9fba (diff)
downloadfpc-91e5f25dd9c42ef6e94a9809c95b0eb5b72aa9e2.tar.gz
* progress on libxml2 translation
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@11572 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'packages/libxml/src/HTMLparser.inc')
-rw-r--r--packages/libxml/src/HTMLparser.inc26
1 files changed, 8 insertions, 18 deletions
diff --git a/packages/libxml/src/HTMLparser.inc b/packages/libxml/src/HTMLparser.inc
index aefd2ebf2a..2558abdcbf 100644
--- a/packages/libxml/src/HTMLparser.inc
+++ b/packages/libxml/src/HTMLparser.inc
@@ -10,17 +10,9 @@
* Author: Daniel Veillard
*)
-#ifndef __HTML_PARSER_H__
-#define __HTML_PARSER_H__
-#include <libxml/xmlversion.h>
-#include <libxml/parser.h>
-
-{ LIBXML_HTML_ENABLED
-
-{ __cplusplus
-extern "C" {
-#endif
+{$IFDEF LIBXML_HTML_ENABLED}
+{$IFDEF TYPE_}
(*
* Most of the back-end structures from XML and HTML are shared.
*)
@@ -79,7 +71,9 @@ struct _htmlEntityDesc {
char *name; (* The entity name *)
char *desc; (* the description *)
};
+{$ENDIF}
+{$IFDEF FUNCTION_}
(*
* There is only few public functions.
*)
@@ -145,7 +139,7 @@ XMLPUBFUN int XMLCALL
XMLPUBFUN int XMLCALL
htmlHandleOmittedElem(int val);
-{ LIBXML_PUSH_ENABLED
+{$IFDEF LIBXML_PUSH_ENABLED}
(**
* Interfaces for the Push mode.
*)
@@ -161,7 +155,7 @@ XMLPUBFUN int XMLCALL
char *chunk,
int size,
int terminate);
-#endif (* LIBXML_PUSH_ENABLED *)
+{$ENDIF} (* LIBXML_PUSH_ENABLED *)
XMLPUBFUN void XMLCALL
htmlFreeParserCtxt (htmlParserCtxtPtr ctxt);
@@ -293,11 +287,7 @@ XMLPUBFUN htmlStatus XMLCALL htmlNodeStatus(htmlNodePtr, int) ;
* Returns the attributes required for the specified element.
*)
#define htmlRequiredAttrs(elt) (elt)->attrs_req
+{$ENDIF}
+{$ENDIF} (* LIBXML_HTML_ENABLED *)
-{ __cplusplus
-}
-#endif
-
-#endif (* LIBXML_HTML_ENABLED *)
-#endif (* __HTML_PARSER_H__ *)