Code

lyrics: no extra XML tags in lyricbox anymore
[ncmpc.git] / src / match.h
index 5948ead19c2c519aa26b36dc3275029a71e7962a..d4771ec85e60ad21a195df8143954fa19b54e6cf 100644 (file)
@@ -21,6 +21,7 @@
 #define MATCH_H
 
 #include "config.h"
+#include "Compiler.h"
 
 #include <stdbool.h>
 
@@ -40,6 +41,7 @@ match_line(const char *line, const char *needle)
 GRegex *
 compile_regex(const char *src, bool anchor);
 
+gcc_pure
 bool
 match_regex(GRegex *regex, const char *line);
 
@@ -47,6 +49,7 @@ match_regex(GRegex *regex, const char *line);
  * Checks whether the specified line matches the search string.  Case
  * is ignored.
  */
+gcc_pure
 bool
 match_line(const char *line, const char *needle);