summaryrefslogtreecommitdiffstats
path: root/src/xml.h
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2023-02-24 10:25:33 (EST)
committer P. J. McDermott <pj@pehjota.net>2023-02-24 10:25:33 (EST)
commit8ce13b8b9f1411a90e84ef6aee8c8409cb845acf (patch)
tree3ef77d1b2dabd8eee175cfa919d9f239e3a72ee5 /src/xml.h
parent7df50e1dafa5dbd8c061e1eb4e2f5729b66f0ef4 (diff)
downloadoverworld-rpg-8ce13b8b9f1411a90e84ef6aee8c8409cb845acf.zip
overworld-rpg-8ce13b8b9f1411a90e84ef6aee8c8409cb845acf.tar.gz
overworld-rpg-8ce13b8b9f1411a90e84ef6aee8c8409cb845acf.tar.bz2
Add function attributes
Diffstat (limited to 'src/xml.h')
-rw-r--r--src/xml.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/xml.h b/src/xml.h
index 55207a3..62a2f46 100644
--- a/src/xml.h
+++ b/src/xml.h
@@ -22,7 +22,8 @@
#include <expat.h>
#include <SDL_stdinc.h>
-int xml_check_tag(const char *found, const char *expected);
+int xml_check_tag(const char *found, const char *expected)
+ __attribute__((__pure__));
void xml_unexpected_start_tag(XML_Parser p, const char *found,
const char *expected);
void xml_unexpected_end_tag(XML_Parser p, const char *found,
@@ -37,6 +38,6 @@ void xml_node_push(XML_Parser p, void *data,
XML_StartElementHandler start, XML_EndElementHandler end,
XML_CharacterDataHandler charhndl);
void *xml_node_pop(XML_Parser p);
-void *xml_node_peek(XML_Parser p);
+void *xml_node_peek(XML_Parser p) __attribute__((__pure__));
#endif