about summary refs log tree commit diff
path: root/search.c
diff options
context:
space:
mode:
authorokan <okan>2009-05-18 00:23:35 +0000
committerokan <okan>2009-05-18 00:23:35 +0000
commit2c29a1de65d9b1a752e1090ab3192ed5edf7afc8 (patch)
treeb289639f27fe3db961b9ca077e86008b3d14fedf /search.c
parentd2cfeb40b4bba4914b72f743b4b316e31560c17b (diff)
downloadcwm-2c29a1de65d9b1a752e1090ab3192ed5edf7afc8.tar.gz
cwm-2c29a1de65d9b1a752e1090ab3192ed5edf7afc8.tar.xz
cwm-2c29a1de65d9b1a752e1090ab3192ed5edf7afc8.zip
nuke the leading underscore notation for local static functions - there
are far better ways to know.

"go for it" oga@
Diffstat (limited to 'search.c')
-rw-r--r--search.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/search.c b/search.c
index 8c0072a..e3e296e 100644
--- a/search.c
+++ b/search.c
@@ -22,7 +22,7 @@
 
 #define SearchMask (KeyPressMask|ExposureMask)
 
-static int	_strsubmatch(char *, char *, int);
+static int	strsubmatch(char *, char *, int);
 
 /*
  * Match: label, title, class.
@@ -54,7 +54,7 @@ search_match_client(struct menu_q *menuq, struct menu_q *resultq, char *search)
 		struct client_ctx *cc = mi->ctx;
 
 		/* First, try to match on labels. */
-		if (cc->label != NULL && _strsubmatch(search, cc->label, 0)) {
+		if (cc->label != NULL && strsubmatch(search, cc->label, 0)) {
 			cc->matchname = cc->label;
 			tier = 0;
 		}
@@ -62,7 +62,7 @@ search_match_client(struct menu_q *menuq, struct menu_q *resultq, char *search)
 		/* Then, on window names. */
 		if (tier < 0) {
 			TAILQ_FOREACH_REVERSE(wn, &cc->nameq, winname_q, entry)
-				if (_strsubmatch(search, wn->name, 0)) {
+				if (strsubmatch(search, wn->name, 0)) {
 					cc->matchname = wn->name;
 					tier = 2;
 					break;
@@ -74,7 +74,7 @@ search_match_client(struct menu_q *menuq, struct menu_q *resultq, char *search)
 		 * name.
 		 */
 
-		if (tier < 0 && _strsubmatch(search, cc->app_class, 0)) {
+		if (tier < 0 && strsubmatch(search, cc->app_class, 0)) {
 			cc->matchname = cc->app_class;
 			tier = 3;
 		}
@@ -168,7 +168,7 @@ search_match_text(struct menu_q *menuq, struct menu_q *resultq, char *search)
 	TAILQ_INIT(resultq);
 
 	TAILQ_FOREACH(mi, menuq, entry)
-		if (_strsubmatch(search, mi->text, 0))
+		if (strsubmatch(search, mi->text, 0))
 			TAILQ_INSERT_TAIL(resultq, mi, resultentry);
 }
 
@@ -180,7 +180,7 @@ search_match_exec(struct menu_q *menuq, struct menu_q *resultq, char *search)
 	TAILQ_INIT(resultq);
 
 	TAILQ_FOREACH(mi, menuq, entry) {
-		if (_strsubmatch(search, mi->text, 1) == 0)
+		if (strsubmatch(search, mi->text, 1) == 0)
 			continue;
 		for (mj = TAILQ_FIRST(resultq); mj != NULL;
 		     mj = TAILQ_NEXT(mj, resultentry)) {
@@ -195,7 +195,7 @@ search_match_exec(struct menu_q *menuq, struct menu_q *resultq, char *search)
 }
 
 static int
-_strsubmatch(char *sub, char *str, int zeroidx)
+strsubmatch(char *sub, char *str, int zeroidx)
 {
 	size_t	 len, sublen;
 	u_int	 n, flen;