X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Fcommon%2Fxml-utils.h;h=747e8c8a481d6e03cbd132af6943af39ebea8ddb;hb=5b0e2db4fa08b43e9ff78d6e9a45d496522bd241;hp=f69f5f5178e493d32eda889fbf36fa134d71f399;hpb=5e1875543df7413d3cbc3831390445e347064b75;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/common/xml-utils.h b/gdb/common/xml-utils.h index f69f5f5178..747e8c8a48 100644 --- a/gdb/common/xml-utils.h +++ b/gdb/common/xml-utils.h @@ -1,6 +1,6 @@ /* Shared helper routines for manipulating XML. - Copyright (C) 2006-2017 Free Software Foundation, Inc. + Copyright (C) 2006-2019 Free Software Foundation, Inc. This file is part of GDB. @@ -17,12 +17,17 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#ifndef XML_UTILS_H -#define XML_UTILS_H +#ifndef COMMON_XML_UTILS_H +#define COMMON_XML_UTILS_H -/* Return a malloc allocated string with special characters from TEXT - replaced by entity references. */ +/* Return a string with special characters from TEXT replaced by entity + references. */ extern std::string xml_escape_text (const char *text); -#endif +/* Append TEXT to RESULT, with special characters replaced by entity + references. */ + +extern void xml_escape_text_append (std::string *result, const char *text); + +#endif /* COMMON_XML_UTILS_H */