diff options
author | Tom Tromey <tromey@redhat.com> | 2013-05-30 17:41:38 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2013-05-30 17:41:38 +0000 |
commit | e3b76b4f446aeb82fdfd46185b624359d5490ec6 (patch) | |
tree | 19bdf37a1c1db919a583ecb42684883404046cfb /elfcpp | |
parent | db26349c64fd5303eb52612305271e4eddae087e (diff) | |
download | gdb-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 'elfcpp')
0 files changed, 0 insertions, 0 deletions