[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Tinycc-devel] latest mob broken on typedefs
From: |
Thomas Preud'homme |
Subject: |
Re: [Tinycc-devel] latest mob broken on typedefs |
Date: |
Mon, 7 Feb 2011 23:53:23 +0100 |
User-agent: |
KMail/1.13.5 (Linux/2.6.32-5-686; KDE/4.4.5; i686; ; ) |
Le lundi 07 février 2011 22:04:48, Aharon Robbins a écrit :
> Hi All.
>
> I just checked out the latest mob and tried to compile gawk. It fails.
> Here is a reduced test case:
>
> $ cat testit.c
>
> typedef struct {
> int member1;
> } moo;
>
> static int foo()
> {
> static moo boo;
>
> return 1;
> }
> $ tcc testit.c
> testit.c:8: error: Function without file scope cannot be static
>
> Thanks,
>
> Arnold
Fixed, you can try the latest mob again. Thanks grishka for the comments, I
forgot the & BTYPE for testing the type. I also moved the code just below.
Thomas
signature.asc
Description: This is a digitally signed message part.