/* 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?

Can somebody give any help?

Attachment: enum_err.c
Description: Binary data

Attachment: 17_enum.c
Description: Binary data

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

Reply via email to