diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2021-03-15 14:50:29 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2021-03-15 16:28:56 (EDT) |
commit | d9de6dd145056f5288eba2b2c4a22e695b2c1de5 (patch) | |
tree | 83a0b50ce01de96d1716847a595dbd01dde85b78 | |
parent | 0fe882d8dc531743a7f9d95103b2e24bef7c7c6a (diff) | |
download | dodge-balls-d9de6dd145056f5288eba2b2c4a22e695b2c1de5.zip dodge-balls-d9de6dd145056f5288eba2b2c4a22e695b2c1de5.tar.gz dodge-balls-d9de6dd145056f5288eba2b2c4a22e695b2c1de5.tar.bz2 |
db_xml_check_tag(), db_xml_node_peek(): Mark pure
-rw-r--r-- | src/xml.h | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -23,7 +23,8 @@ #include <expat.h> #include <SDL_stdinc.h> -int db_xml_check_tag(const char *found, const char *expected); +int db_xml_check_tag(const char *found, const char *expected) + __attribute__((__pure__)); void db_xml_unexpected_start_tag(XML_Parser p, const char *found, const char *expected); void db_xml_unexpected_end_tag(XML_Parser p, const char *found, @@ -38,6 +39,7 @@ void db_xml_node_push(XML_Parser p, void *data, XML_StartElementHandler start, XML_EndElementHandler end, XML_CharacterDataHandler charhndl); void *db_xml_node_pop(XML_Parser p); -void *db_xml_node_peek(XML_Parser p); +void *db_xml_node_peek(XML_Parser p) + __attribute__((__pure__)); #endif /* DB_XML_H_ */ |