const bool annotate = false);
bool
-write_corpus_to_native_xml(const corpus_sptr corpus,
- unsigned indent,
- std::ostream& out,
- const bool annotate = false);
+write_corpus(const corpus_sptr corpus,
+ unsigned indent,
+ std::ostream& out,
+ const bool annotate = false);
bool
-write_corpus_to_native_xml_file(const corpus_sptr corpus,
- unsigned indent,
- const string& path,
- const bool annotate = false);
+write_corpus(const corpus_sptr corpus,
+ unsigned indent,
+ const string& path,
+ const bool annotate = false);
}// end namespace xml_writer
}// end namespace abigail
///
/// @return true upon successful completion, false otherwise.
bool
-write_corpus_to_native_xml(const corpus_sptr corpus,
- unsigned indent,
- std::ostream& out,
- const bool annotate)
+write_corpus(const corpus_sptr corpus,
+ unsigned indent,
+ std::ostream& out,
+ const bool annotate)
{
if (!corpus)
return false;
///
/// @return true upon successful completion, false otherwise.
bool
-write_corpus_to_native_xml_file(const corpus_sptr corpus,
- unsigned indent,
- const string& path,
- const bool annotate)
+write_corpus(const corpus_sptr corpus,
+ unsigned indent,
+ const string& path,
+ const bool annotate)
{
bool result = true;
return false;
}
- if (!write_corpus_to_native_xml(corpus, indent, of, annotate))
+ if (!write_corpus(corpus, indent, of, annotate))
{
cerr << "failed to access " << path << "\n";
result = false;
return;
}
is_ok =
- abigail::xml_writer::write_corpus_to_native_xml(corp, /*indent=*/0, of);
+ abigail::xml_writer::write_corpus(corp, /*indent=*/0, of);
of.close();
string abidw = string(get_build_dir()) + "/tools/abidw";
using abigail::xml_reader::read_translation_unit_from_file;
using abigail::xml_reader::read_corpus_from_native_xml_file;
using abigail::xml_writer::write_translation_unit;
-using abigail::xml_writer::write_corpus_to_native_xml;
+using abigail::xml_writer::write_corpus;
using abigail::workers::queue;
using abigail::workers::task;
using abigail::comparison::compute_diff;
using abigail::comparison::diff_context_sptr;
using abigail::comparison::diff_context;
-using abigail::xml_writer::write_corpus_to_native_xml;
+using abigail::xml_writer::write_corpus;
using abigail::xml_reader::read_corpus_from_native_xml_file;
using abigail::dwarf_reader::read_context;
using abigail::dwarf_reader::read_context_sptr;
// it back, and compare the ABI of what we've read back
// against the ABI of the input ELF file.
temp_file_sptr tmp_file = temp_file::create();
- write_corpus_to_native_xml(corp, 0, tmp_file->get_stream(), opts.annotate);
+ write_corpus(corp, 0, tmp_file->get_stream(), opts.annotate);
tmp_file->get_stream().flush();
corpus_sptr corp2 =
read_corpus_from_native_xml_file(tmp_file->get_path(),
<< opts.out_file_path << "'\n";
return 1;
}
- abigail::xml_writer::write_corpus_to_native_xml(corp, 0, of, opts.annotate);
+ abigail::xml_writer::write_corpus(corp, 0, of, opts.annotate);
of.close();
return 0;
}
else
- abigail::xml_writer::write_corpus_to_native_xml(corp, 0, cout, opts.annotate);
+ abigail::xml_writer::write_corpus(corp, 0, cout, opts.annotate);
}
return 0;
using abigail::xml_reader::read_corpus_from_native_xml_file;
using abigail::dwarf_reader::read_corpus_from_elf;
using abigail::xml_writer::write_translation_unit;
-using abigail::xml_writer::write_corpus_to_native_xml;
+using abigail::xml_writer::write_corpus;
using abigail::xml_writer::write_corpus_to_archive;
struct options
set_suppressions(*ctxt, opts);
corpus_sptr corp = abigail::xml_reader::read_corpus_from_input(*ctxt);
if (!opts.noout)
- write_corpus_to_native_xml(corp, /*indent=*/0, cout);
+ write_corpus(corp, /*indent=*/0, cout);
return false;
}
}
if (type == abigail::tools_utils::FILE_TYPE_XML_CORPUS)
{
if (opts.diff)
- r = write_corpus_to_native_xml(corp, /*indent=*/0, of);
+ r = write_corpus(corp, /*indent=*/0, of);
if (!opts.noout && !opts.diff)
- r &= write_corpus_to_native_xml(corp, /*indent=*/0, cout);
+ r &= write_corpus(corp, /*indent=*/0, cout);
}
else if (type == abigail::tools_utils::FILE_TYPE_ZIP_CORPUS)
{
else if (type == abigail::tools_utils::FILE_TYPE_ELF)
{
if (!opts.noout)
- r = write_corpus_to_native_xml(corp, /*indent=*/0, cout);
+ r = write_corpus(corp, /*indent=*/0, cout);
}
}