Code

status_bar: remove the status bar clock (option "display-time")
[ncmpc.git] / src / match.h
index 5948ead19c2c519aa26b36dc3275029a71e7962a..e1a6258bf22a86d7eb4275c8a28343be473e626a 100644 (file)
@@ -1,5 +1,5 @@
 /* ncmpc (Ncurses MPD Client)
- * (c) 2004-2010 The Music Player Daemon Project
+ * (c) 2004-2017 The Music Player Daemon Project
  * Project homepage: http://musicpd.org
  *
  * This program is free software; you can redistribute it and/or modify
@@ -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);