mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-05 19:01:18 +03:00
trying to fix some troubles w.r.t. function returning const xxxPtr. Daniel
* HTMLparser.c HTMLtree.c include/libxml/HTMLparser.h: trying to fix some troubles w.r.t. function returning const xxxPtr. Daniel
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
Fri Aug 17 01:25:21 CEST 2001 Daniel Veillard <daniel@veillard.com>
|
||||||
|
|
||||||
|
* HTMLparser.c HTMLtree.c include/libxml/HTMLparser.h:
|
||||||
|
trying to fix some troubles w.r.t. function returning
|
||||||
|
const xxxPtr.
|
||||||
|
|
||||||
Thu Aug 16 21:33:20 CEST 2001 Daniel Veillard <daniel@veillard.com>
|
Thu Aug 16 21:33:20 CEST 2001 Daniel Veillard <daniel@veillard.com>
|
||||||
|
|
||||||
* win32/dsp/libxml2.def.src: another set of symbols conditionally
|
* win32/dsp/libxml2.def.src: another set of symbols conditionally
|
||||||
|
24
HTMLparser.c
24
HTMLparser.c
@ -616,7 +616,7 @@ htmlInitAutoClose(void) {
|
|||||||
*
|
*
|
||||||
* Returns the related htmlElemDescPtr or NULL if not found.
|
* Returns the related htmlElemDescPtr or NULL if not found.
|
||||||
*/
|
*/
|
||||||
const htmlElemDescPtr
|
const htmlElemDesc *
|
||||||
htmlTagLookup(const xmlChar *tag) {
|
htmlTagLookup(const xmlChar *tag) {
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
|
|
||||||
@ -690,7 +690,7 @@ htmlCheckAutoClose(const xmlChar *newtag, const xmlChar *oldtag) {
|
|||||||
*/
|
*/
|
||||||
static void
|
static void
|
||||||
htmlAutoCloseOnClose(htmlParserCtxtPtr ctxt, const xmlChar *newtag) {
|
htmlAutoCloseOnClose(htmlParserCtxtPtr ctxt, const xmlChar *newtag) {
|
||||||
htmlElemDescPtr info;
|
const htmlElemDesc * info;
|
||||||
xmlChar *oldname;
|
xmlChar *oldname;
|
||||||
int i, priority;
|
int i, priority;
|
||||||
|
|
||||||
@ -1337,7 +1337,7 @@ static const htmlEntityDesc html40EntitiesTable[] = {
|
|||||||
*
|
*
|
||||||
* Returns the associated htmlEntityDescPtr if found, NULL otherwise.
|
* Returns the associated htmlEntityDescPtr if found, NULL otherwise.
|
||||||
*/
|
*/
|
||||||
const htmlEntityDescPtr
|
const htmlEntityDesc *
|
||||||
htmlEntityLookup(const xmlChar *name) {
|
htmlEntityLookup(const xmlChar *name) {
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
|
|
||||||
@ -1363,7 +1363,7 @@ htmlEntityLookup(const xmlChar *name) {
|
|||||||
*
|
*
|
||||||
* Returns the associated htmlEntityDescPtr if found, NULL otherwise.
|
* Returns the associated htmlEntityDescPtr if found, NULL otherwise.
|
||||||
*/
|
*/
|
||||||
const htmlEntityDescPtr
|
const htmlEntityDesc *
|
||||||
htmlEntityValueLookup(unsigned int value) {
|
htmlEntityValueLookup(unsigned int value) {
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
@ -1464,7 +1464,7 @@ UTF8ToHtml(unsigned char* out, int *outlen,
|
|||||||
*out++ = c;
|
*out++ = c;
|
||||||
} else {
|
} else {
|
||||||
int len;
|
int len;
|
||||||
htmlEntityDescPtr ent;
|
const htmlEntityDesc * ent;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Try to lookup a predefined HTML entity for it
|
* Try to lookup a predefined HTML entity for it
|
||||||
@ -1557,7 +1557,7 @@ htmlEncodeEntities(unsigned char* out, int *outlen,
|
|||||||
break;
|
break;
|
||||||
*out++ = c;
|
*out++ = c;
|
||||||
} else {
|
} else {
|
||||||
htmlEntityDescPtr ent;
|
const htmlEntityDesc * ent;
|
||||||
const char *cp;
|
const char *cp;
|
||||||
char nbuf[16];
|
char nbuf[16];
|
||||||
int len;
|
int len;
|
||||||
@ -1952,7 +1952,7 @@ htmlParseHTMLAttribute(htmlParserCtxtPtr ctxt, const xmlChar stop) {
|
|||||||
xmlChar *name = NULL;
|
xmlChar *name = NULL;
|
||||||
|
|
||||||
xmlChar *cur = NULL;
|
xmlChar *cur = NULL;
|
||||||
htmlEntityDescPtr ent;
|
const htmlEntityDesc * ent;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* allocate a translation buffer.
|
* allocate a translation buffer.
|
||||||
@ -2079,10 +2079,10 @@ htmlParseHTMLAttribute(htmlParserCtxtPtr ctxt, const xmlChar stop) {
|
|||||||
* Returns the associated htmlEntityDescPtr if found, or NULL otherwise,
|
* Returns the associated htmlEntityDescPtr if found, or NULL otherwise,
|
||||||
* if non-NULL *str will have to be freed by the caller.
|
* if non-NULL *str will have to be freed by the caller.
|
||||||
*/
|
*/
|
||||||
htmlEntityDescPtr
|
const htmlEntityDesc *
|
||||||
htmlParseEntityRef(htmlParserCtxtPtr ctxt, xmlChar **str) {
|
htmlParseEntityRef(htmlParserCtxtPtr ctxt, xmlChar **str) {
|
||||||
xmlChar *name;
|
xmlChar *name;
|
||||||
htmlEntityDescPtr ent = NULL;
|
const htmlEntityDesc * ent = NULL;
|
||||||
*str = NULL;
|
*str = NULL;
|
||||||
|
|
||||||
if (CUR == '&') {
|
if (CUR == '&') {
|
||||||
@ -3188,7 +3188,7 @@ htmlParseEndTag(htmlParserCtxtPtr ctxt) {
|
|||||||
*/
|
*/
|
||||||
static void
|
static void
|
||||||
htmlParseReference(htmlParserCtxtPtr ctxt) {
|
htmlParseReference(htmlParserCtxtPtr ctxt) {
|
||||||
htmlEntityDescPtr ent;
|
const htmlEntityDesc * ent;
|
||||||
xmlChar out[6];
|
xmlChar out[6];
|
||||||
xmlChar *name;
|
xmlChar *name;
|
||||||
if (CUR != '&') return;
|
if (CUR != '&') return;
|
||||||
@ -3390,7 +3390,7 @@ void
|
|||||||
htmlParseElement(htmlParserCtxtPtr ctxt) {
|
htmlParseElement(htmlParserCtxtPtr ctxt) {
|
||||||
xmlChar *name;
|
xmlChar *name;
|
||||||
xmlChar *currentNode = NULL;
|
xmlChar *currentNode = NULL;
|
||||||
htmlElemDescPtr info;
|
const htmlElemDesc * info;
|
||||||
htmlParserNodeInfo node_info;
|
htmlParserNodeInfo node_info;
|
||||||
xmlChar *oldname;
|
xmlChar *oldname;
|
||||||
int depth = ctxt->nameNr;
|
int depth = ctxt->nameNr;
|
||||||
@ -4153,7 +4153,7 @@ htmlParseTryOrFinish(htmlParserCtxtPtr ctxt, int terminate) {
|
|||||||
case XML_PARSER_START_TAG: {
|
case XML_PARSER_START_TAG: {
|
||||||
xmlChar *name, *oldname;
|
xmlChar *name, *oldname;
|
||||||
int depth = ctxt->nameNr;
|
int depth = ctxt->nameNr;
|
||||||
htmlElemDescPtr info;
|
const htmlElemDesc * info;
|
||||||
|
|
||||||
if (avail < 2)
|
if (avail < 2)
|
||||||
goto done;
|
goto done;
|
||||||
|
@ -433,7 +433,7 @@ htmlNodeListDump(xmlBufferPtr buf, xmlDocPtr doc, xmlNodePtr cur, int format) {
|
|||||||
void
|
void
|
||||||
htmlNodeDumpFormat(xmlBufferPtr buf, xmlDocPtr doc, xmlNodePtr cur,
|
htmlNodeDumpFormat(xmlBufferPtr buf, xmlDocPtr doc, xmlNodePtr cur,
|
||||||
int format) {
|
int format) {
|
||||||
htmlElemDescPtr info;
|
const htmlElemDesc * info;
|
||||||
|
|
||||||
if (cur == NULL) {
|
if (cur == NULL) {
|
||||||
xmlGenericError(xmlGenericErrorContext,
|
xmlGenericError(xmlGenericErrorContext,
|
||||||
@ -931,7 +931,7 @@ htmlNodeListDumpOutput(xmlOutputBufferPtr buf, xmlDocPtr doc,
|
|||||||
void
|
void
|
||||||
htmlNodeDumpFormatOutput(xmlOutputBufferPtr buf, xmlDocPtr doc,
|
htmlNodeDumpFormatOutput(xmlOutputBufferPtr buf, xmlDocPtr doc,
|
||||||
xmlNodePtr cur, const char *encoding, int format) {
|
xmlNodePtr cur, const char *encoding, int format) {
|
||||||
htmlElemDescPtr info;
|
const htmlElemDesc * info;
|
||||||
|
|
||||||
if (cur == NULL) {
|
if (cur == NULL) {
|
||||||
xmlGenericError(xmlGenericErrorContext,
|
xmlGenericError(xmlGenericErrorContext,
|
||||||
|
@ -58,16 +58,16 @@ struct _htmlEntityDesc {
|
|||||||
/*
|
/*
|
||||||
* There is only few public functions.
|
* There is only few public functions.
|
||||||
*/
|
*/
|
||||||
const htmlElemDescPtr htmlTagLookup (const xmlChar *tag);
|
const htmlElemDesc * htmlTagLookup (const xmlChar *tag);
|
||||||
const htmlEntityDescPtr htmlEntityLookup(const xmlChar *name);
|
const htmlEntityDesc * htmlEntityLookup(const xmlChar *name);
|
||||||
const htmlEntityDescPtr htmlEntityValueLookup(unsigned int value);
|
const htmlEntityDesc * htmlEntityValueLookup(unsigned int value);
|
||||||
|
|
||||||
int htmlIsAutoClosed(htmlDocPtr doc,
|
int htmlIsAutoClosed(htmlDocPtr doc,
|
||||||
htmlNodePtr elem);
|
htmlNodePtr elem);
|
||||||
int htmlAutoCloseTag(htmlDocPtr doc,
|
int htmlAutoCloseTag(htmlDocPtr doc,
|
||||||
const xmlChar *name,
|
const xmlChar *name,
|
||||||
htmlNodePtr elem);
|
htmlNodePtr elem);
|
||||||
htmlEntityDescPtr htmlParseEntityRef(htmlParserCtxtPtr ctxt,
|
const htmlEntityDesc * htmlParseEntityRef(htmlParserCtxtPtr ctxt,
|
||||||
xmlChar **str);
|
xmlChar **str);
|
||||||
int htmlParseCharRef(htmlParserCtxtPtr ctxt);
|
int htmlParseCharRef(htmlParserCtxtPtr ctxt);
|
||||||
void htmlParseElement(htmlParserCtxtPtr ctxt);
|
void htmlParseElement(htmlParserCtxtPtr ctxt);
|
||||||
|
Reference in New Issue
Block a user