X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=type_hash.c;h=d731867b4dcbcbda9bf29d0f72bf55fd4f2666e0;hb=a2c47f9d691b8785bf4036c4c3e02ef123d0c9c8;hp=1b491afa24ea65fb77bc8f7b5e64373ef36b39b4;hpb=61bb8cbf62e7ca43ca99859159cc159bdb6c405c;p=cparser diff --git a/type_hash.c b/type_hash.c index 1b491af..d731867 100644 --- a/type_hash.c +++ b/type_hash.c @@ -53,7 +53,7 @@ static unsigned hash_type(const type_t *type); static unsigned hash_function_type(const function_type_t *type) { - unsigned result = hash_ptr(type->result_type); + unsigned result = hash_ptr(type->return_type); function_parameter_t *parameter = type->parameters; while(parameter != NULL) { @@ -130,12 +130,14 @@ static bool atomic_types_equal(const atomic_type_t *type1, static bool function_types_equal(const function_type_t *type1, const function_type_t *type2) { - if(type1->result_type != type2->result_type) + if(type1->return_type != type2->return_type) return false; if(type1->variadic != type2->variadic) return false; if(type1->unspecified_parameters != type2->unspecified_parameters) return false; + if(type1->kr_style_parameters != type2->kr_style_parameters) + return false; function_parameter_t *param1 = type1->parameters; function_parameter_t *param2 = type2->parameters;