ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

DOCBparser.c
Go to the documentation of this file.
00001 /*
00002  * DOCBparser.c : an attempt to parse SGML Docbook documents
00003  *
00004  * This is deprecated !!!
00005  * Code removed with release 2.6.0 it was broken.
00006  * The doc are expect to be migrated to XML DocBook
00007  *
00008  * See Copyright for the status of this software.
00009  *
00010  * daniel@veillard.com
00011  */
00012 
00013 #define IN_LIBXML
00014 #include "libxml.h"
00015 #ifdef LIBXML_DOCB_ENABLED
00016 
00017 #include <libxml/xmlerror.h>
00018 #include <libxml/DOCBparser.h>
00019 
00036 int
00037 docbEncodeEntities(unsigned char *out ATTRIBUTE_UNUSED,
00038                    int *outlen ATTRIBUTE_UNUSED,
00039                    const unsigned char *in ATTRIBUTE_UNUSED,
00040                    int *inlen ATTRIBUTE_UNUSED,
00041                    int quoteChar ATTRIBUTE_UNUSED)
00042 {
00043     static int deprecated = 0;
00044 
00045     if (!deprecated) {
00046         xmlGenericError(xmlGenericErrorContext,
00047                         "docbEncodeEntities() deprecated function reached\n");
00048         deprecated = 1;
00049     }
00050     return(-1);
00051 }
00052 
00064 int
00065 docbParseDocument(docbParserCtxtPtr ctxt ATTRIBUTE_UNUSED)
00066 {
00067     static int deprecated = 0;
00068 
00069     if (!deprecated) {
00070         xmlGenericError(xmlGenericErrorContext,
00071                         "docbParseDocument() deprecated function reached\n");
00072         deprecated = 1;
00073     }
00074     return (xmlParseDocument(ctxt));
00075 }
00076 
00085 void
00086 docbFreeParserCtxt(docbParserCtxtPtr ctxt ATTRIBUTE_UNUSED)
00087 {
00088     static int deprecated = 0;
00089 
00090     if (!deprecated) {
00091         xmlGenericError(xmlGenericErrorContext,
00092                         "docbFreeParserCtxt() deprecated function reached\n");
00093         deprecated = 1;
00094     }
00095     xmlFreeParserCtxt(ctxt);
00096 }
00097 
00109 int
00110 docbParseChunk(docbParserCtxtPtr ctxt ATTRIBUTE_UNUSED,
00111                const char *chunk ATTRIBUTE_UNUSED,
00112            int size ATTRIBUTE_UNUSED,
00113                int terminate ATTRIBUTE_UNUSED)
00114 {
00115     static int deprecated = 0;
00116 
00117     if (!deprecated) {
00118         xmlGenericError(xmlGenericErrorContext,
00119                         "docbParseChunk() deprecated function reached\n");
00120         deprecated = 1;
00121     }
00122 
00123     return (xmlParseChunk(ctxt, chunk, size, terminate));
00124 }
00125 
00142 docbParserCtxtPtr
00143 docbCreatePushParserCtxt(docbSAXHandlerPtr sax ATTRIBUTE_UNUSED,
00144                          void *user_data ATTRIBUTE_UNUSED,
00145                          const char *chunk ATTRIBUTE_UNUSED,
00146              int size ATTRIBUTE_UNUSED,
00147              const char *filename ATTRIBUTE_UNUSED,
00148                          xmlCharEncoding enc ATTRIBUTE_UNUSED)
00149 {
00150     static int deprecated = 0;
00151 
00152     if (!deprecated) {
00153         xmlGenericError(xmlGenericErrorContext,
00154                         "docbParseChunk() deprecated function reached\n");
00155         deprecated = 1;
00156     }
00157 
00158     return(xmlCreatePushParserCtxt(sax, user_data, chunk, size, filename));
00159 }
00160 
00175 docbDocPtr
00176 docbSAXParseDoc(xmlChar * cur ATTRIBUTE_UNUSED,
00177                 const char *encoding ATTRIBUTE_UNUSED,
00178         docbSAXHandlerPtr sax ATTRIBUTE_UNUSED,
00179                 void *userData ATTRIBUTE_UNUSED)
00180 {
00181     static int deprecated = 0;
00182 
00183     if (!deprecated) {
00184         xmlGenericError(xmlGenericErrorContext,
00185                         "docbParseChunk() deprecated function reached\n");
00186         deprecated = 1;
00187     }
00188 
00189     return (xmlSAXParseMemoryWithData(sax, (const char *)cur,
00190               xmlStrlen((const xmlChar *) cur), 0,  userData));
00191 }
00192 
00203 docbDocPtr
00204 docbParseDoc(xmlChar * cur ATTRIBUTE_UNUSED,
00205              const char *encoding ATTRIBUTE_UNUSED)
00206 {
00207     static int deprecated = 0;
00208 
00209     if (!deprecated) {
00210         xmlGenericError(xmlGenericErrorContext,
00211                         "docbParseChunk() deprecated function reached\n");
00212         deprecated = 1;
00213     }
00214 
00215     return (xmlParseDoc(cur));
00216 }
00217 
00218 
00230 docbParserCtxtPtr
00231 docbCreateFileParserCtxt(const char *filename ATTRIBUTE_UNUSED,
00232                          const char *encoding ATTRIBUTE_UNUSED)
00233 {
00234     static int deprecated = 0;
00235 
00236     if (!deprecated) {
00237         xmlGenericError(xmlGenericErrorContext,
00238                         "docbCreateFileParserCtxt() deprecated function reached\n");
00239         deprecated = 1;
00240     }
00241 
00242     return (xmlCreateFileParserCtxt(filename));
00243 }
00244 
00260 docbDocPtr
00261 docbSAXParseFile(const char *filename ATTRIBUTE_UNUSED,
00262                  const char *encoding ATTRIBUTE_UNUSED,
00263                  docbSAXHandlerPtr sax ATTRIBUTE_UNUSED,
00264          void *userData ATTRIBUTE_UNUSED)
00265 {
00266     static int deprecated = 0;
00267 
00268     if (!deprecated) {
00269         xmlGenericError(xmlGenericErrorContext,
00270                         "docbSAXParseFile() deprecated function reached\n");
00271         deprecated = 1;
00272     }
00273 
00274     return (xmlSAXParseFileWithData(sax, filename, 0, userData));
00275 }
00276 
00289 docbDocPtr
00290 docbParseFile(const char *filename ATTRIBUTE_UNUSED,
00291               const char *encoding ATTRIBUTE_UNUSED)
00292 {
00293     static int deprecated = 0;
00294 
00295     if (!deprecated) {
00296         xmlGenericError(xmlGenericErrorContext,
00297                         "docbParseFile() deprecated function reached\n");
00298         deprecated = 1;
00299     }
00300 
00301     return (xmlParseFile(filename));
00302 }
00303 #define bottom_DOCBparser
00304 #include "elfgcchack.h"
00305 #endif /* LIBXML_DOCB_ENABLED */

Generated on Sat May 26 2012 04:33:08 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.