Re: [dwm] bitarray and void *arg (was: using bitaray for tags (PATCH))

From: yy <yiyu.jgl_AT_gmail.com>
Date: Thu, 22 May 2008 14:18:07 +0200

2008/5/22, Anselm R. Garbe <arg_AT_suckless.org>:
> Applied.
> Thanks a lot!
>

> > void
> > -toggletag(const char *arg) {
> > - unsigned int i, j;
> > +toggletag(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");
> >

Debug party? :)

-- 
- yiyus || JGL .
Received on Thu May 22 2008 - 14:18:09 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:43:32 UTC