summaryrefslogtreecommitdiffstats
path: root/source/helper.c
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2016-11-15 08:24:06 +0100
committerDave Davenport <qball@gmpclient.org>2016-11-15 08:24:06 +0100
commitc86a28ca70f26afde9f9170fbd189afd9c96f8c0 (patch)
treecc681b31b8342f0ef942fc45c11ba08f2d7411e5 /source/helper.c
parent0a11dd80ec703aeae3f83e3b194316ecd3195db0 (diff)
Small code restructure
Diffstat (limited to 'source/helper.c')
-rw-r--r--source/helper.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/helper.c b/source/helper.c
index e052e01e..f3483515 100644
--- a/source/helper.c
+++ b/source/helper.c
@@ -56,8 +56,6 @@ const char *const monitor_position_entries[] = {
"on monitor with focused window",
"on monitor that has mouse pointer"
};
-extern xcb_connection_t *xcb_connection;
-extern xcb_screen_t *xcb_screen;
static int stored_argc = 0;
static char **stored_argv = NULL;
@@ -192,6 +190,7 @@ static gchar *fuzzy_to_regex ( const char * input )
}
static GRegex * create_regex ( const char *input, int case_sensitive )
{
+// Macro for quickly generating regex for matching.
#define R( s ) g_regex_new ( s, G_REGEX_OPTIMIZE | ( ( case_sensitive ) ? 0 : G_REGEX_CASELESS ), 0, NULL )
GRegex * retv = NULL;
gchar *r;