aboutsummaryrefslogtreecommitdiff
path: root/gdb/xml-support.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-05-30 17:41:38 +0000
committerTom Tromey <tromey@redhat.com>2013-05-30 17:41:38 +0000
commite3b76b4f446aeb82fdfd46185b624359d5490ec6 (patch)
tree19bdf37a1c1db919a583ecb42684883404046cfb /gdb/xml-support.h
parentdb26349c64fd5303eb52612305271e4eddae087e (diff)
downloadgdb-e3b76b4f446aeb82fdfd46185b624359d5490ec6.zip
gdb-e3b76b4f446aeb82fdfd46185b624359d5490ec6.tar.gz
gdb-e3b76b4f446aeb82fdfd46185b624359d5490ec6.tar.bz2
fix up xml-support.c
xml-support.c has a function that returns a cleanup via an out parameter. This changes this function to be a normal cleanup constructor -- returning the cleanup directly and returning the other result via an out parameter. This is sort of a hack, but it lets the checker work here. I also noticed that gdb_xml_create_parser_and_cleanup does not need to be exported any more. * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove 'old_chain' argument. Add 'parser_result' argument. (gdb_xml_create_parser_and_cleanup): Remove old version. (gdb_xml_parse_quick): Update. (xml_process_xincludes): Update. * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't declare.
Diffstat (limited to 'gdb/xml-support.h')
-rw-r--r--gdb/xml-support.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/gdb/xml-support.h b/gdb/xml-support.h
index a319678..a3a15ca 100644
--- a/gdb/xml-support.h
+++ b/gdb/xml-support.h
@@ -171,13 +171,6 @@ struct gdb_xml_element
gdb_xml_element_end_handler *end_handler;
};
-/* Initialize and return a parser. Register a cleanup to destroy the
- parser. */
-
-struct gdb_xml_parser *gdb_xml_create_parser_and_cleanup
- (const char *name, const struct gdb_xml_element *elements,
- void *user_data);
-
/* Associate DTD_NAME, which must be the name of a compiled-in DTD,
with PARSER. */