X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fmatch.h;h=e1a6258bf22a86d7eb4275c8a28343be473e626a;hb=3af5c3a185fc23b8fb9d528a9c0a14f70093ac70;hp=5948ead19c2c519aa26b36dc3275029a71e7962a;hpb=1006a43225842d77e5fdb32e9d02bada5cdc2377;p=ncmpc.git diff --git a/src/match.h b/src/match.h index 5948ead..e1a6258 100644 --- a/src/match.h +++ b/src/match.h @@ -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 @@ -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);