Re: [PATCH v4 3/6] grep: add submodules as a grep source type

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 11/18, Junio C Hamano wrote:
> Brandon Williams <bmwill@xxxxxxxxxx> writes:
> 
> > diff --git a/grep.h b/grep.h
> > index 5856a23..267534c 100644
> > --- a/grep.h
> > +++ b/grep.h
> > @@ -161,6 +161,7 @@ struct grep_source {
> >  		GREP_SOURCE_SHA1,
> >  		GREP_SOURCE_FILE,
> >  		GREP_SOURCE_BUF,
> > +		GREP_SOURCE_SUBMODULE,
> >  	} type;
> >  	void *identifier;
> 
> Hmph, interesting.  We have avoided ending enum definition with a
> comma, because it is only valid in more recent C than what we aim to
> support.  This patch is not introducing a new problem, but just
> doing the same thing that would have broken older compilers as the
> existing code.  Perhaps those older compilers have died out?

Perhaps it is time to move to a new C standard! :P

-- 
Brandon Williams



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]