expat/doc reference.html,1.37,1.38

"Fred L. Drake" <[email protected]>
Newsgroups gmane.text.xml.expat.cvs
Message-ID <[email protected]>
Update of /cvsroot/expat/expat/doc
In directory sc8-pr-cvs1:/tmp/cvs-serv9131/doc

Modified Files:
	reference.html 
Log Message:
Change the API to return XML_Status values where possible.
Existing client code is 100% compatible.


Index: reference.html
===================================================================
RCS file: /cvsroot/expat/expat/doc/reference.html,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -d -r1.37 -r1.38
--- reference.html	30 Dec 2002 19:50:06 -0000	1.37
+++ reference.html	30 Dec 2002 20:12:52 -0000	1.38
@@ -1540,7 +1540,7 @@
 </div>
 
 <pre class="fcndec" id="XML_SetBase">
-int
+enum XML_Status
 XML_SetBase(XML_Parser p,
             const XML_Char *base);
 </pre>
@@ -1588,7 +1588,7 @@
 </div>
 
 <pre class="fcndec" id="XML_SetEncoding">
-int
+enum XML_Status
 XML_SetEncoding(XML_Parser p,
                 const XML_Char *encoding);
 </pre>
@@ -1598,6 +1598,8 @@
 It must not be called after <code><a href= "#XML_Parse"
 >XML_Parse</a></code> or <code><a href= "#XML_ParseBuffer"
 >XML_ParseBuffer</a></code> have been called on the given parser.
+Returns <code>XML_STATUS_OK</code> on success or
+<code>XML_STATUS_ERROR</code> on error.
 </div>
 
 <pre class="fcndec" id="XML_SetParamEntityParsing">
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.