Just adds 'const' to a couple of important parameters, patch from

Michael Meeks <michael@oasis.edenproject.org>, Daniel.
This commit is contained in:
Daniel Veillard 1999-07-26 16:42:37 +00:00
parent 1566d3a91b
commit 15b75af8fa
5 changed files with 14 additions and 7 deletions

View File

@ -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

View File

@ -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)

View File

@ -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
View File

@ -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
View File

@ -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);