tinycc-devel
[Top][All Lists]
Advanced

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

[Tinycc-devel] enum tccpp phase error


From: lifenjoiner
Subject: [Tinycc-devel] enum tccpp phase error
Date: Sun, 15 Jun 2014 04:06:59 +0800

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


reply via email to

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