let's see how much of a pain murrayc is really gonna be. Daniel
* DOCBparser.c include/libxml/DOCBparser.h: let's see how much
of a pain murrayc is really gonna be.
Daniel
diff --git a/DOCBparser.c b/DOCBparser.c
index 0a73ce4..ccb577f 100644
--- a/DOCBparser.c
+++ b/DOCBparser.c
@@ -3,7 +3,7 @@
*
* This is deprecated !!!
* Code removed with release 2.6.0 it was broken.
- * Empty interface kept purely for symbols binary compatibility
+ * The doc are expect to be migrated to XML DocBook
*
* See Copyright for the status of this software.
*
@@ -71,7 +71,7 @@
"docbParseDocument() deprecated function reached\n");
deprecated = 1;
}
- return (-1);
+ return (xmlParseDocument(ctxt));
}
/**
@@ -92,6 +92,7 @@
"docbFreeParserCtxt() deprecated function reached\n");
deprecated = 1;
}
+ xmlFreeParserCtxt(ctxt);
}
/**
@@ -119,7 +120,7 @@
deprecated = 1;
}
- return (-1);
+ return (xmlParseChunk(ctxt, chunk, size, terminate));
}
/**
@@ -154,7 +155,7 @@
deprecated = 1;
}
- return (NULL);
+ return(xmlCreatePushParserCtxt(sax, user_data, chunk, size, filename));
}
/**
@@ -185,7 +186,8 @@
deprecated = 1;
}
- return (NULL);
+ return (xmlSAXParseMemoryWithData(sax, (const char *)cur,
+ xmlStrlen((const xmlChar *) cur), 0, userData));
}
/**
@@ -210,7 +212,7 @@
deprecated = 1;
}
- return (NULL);
+ return (xmlParseDoc(cur));
}
@@ -237,7 +239,7 @@
deprecated = 1;
}
- return (NULL);
+ return (xmlCreateFileParserCtxt(filename));
}
/**
@@ -269,7 +271,7 @@
deprecated = 1;
}
- return (NULL);
+ return (xmlSAXParseFileWithData(sax, filename, 0, userData));
}
/**
@@ -296,6 +298,6 @@
deprecated = 1;
}
- return (NULL);
+ return (xmlParseFile(filename));
}
#endif /* LIBXML_DOCB_ENABLED */