On (20/05/08 11:22), Kurt H Maier wrote: > To: dynamic window manager <dwm@suckless.org> > From: Kurt H Maier <[EMAIL PROTECTED]> > Subject: Re: [dwm] using bitaray for tags (PATCH) > Reply-To: dynamic window manager <dwm@suckless.org> > List-Id: dynamic window manager <dwm.suckless.org> > > C has bitfield support inside structs: > > unsigned tagsapplied :8; > > and replace 8 with whatever value you want > > Bitfields are a bad idea imo; code has to be changed pretty severely > to handle a varying-sized bitfield. You'd have to either limit the > number of tags a user can create or else do a lot of work to > generalize the code. >
btw, addition of varying sized bitfield to my patch wouldn't be hard, only declaration of Client must be changed, and that #macros -- Premysl "Anydot" Hruby, http://www.redrum.cz/