diff options
author | P. 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) |
commit | 8ce13b8b9f1411a90e84ef6aee8c8409cb845acf (patch) | |
tree | 3ef77d1b2dabd8eee175cfa919d9f239e3a72ee5 /src/xml.h | |
parent | 7df50e1dafa5dbd8c061e1eb4e2f5729b66f0ef4 (diff) | |
download | overworld-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.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 |