diff options
Diffstat (limited to 'tag.c')
| -rw-r--r-- | tag.c | 18 |
1 files changed, 6 insertions, 12 deletions
| @@ -33,22 +33,19 @@ static unsigned int len = 0; | |||
| 33 | /* extern */ | 33 | /* extern */ |
| 34 | 34 | ||
| 35 | Client * | 35 | Client * |
| 36 | getnext(Client *c) | 36 | getnext(Client *c) { |
| 37 | { | ||
| 38 | for(; c && !isvisible(c); c = c->next); | 37 | for(; c && !isvisible(c); c = c->next); |
| 39 | return c; | 38 | return c; |
| 40 | } | 39 | } |
| 41 | 40 | ||
| 42 | Client * | 41 | Client * |
| 43 | getprev(Client *c) | 42 | getprev(Client *c) { |
| 44 | { | ||
| 45 | for(; c && !isvisible(c); c = c->prev); | 43 | for(; c && !isvisible(c); c = c->prev); |
| 46 | return c; | 44 | return c; |
| 47 | } | 45 | } |
| 48 | 46 | ||
| 49 | void | 47 | void |
| 50 | initrregs() | 48 | initrregs() { |
| 51 | { | ||
| 52 | unsigned int i; | 49 | unsigned int i; |
| 53 | regex_t *reg; | 50 | regex_t *reg; |
| 54 | 51 | ||
| @@ -76,8 +73,7 @@ initrregs() | |||
| 76 | } | 73 | } |
| 77 | 74 | ||
| 78 | void | 75 | void |
| 79 | settags(Client *c, Client *trans) | 76 | settags(Client *c, Client *trans) { |
| 80 | { | ||
| 81 | char prop[512]; | 77 | char prop[512]; |
| 82 | unsigned int i, j; | 78 | unsigned int i, j; |
| 83 | regmatch_t tmp; | 79 | regmatch_t tmp; |
| @@ -114,8 +110,7 @@ settags(Client *c, Client *trans) | |||
| 114 | } | 110 | } |
| 115 | 111 | ||
| 116 | void | 112 | void |
| 117 | tag(Arg *arg) | 113 | tag(Arg *arg) { |
| 118 | { | ||
| 119 | unsigned int i; | 114 | unsigned int i; |
| 120 | 115 | ||
| 121 | if(!sel) | 116 | if(!sel) |
| @@ -129,8 +124,7 @@ tag(Arg *arg) | |||
| 129 | } | 124 | } |
| 130 | 125 | ||
| 131 | void | 126 | void |
| 132 | toggletag(Arg *arg) | 127 | toggletag(Arg *arg) { |
| 133 | { | ||
| 134 | unsigned int i; | 128 | unsigned int i; |
| 135 | 129 | ||
| 136 | if(!sel) | 130 | if(!sel) |
