On Wed, Apr 02, 2008 at 11:42:57AM -0700, Michael Elkins wrote:
> More refactoring:
>
> - remove boilerplate code by creating a macro to generate layout
> functions
> - replace tileh/tilev with the version that do nmaster
>
> It's interesting now that removing nmaster support doesn't really buy
> that much: just one function (setnmaster) and one if-statement. LOC
> counts:
>
> dwm stock:
> $ wc -l dwm.c config.def.h
> 1952 dwm.c
> 102 config.def.h
> 2054 total
>
> patched:
> $ wc -l dwm.c config.def.h dwindle.c
> 1884 dwm.c
> 109 config.def.h
> 78 dwindle.c
> 2071 total
>
> +17 LOC for nmaster and two spiral modes isn't shabby.
>
> me
Well that's a good result, but I will postpone a decision here.
I plan to refactor the layout stuff a little bit after dwm 4.9,
there is obviously potential to simplify the algorithms.
Kind regards,
-- Anselm R. Garbe >< http://www.suckless.org/ >< GPG key: 0D73F361Received on Wed Apr 02 2008 - 22:58:02 UTC
This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:30:38 UTC