mirror of
https://github.com/GNOME/libxml2.git
synced 2025-03-31 19:10:28 +08:00
Just adds 'const' to a couple of important parameters, patch from
Michael Meeks <michael@oasis.edenproject.org>, Daniel.
This commit is contained in:
parent
1566d3a91b
commit
15b75af8fa
@ -1,3 +1,9 @@
|
||||
1999-07-26 Michael Meeks <michael@edenproject.org>
|
||||
|
||||
* tree.h: Add const to 'content' in xmlNewDocNode, xmlNewChild
|
||||
|
||||
* tree.c: Ditto.
|
||||
|
||||
Thu Jul 15 16:17:16 CEST 1999 Daniel Veillard <Daniel.Veillard@w3.org>
|
||||
|
||||
* configure.in: upgraded to version 1.4.0
|
||||
|
@ -167,7 +167,8 @@ SAXtests : testSAX
|
||||
confexecdir=$(libdir)
|
||||
confexec_DATA = xmlConf.sh
|
||||
|
||||
EXTRA_DIST = xmlConf.sh.in libxml.spec.in test result SAXresult
|
||||
EXTRA_DIST = xmlConf.sh.in libxml.spec.in test result SAXresult example/Makefile.am \
|
||||
example/gjobread.c example/gjobs.xml
|
||||
|
||||
dist-hook:
|
||||
cp libxml.spec $(distdir)
|
||||
|
@ -298,10 +298,10 @@ xmlDocPtr xmlCopyDoc(xmlDocPtr doc, int recursive);
|
||||
* Creating new nodes
|
||||
*/
|
||||
xmlNodePtr xmlNewDocNode(xmlDocPtr doc, xmlNsPtr ns,
|
||||
const CHAR *name, CHAR *content);
|
||||
const CHAR *name, const CHAR *content);
|
||||
xmlNodePtr xmlNewNode(xmlNsPtr ns, const CHAR *name);
|
||||
xmlNodePtr xmlNewChild(xmlNodePtr parent, xmlNsPtr ns,
|
||||
const CHAR *name, CHAR *content);
|
||||
const CHAR *name, const CHAR *content);
|
||||
xmlNodePtr xmlNewDocText(xmlDocPtr doc, const CHAR *content);
|
||||
xmlNodePtr xmlNewText(const CHAR *content);
|
||||
xmlNodePtr xmlNewDocTextLen(xmlDocPtr doc, const CHAR *content, int len);
|
||||
|
4
tree.c
4
tree.c
@ -906,7 +906,7 @@ xmlNewNode(xmlNsPtr ns, const CHAR *name) {
|
||||
*/
|
||||
xmlNodePtr
|
||||
xmlNewDocNode(xmlDocPtr doc, xmlNsPtr ns,
|
||||
const CHAR *name, CHAR *content) {
|
||||
const CHAR *name, const CHAR *content) {
|
||||
xmlNodePtr cur;
|
||||
|
||||
cur = xmlNewNode(ns, name);
|
||||
@ -1158,7 +1158,7 @@ xmlNewDocComment(xmlDocPtr doc, const CHAR *content) {
|
||||
*/
|
||||
xmlNodePtr
|
||||
xmlNewChild(xmlNodePtr parent, xmlNsPtr ns,
|
||||
const CHAR *name, CHAR *content) {
|
||||
const CHAR *name, const CHAR *content) {
|
||||
xmlNodePtr cur, prev;
|
||||
|
||||
if (parent == NULL) {
|
||||
|
4
tree.h
4
tree.h
@ -298,10 +298,10 @@ xmlDocPtr xmlCopyDoc(xmlDocPtr doc, int recursive);
|
||||
* Creating new nodes
|
||||
*/
|
||||
xmlNodePtr xmlNewDocNode(xmlDocPtr doc, xmlNsPtr ns,
|
||||
const CHAR *name, CHAR *content);
|
||||
const CHAR *name, const CHAR *content);
|
||||
xmlNodePtr xmlNewNode(xmlNsPtr ns, const CHAR *name);
|
||||
xmlNodePtr xmlNewChild(xmlNodePtr parent, xmlNsPtr ns,
|
||||
const CHAR *name, CHAR *content);
|
||||
const CHAR *name, const CHAR *content);
|
||||
xmlNodePtr xmlNewDocText(xmlDocPtr doc, const CHAR *content);
|
||||
xmlNodePtr xmlNewText(const CHAR *content);
|
||||
xmlNodePtr xmlNewDocTextLen(xmlDocPtr doc, const CHAR *content, int len);
|
||||
|
Loading…
x
Reference in New Issue
Block a user