[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Tinycc-devel] enum tccpp phase error
From: |
Ramsay Jones |
Subject: |
Re: [Tinycc-devel] enum tccpp phase error |
Date: |
Sat, 14 Jun 2014 21:29:09 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 |
On 14/06/14 21:06, address@hidden wrote:
> /* enum_err.c file */
> #include <stdio.h>
>
> enum hmode {
> HTML_4_01 = 1, /* HTML-4.01 strict */
> XHTML_1_0 = 2 /* XHTML-1.0 strict */
> };
>
> int main (int argc; char *argv[])
--------------------^
> {
> return 0;
> }
> /* enum_err.c end */
>
>
> ==================================================
> tcc version 0.9.26 (i386 Win32)
> ...
> .../enum_err.c:8: error: ',' expected (got ";")
>
> ==================================================
> Found in source code:
> tccpp.c:92: tcc_error("'%c' expected (got \"%s\")", c,
> get_tok_str(tok, &tokc));
> ===> ST_FUNC void skip(int c)
>
> ==================================================
> When I put the enum definition into tcc's tests file, it was complied without
> error!?
> Is this a bug?
No, it's a syntax error. :P
ATB,
Ramsay Jones