Re: [PATCH v3 0/4] remove extern from function declarations

2019-05-05 Thread Jacob Keller
On Fri, May 3, 2019 at 11:09 AM Jeff King wrote: > > On Fri, May 03, 2019 at 04:42:11PM +0200, SZEDER Gábor wrote: > > > > Since you *could* include it, I now assume that Coccinelle does not need > > > to follow the `#include`s (otherwise, it would have complained about not > > > finding the `wind

Re: [PATCH v3 0/4] remove extern from function declarations

2019-05-05 Thread Jacob Keller
On Sat, May 4, 2019 at 10:28 PM Junio C Hamano wrote: > > Jeff King writes: > > > I think spatch is smart enough not to hit the same header multiple > > times. But the problem is that we invoke it once per file, so it > > actually processes cache.h many times. That's slow, but also produces > > b

Re: [PATCH v3 0/4] remove extern from function declarations

2019-05-04 Thread Junio C Hamano
Jeff King writes: > I think spatch is smart enough not to hit the same header multiple > times. But the problem is that we invoke it once per file, so it > actually processes cache.h many times. That's slow, but also produces > bogus patches. Yes, I've seen this and was a bit irritated myself, b

Re: [PATCH v3 0/4] remove extern from function declarations

2019-05-03 Thread SZEDER Gábor
On Fri, May 03, 2019 at 01:45:03PM -0400, Jeff King wrote: > On Fri, May 03, 2019 at 04:42:11PM +0200, SZEDER Gábor wrote: > > > > Since you *could* include it, I now assume that Coccinelle does not need > > > to follow the `#include`s (otherwise, it would have complained about not > > > finding t

Re: [PATCH v3 0/4] remove extern from function declarations

2019-05-03 Thread Jeff King
On Fri, May 03, 2019 at 04:42:11PM +0200, SZEDER Gábor wrote: > > Since you *could* include it, I now assume that Coccinelle does not need > > to follow the `#include`s (otherwise, it would have complained about not > > finding the `windows.h` header in your setup). > > We invoke Coccinelle/spatc

Re: [PATCH v3 0/4] remove extern from function declarations

2019-05-03 Thread SZEDER Gábor
On Fri, May 03, 2019 at 04:42:11PM +0200, SZEDER Gábor wrote: > > Since you *could* include it, I now assume that Coccinelle does not need > > to follow the `#include`s (otherwise, it would have complained about not > > finding the `windows.h` header in your setup). > I don't really know what can

Re: [PATCH v3 0/4] remove extern from function declarations

2019-05-03 Thread SZEDER Gábor
On Fri, May 03, 2019 at 11:32:32AM +0200, Johannes Schindelin wrote: > Hi, > > On Thu, 2 May 2019, SZEDER Gábor wrote: > > > On Wed, May 01, 2019 at 06:01:08AM -0400, Denton Liu wrote: > > > > Is it not possible to exclude certain directories for certain semantic > > > > patches? > > > > > > > >

Re: [PATCH v3 0/4] remove extern from function declarations

2019-05-03 Thread Denton Liu
On Thu, May 02, 2019 at 02:04:22AM +0200, SZEDER Gábor wrote: > On Wed, May 01, 2019 at 06:01:08AM -0400, Denton Liu wrote: [snip] > > > > -- >8 -- > > Subject: [PATCH] Makefile: filter out compat/ from coccicheck > > > > Since most files in compat/ are pulled from external sources, ensure > >

Re: [PATCH v3 0/4] remove extern from function declarations

2019-05-03 Thread Johannes Schindelin
Hi, On Thu, 2 May 2019, SZEDER Gábor wrote: > On Wed, May 01, 2019 at 06:01:08AM -0400, Denton Liu wrote: > > > Is it not possible to exclude certain directories for certain semantic > > > patches? > > > > > > I guess we could also simply declare that *all* Coccinelle patches should > > > leave `

Re: [PATCH v3 0/4] remove extern from function declarations

2019-05-01 Thread SZEDER Gábor
On Wed, May 01, 2019 at 06:01:08AM -0400, Denton Liu wrote: > > Is it not possible to exclude certain directories for certain semantic > > patches? > > > > I guess we could also simply declare that *all* Coccinelle patches should > > leave `compat/` alone, on the basis that those files are likely

Re: [PATCH v3 0/4] remove extern from function declarations

2019-05-01 Thread Jeff King
On Wed, May 01, 2019 at 06:01:08AM -0400, Denton Liu wrote: > > I guess we could also simply declare that *all* Coccinelle patches should > > leave `compat/` alone, on the basis that those files are likely coming > > from some sort of upstream. But then, `compat/mingw.c` and `compat/win32/` > > se

Re: [PATCH v3 0/4] remove extern from function declarations

2019-05-01 Thread Denton Liu
Hi Johannes, On Tue, Apr 30, 2019 at 07:21:40PM -0400, Johannes Schindelin wrote: > Hi, > > On Thu, 25 Apr 2019, SZEDER Gábor wrote: > > > On Mon, Apr 22, 2019 at 05:49:01PM -0400, Jeff King wrote: > > > On Wed, Apr 17, 2019 at 12:58:31AM -0700, Denton Liu wrote: > > > > > > compat/mingw.c

Re: [PATCH v3 0/4] remove extern from function declarations

2019-04-30 Thread Johannes Schindelin
Hi, On Thu, 25 Apr 2019, SZEDER Gábor wrote: > On Mon, Apr 22, 2019 at 05:49:01PM -0400, Jeff King wrote: > > On Wed, Apr 17, 2019 at 12:58:31AM -0700, Denton Liu wrote: > > > > compat/mingw.c| 2 +- > > > compat/mingw.h| 6 +- > > > compat/nedmalloc/m

Re: [PATCH v3 0/4] remove extern from function declarations

2019-04-25 Thread Denton Liu
On Thu, Apr 25, 2019 at 02:07:58PM +0200, SZEDER Gábor wrote: > On Mon, Apr 22, 2019 at 05:49:01PM -0400, Jeff King wrote: > > On Wed, Apr 17, 2019 at 12:58:31AM -0700, Denton Liu wrote: > > > > compat/mingw.c| 2 +- > > > compat/mingw.h| 6 +- > > > c

Re: [PATCH v3 0/4] remove extern from function declarations

2019-04-25 Thread SZEDER Gábor
On Mon, Apr 22, 2019 at 05:49:01PM -0400, Jeff King wrote: > On Wed, Apr 17, 2019 at 12:58:31AM -0700, Denton Liu wrote: > > compat/mingw.c| 2 +- > > compat/mingw.h| 6 +- > > compat/nedmalloc/malloc.c.h | 6 +- > > compat/obstack.h

Re: [PATCH v3 0/4] remove extern from function declarations

2019-04-22 Thread Jeff King
On Wed, Apr 17, 2019 at 12:58:31AM -0700, Denton Liu wrote: > Thanks for the feedback. I couldn't find a tool that could selectively > fix indentation on patches so I went through and manually realigned the > parameter lists wherever the tools mangled the alignment. I guess this > also implies th

[PATCH v3 0/4] remove extern from function declarations

2019-04-17 Thread Denton Liu
Hi Thomas, Thanks for the feedback. I couldn't find a tool that could selectively fix indentation on patches so I went through and manually realigned the parameter lists wherever the tools mangled the alignment. I guess this also implies that one pair of (tired) human eyes has manually inspected