On 14/06/14 21:06, [email protected] 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



_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to