X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-psi;a=blobdiff_plain;f=src%2Fparser_proc.y;h=2fb309ea0c983cce74587517bf28eef72d28e7a8;hp=b606cf0ab7547d57640004f3dfdaea4934562c2c;hb=469fe3395cb9696e32bcd64639f22113d8fb2ec6;hpb=eea1703836c35020dd45e465f5cb1450eadfaa1c diff --git a/src/parser_proc.y b/src/parser_proc.y index b606cf0..2fb309e 100644 --- a/src/parser_proc.y +++ b/src/parser_proc.y @@ -179,22 +179,6 @@ decl_type(type_) ::= VOID(T). { type_ = init_decl_type(T->type, T->text); free(T); } -decl_type(type_) ::= CHAR(T). { - type_ = init_decl_type(T->type, T->text); - free(T); -} -decl_type(type_) ::= SHORT(T). { - type_ = init_decl_type(T->type, T->text); - free(T); -} -decl_type(type_) ::= INT(T). { - type_ = init_decl_type(T->type, T->text); - free(T); -} -decl_type(type_) ::= LONG(T). { - type_ = init_decl_type(T->type, T->text); - free(T); -} decl_type(type_) ::= FLOAT(T). { type_ = init_decl_type(T->type, T->text); free(T); @@ -203,8 +187,9 @@ decl_type(type_) ::= DOUBLE(T). { type_ = init_decl_type(T->type, T->text); free(T); } -decl_type(type_) ::= SIZE_T(T). { - type_ = init_decl_type(T->type, T->text); +/* we have to support plain int here because we have it in our lexer rules */ +decl_type(type_) ::= INT(T). { + type_ = init_decl_type(PSI_T_NAME, T->text); free(T); } decl_type(type_) ::= INT8(T). {