Skip "extern" in type definitions.
This makes supporting gcc >= 10 easier in GNU Mes. * cc_types.c (type_name): Skip "extern".
This commit is contained in:
parent
d80d8a652b
commit
d223581d4e
|
@ -261,6 +261,13 @@ struct type* type_name()
|
|||
struct type* ret;
|
||||
|
||||
require(NULL != global_token, "Recieved EOF instead of type name\n");
|
||||
|
||||
if(match("extern", global_token->s))
|
||||
{
|
||||
global_token = global_token->next;
|
||||
require(NULL != global_token, "unfinished type definition in extern\n");
|
||||
}
|
||||
|
||||
if(match("struct", global_token->s))
|
||||
{
|
||||
global_token = global_token->next;
|
||||
|
|
Loading…
Reference in New Issue