Introduction
Introduction Statistics Contact Development Disclaimer Help
tremoved debug output, sanitized tag limit check - dwm - [fork] customized buil…
git clone git://src.adamsgaard.dk/dwm
Log
Files
Refs
README
LICENSE
---
commit 56b2fece9e2d42cdd5ca34623864a9d470c1e64a
parent 9f569fac74a466a6857855b4d233e7a3582f4ea7
Author: Anselm R Garbe <[email protected]>
Date: Thu, 22 May 2008 13:35:45 +0100
removed debug output, sanitized tag limit check
Diffstat:
M dwm.c | 13 ++-----------
1 file changed, 2 insertions(+), 11 deletions(-)
---
diff --git a/dwm.c b/dwm.c
t@@ -234,11 +234,10 @@ Window root, barwin;
/* configuration, allows nested code to access above variables */
#include "config.h"
-/* check if all tags will fit into a uint bitarray. */
-static char tags_is_a_sign_that_your_IQ[sizeof(int) * 8 < LENGTH(tags) ? -1 : …
+/* compile-time check if all tags fit into an uint bit array. */
+struct NumTags { char limitexceeded[sizeof(uint) * 8 < LENGTH(tags) ? -1 : 1];…
/* function implementations */
-
void
applyrules(Client *c) {
uint i;
t@@ -1548,14 +1547,6 @@ togglelayout(const void *arg) {
void
toggletag(const void *arg) {
- int i, m = *(int *)arg;
- for(i = 0; i < sizeof(int) * 8; i++)
- fputc(m & 1 << i ? '1' : '0', stdout);
- puts("");
- for(i = 0; i < sizeof(int) * 8; i++)
- fputc(TAGMASK & 1 << i ? '1' : '0', stdout);
- puts("aaa");
-
if(sel && (sel->tags ^ ((*(int *)arg) & TAGMASK))) {
sel->tags ^= (*(int *)arg) & TAGMASK;
arrange();
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.