Use GRegex for channel list search

This adds support for Windows
This commit is contained in:
TingPing
2014-02-15 11:50:22 -05:00
parent b245f2f79e
commit 22b5affbe6
2 changed files with 11 additions and 18 deletions

View File

@@ -30,7 +30,6 @@
#ifndef WIN32
#include <sys/types.h>
#include <regex.h>
#endif
#if defined(ENABLE_NLS) && !defined(_)
@@ -102,10 +101,8 @@ struct server_gui
gboolean chanlist_match_wants_channel; /* match in channel name */
gboolean chanlist_match_wants_topic; /* match in topic */
#ifndef WIN32
regex_t chanlist_match_regex; /* compiled regular expression here */
GRegex *chanlist_match_regex; /* compiled regular expression here */
unsigned int have_regex;
#endif
guint chanlist_users_found_count; /* users total for all channels */
guint chanlist_users_shown_count; /* users total for displayed channels */