mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-03-21 22:50:08 +03:00
include: Remove useless 'const' from function arguments
This commit is contained in:
parent
19b9c59b61
commit
ff6c318862
@ -6307,7 +6307,7 @@ htmlAttrAllowed(const htmlElemDesc* elt, const xmlChar* attr, int legacy) {
|
||||
* for other nodes, HTML_NA (no checks performed)
|
||||
*/
|
||||
htmlStatus
|
||||
htmlNodeStatus(const htmlNodePtr node, int legacy) {
|
||||
htmlNodeStatus(htmlNodePtr node, int legacy) {
|
||||
if ( ! node )
|
||||
return HTML_INVALID ;
|
||||
|
||||
|
@ -300,7 +300,7 @@ typedef enum {
|
||||
XMLPUBFUN htmlStatus htmlAttrAllowed(const htmlElemDesc*, const xmlChar*, int) ;
|
||||
XMLPUBFUN int htmlElementAllowedHere(const htmlElemDesc*, const xmlChar*) ;
|
||||
XMLPUBFUN htmlStatus htmlElementStatusHere(const htmlElemDesc*, const htmlElemDesc*) ;
|
||||
XMLPUBFUN htmlStatus htmlNodeStatus(const htmlNodePtr, int) ;
|
||||
XMLPUBFUN htmlStatus htmlNodeStatus(htmlNodePtr, int) ;
|
||||
/**
|
||||
* htmlDefaultSubelement:
|
||||
* @elt: HTML element
|
||||
|
@ -119,10 +119,10 @@ XMLPUBFUN void
|
||||
xmlListMerge (xmlListPtr l1,
|
||||
xmlListPtr l2);
|
||||
XMLPUBFUN xmlListPtr
|
||||
xmlListDup (const xmlListPtr old);
|
||||
xmlListDup (xmlListPtr old);
|
||||
XMLPUBFUN int
|
||||
xmlListCopy (xmlListPtr cur,
|
||||
const xmlListPtr old);
|
||||
xmlListPtr old);
|
||||
/* Link operators */
|
||||
XMLPUBFUN void *
|
||||
xmlLinkGetData (xmlLinkPtr lk);
|
||||
|
@ -1162,18 +1162,18 @@ XMLPUBFUN xmlParserInputPtr
|
||||
* Node infos.
|
||||
*/
|
||||
XMLPUBFUN const xmlParserNodeInfo*
|
||||
xmlParserFindNodeInfo (const xmlParserCtxtPtr ctxt,
|
||||
const xmlNodePtr node);
|
||||
xmlParserFindNodeInfo (xmlParserCtxtPtr ctxt,
|
||||
xmlNodePtr node);
|
||||
XMLPUBFUN void
|
||||
xmlInitNodeInfoSeq (xmlParserNodeInfoSeqPtr seq);
|
||||
XMLPUBFUN void
|
||||
xmlClearNodeInfoSeq (xmlParserNodeInfoSeqPtr seq);
|
||||
XMLPUBFUN unsigned long
|
||||
xmlParserFindNodeInfoIndex(const xmlParserNodeInfoSeqPtr seq,
|
||||
const xmlNodePtr node);
|
||||
xmlParserFindNodeInfoIndex(xmlParserNodeInfoSeqPtr seq,
|
||||
xmlNodePtr node);
|
||||
XMLPUBFUN void
|
||||
xmlParserAddNodeInfo (xmlParserCtxtPtr ctxt,
|
||||
const xmlParserNodeInfoPtr info);
|
||||
xmlParserNodeInfoPtr info);
|
||||
|
||||
/*
|
||||
* External entities handling actually implemented in xmlIO.
|
||||
|
4
list.c
4
list.c
@ -729,7 +729,7 @@ xmlListMerge(xmlListPtr l1, xmlListPtr l2)
|
||||
* Returns a new copy of the list or NULL in case of error
|
||||
*/
|
||||
xmlListPtr
|
||||
xmlListDup(const xmlListPtr old)
|
||||
xmlListDup(xmlListPtr old)
|
||||
{
|
||||
xmlListPtr cur;
|
||||
|
||||
@ -758,7 +758,7 @@ xmlListDup(const xmlListPtr old)
|
||||
* Returns 0 in case of success 1 in case of error
|
||||
*/
|
||||
int
|
||||
xmlListCopy(xmlListPtr cur, const xmlListPtr old)
|
||||
xmlListCopy(xmlListPtr cur, xmlListPtr old)
|
||||
{
|
||||
/* Walk the old tree and insert the data into the new one */
|
||||
xmlLinkPtr lk;
|
||||
|
@ -2120,7 +2120,7 @@ xmlClearParserCtxt(xmlParserCtxtPtr ctxt)
|
||||
* Returns an xmlParserNodeInfo block pointer or NULL
|
||||
*/
|
||||
const xmlParserNodeInfo *
|
||||
xmlParserFindNodeInfo(const xmlParserCtxtPtr ctx, const xmlNodePtr node)
|
||||
xmlParserFindNodeInfo(xmlParserCtxtPtr ctx, xmlNodePtr node)
|
||||
{
|
||||
unsigned long pos;
|
||||
|
||||
@ -2186,8 +2186,8 @@ xmlClearNodeInfoSeq(xmlParserNodeInfoSeqPtr seq)
|
||||
* Returns a long indicating the position of the record
|
||||
*/
|
||||
unsigned long
|
||||
xmlParserFindNodeInfoIndex(const xmlParserNodeInfoSeqPtr seq,
|
||||
const xmlNodePtr node)
|
||||
xmlParserFindNodeInfoIndex(xmlParserNodeInfoSeqPtr seq,
|
||||
xmlNodePtr node)
|
||||
{
|
||||
unsigned long upper, lower, middle;
|
||||
int found = 0;
|
||||
@ -2228,7 +2228,7 @@ xmlParserFindNodeInfoIndex(const xmlParserNodeInfoSeqPtr seq,
|
||||
*/
|
||||
void
|
||||
xmlParserAddNodeInfo(xmlParserCtxtPtr ctxt,
|
||||
const xmlParserNodeInfoPtr info)
|
||||
xmlParserNodeInfoPtr info)
|
||||
{
|
||||
unsigned long pos;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user