From a9012172c1100140354cb1882f06a9f9fae61c8f Mon Sep 17 00:00:00 2001
From: Michael R Sweet
Date: Sat, 1 Jan 2011 23:42:17 +0000
Subject: [PATCH] Implemment getters for all of mxml_node_t and mxml_index_t
fields (STR #118)
Make mxml_node_s and mxml_index_s private (but still in the public header for
2.x).
---
CHANGES | 5 +-
Makefile.in | 4 +-
doc/intro.html | 4 +-
doc/mxml.html | 706 +++++++++++++++++++++++++++------------------
doc/reference.html | 467 ++++++++++++++++++------------
doc/title.html | 6 +-
mxml-get.c | 471 ++++++++++++++++++++++++++++++
mxml-index.c | 35 ++-
mxml-set.c | 89 ++++--
mxml.h | 41 ++-
mxml.xml | 272 ++++++++++++++++-
11 files changed, 1577 insertions(+), 523 deletions(-)
create mode 100644 mxml-get.c
diff --git a/CHANGES b/CHANGES
index a7453f0..2093f23 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,8 +1,11 @@
-CHANGES - 2010-11-08
+CHANGES - 2011-01-01
--------------------
CHANGES IN Mini-XML 2.7
+ - Added data accessor ("get") functions and made the mxml_node_t and
+ mxml_index_t structures private but still available in the Mini-XML
+ header to preserve source compatibility (STR #118)
- Updated the source headers to reference the Mini-XML license and its
exceptions to the LGPL2 (STR #108)
- Added a new mxmlFindValue() function to find the value node of a
diff --git a/Makefile.in b/Makefile.in
index 65b025d..3b8fe88 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -82,8 +82,8 @@ DOCFILES = doc/0.gif doc/1.gif doc/2.gif doc/3.gif doc/4.gif \
doc/A.gif doc/B.gif doc/C.gif doc/D.gif \
doc/mxml.html doc/mxmldoc.xsd \
README COPYING CHANGES
-PUBLIBOBJS = mxml-attr.o mxml-entity.o mxml-file.o mxml-index.o \
- mxml-node.o mxml-search.o mxml-set.o
+PUBLIBOBJS = mxml-attr.o mxml-entity.o mxml-file.o mxml-get.o \
+ mxml-index.o mxml-node.o mxml-search.o mxml-set.o
LIBOBJS = $(PUBLIBOBJS) mxml-private.o mxml-string.o
OBJS = mxmldoc.o testmxml.o $(LIBOBJS)
TARGETS = $(LIBMXML) mxmldoc testmxml mxml.xml doc/mxml.man
diff --git a/doc/intro.html b/doc/intro.html
index f514478..7ad8fe0 100644
--- a/doc/intro.html
+++ b/doc/intro.html
@@ -1,7 +1,7 @@
Mini-XML Programmers Manual, Version 2.7
-
+
@@ -188,7 +188,7 @@ manual:
Legal Stuff
-The Mini-XML library is copyright 2003-2010 by Michael Sweet. License terms
+
The Mini-XML library is copyright 2003-2011 by Michael Sweet. License terms
are described in Appendix A - Mini-XML License.
diff --git a/doc/mxml.html b/doc/mxml.html
index 42255e1..7dba598 100644
--- a/doc/mxml.html
+++ b/doc/mxml.html
@@ -1,9 +1,9 @@
-Mini-XML Programmers Manual, Version 2.6
+Mini-XML Programmers Manual, Version 2.7
-
+