tinycc-devel
[Top][All Lists]
Advanced

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

Re: [Tinycc-devel] [PATCH] Check for duplicate definitions of variables


From: KHMan
Subject: Re: [Tinycc-devel] [PATCH] Check for duplicate definitions of variables
Date: Wed, 14 Nov 2007 11:38:13 +0800
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070802 SeaMonkey/1.1.4

Joshua Phillips wrote:
> oops, slight mistake, sorry. Here is replacement patch.
> ----------
> I was going to send this as a high-tech Mercurial bundle, but then I realized 
> I'd transplanted the parent, so it was a bit difficult. Here's a low-tech 
> patch file instead.
> 
>     Check for duplicate definitions of variables
>     
>     Added global "Sym *local_compound" which is a pointer into the local
>     symbol stack to mark the start of the current compound statement.
>     
>     The following are valid:
>     int a, a; /* in a global context */
>     int a; { int a; } /* in a function */
>     
>     The following now throw errors:
>     int a, a; /* in a function */
>     void foo(int a, int a);
>     enum { a, a };
>     union { int a; int a; };
>     struct { int a; struct { int a; }; };

This is a pending patch I found in my tcc e-mail folder. There may
be more, if so, please ping the list.

I'll need an aye from someone before committing.

As always, maintainers/developers for tcc's Mercurial repository
wanted.

Thanks,
-- 
Cheers,
Kein-Hong Man (esq.)
Kuala Lumpur, Malaysia





reply via email to

[Prev in Thread] Current Thread [Next in Thread]