FS-2746 --resolve large xmlrpc update thanks garmt

This commit is contained in:
Jeff Lenk
2012-10-13 11:37:25 -05:00
parent 37ecad9903
commit 6b6c83a718
397 changed files with 41822 additions and 33841 deletions

View File

@@ -240,8 +240,10 @@ typedef struct {
*/
static void
start_element (void *user_data, const xmlChar *name, const xmlChar **attrs)
{
start_element(void * const user_data,
const xmlChar * const name,
const xmlChar ** const attrs ATTR_UNUSED) {
parse_context *context;
xml_element *elem, *new_current;
@@ -281,9 +283,12 @@ start_element (void *user_data, const xmlChar *name, const xmlChar **attrs)
}
}
static void
end_element (void *user_data, const xmlChar *name)
{
end_element(void * const user_data,
const xmlChar * const name ATTR_UNUSED) {
parse_context *context;
XMLRPC_ASSERT(user_data != NULL && name != NULL);
@@ -295,7 +300,7 @@ end_element (void *user_data, const xmlChar *name)
/* XXX - I think expat enforces these facts, but I want to be sure.
** If one of these assertion ever fails, it should be replaced by a
** non-assertion runtime error check. */
XMLRPC_ASSERT(strcmp(name, context->current->_name) == 0);
XMLRPC_ASSERT(xmlrpc_streq(name, context->current->_name));
XMLRPC_ASSERT(context->current->_parent != NULL ||
context->current == context->root);