Hello!

I applied Filip Navara's patch, that allow tcc deal with anonymous 
struct/unions, and found, that tcc is not accept code like that:

//----------------
typedef struct {
  int any_member;
  ;// just placeholder -
  //  we can put semicolon in almost each place of code :)
} my_struct_t;
//----------------

I havent time to test original tcc on that code - may be it accept semicolons.
If you use Filip's patch you can fix it with adding several lines in 
`struct_decl' function:

****
  bit_pos = 0;
  offset = 0;
  while (tok != '}') {
+ if( tok == ';' )
+ {
+   next();
+   continue;
+ }
****
seems, now it should work correctly :)



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

Reply via email to