diff options
author | David Malcolm <dmalcolm@redhat.com> | 2025-06-06 13:41:28 -0400 |
---|---|---|
committer | David Malcolm <dmalcolm@redhat.com> | 2025-06-06 13:41:28 -0400 |
commit | d5050287acd28cbe23df527605449f514a659bba (patch) | |
tree | 87ad7e8c0dc714e6acf47143d9ab6d86ff9c7608 /libgfortran/generated/minval_i4.c | |
parent | 1233d79c1935f19104e76ba7aa842dc7ee6c2279 (diff) | |
download | gcc-d5050287acd28cbe23df527605449f514a659bba.zip gcc-d5050287acd28cbe23df527605449f514a659bba.tar.gz gcc-d5050287acd28cbe23df527605449f514a659bba.tar.bz2 |
diagnostics: introduce xml::doctypedecl to avoid hardcoding html
As further generalization of XML support during prototyping of new
features, don't hardcode the HTML DTD.
gcc/ChangeLog:
* diagnostic-format-html.cc (struct html_doctypedecl): New.
(html_builder::html_builder): Use it to populate the document's
m_doctypedecl.
* xml.cc (xml::document::write_as_xml): Replace hardcoded HTML DTD
with use of m_doctypedecl field.
(selftest::test_no_dtd): New.
(selftest::xml_cc_tests): New.
* xml.h (struct doctypedecl): New decl.
Signed-off-by: David Malcolm <dmalcolm@redhat.com>
Diffstat (limited to 'libgfortran/generated/minval_i4.c')
0 files changed, 0 insertions, 0 deletions