aboutsummaryrefslogtreecommitdiff
path: root/gdb/common/xml-utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/common/xml-utils.h')
-rw-r--r--gdb/common/xml-utils.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/gdb/common/xml-utils.h b/gdb/common/xml-utils.h
index b874016..3427ab2 100644
--- a/gdb/common/xml-utils.h
+++ b/gdb/common/xml-utils.h
@@ -20,9 +20,14 @@
#ifndef XML_UTILS_H
#define 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);
+/* Append TEXT to RESULT, with special characters replaced by entity
+ references. */
+
+extern void xml_escape_text_append (std::string *result, const char *text);
+
#endif