Re: [dwm] Fibonacci patch ported to 4.6 (update)

From: Manny Calavera <lone.nomad_AT_gmail.com>
Date: Fri, 12 Oct 2007 18:42:27 -0400

On Fri, Oct 12, 2007 at 10:56:12AM +0200, Xavier wrote:
> On Fri, Oct 12, 2007 at 10:09:51AM +0200, Anselm R. Garbe wrote:
> > Well, I'd prefer that declare the stuff you need from dwm.c as
> > externals, simply because they aren't declared as static there.
> >
> > At the beginning of fibonacci.c or .h add:
> >
> > extern Client *nexttiled(Client *c);
> > extern int screen, sx, sy, sw, sh, wax, way, waw, wah;
> > extern Client *clients;
> >
> > Then there is no need to put them into dwm.h. The only annoying
> > thing is that all extension need to include the Client
> > definition imho.
> >
>
> Ah ok, well I added these declarations at the beginning of fibonacci.c, as
> well as 3 functions I missed : focus, resize and restack.
> Hopefully it's right now.

Hey guys the patch isn't quite working for me completely, here is the
output I get when trying to patch:

[f|~/code/dwm-4.5]% patch -p1 < /home/f/code/dwm-4.6-fibonacci.diff
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -r e50c3eb0f55a config.def.h
|--- a/config.def.h Thu Oct 11 20:50:01 2007 +0200
|+++ b/config.def.h Fri Oct 12 10:50:41 2007 +0200
--------------------------
File to patch: config.h
patching file config.h
Hunk #1 FAILED at 22.
Hunk #2 succeeded at 27 with fuzz 2 (offset -4 lines).
1 out of 2 hunks FAILED -- saving rejects to file config.h.rej
patching file config.mk
Hunk #1 succeeded at 2 with fuzz 1.
patching file fibonacci.c
patching file fibonacci.h
Received on Sat Oct 13 2007 - 00:42:31 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 14:59:30 UTC