[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Tinycc-devel] [PATCH] libtcc.c (put_extern_sym2): Extend the scope
Re: [Tinycc-devel] [PATCH] libtcc.c (put_extern_sym2): Extend the scope of buf to match its use
Wed, 7 Jan 2015 16:53:23 +0800
On Sun, Jan 4, 2015 at 5:26 AM, Thomas Preud'homme <address@hidden> wrote:
> Le jeudi 18 décembre 2014, 20:00:02 David Mertens a écrit :
>> Good catch. I'm not closely acquainted with this particular section of
>> code, but your observation looks correct to me, and the fix looks right.
> I have 2 minor nitpick though (I know it's already commited). First, with that
> change buf is no longer declared at the start of a block (C89 style) and this
> is the coding style used in tcc. Second, it would be more consistent and
> clearer to declare it in the same scope as name since they are both used in
> the same scope.
Good point. I will fix this later.