mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-11-07 08:45:39 +00:00
Use GRegex for channel list search
This adds support for Windows
This commit is contained in:
1 parent
b245f2f79e
commit
22b5affbe6
2 files changed
+11
-18
No files matched your search
+1
-4
@@ -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 */
|
||||
|
||||
Reference in new issue
Block a user