X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=type_hash.c;h=ad0732f8164783b0996f2b05daf26cc06a40e615;hb=c91a949920b54a81853baa202dc1373194825def;hp=d20759ffe63f37888cb5c9533c391ea0ad9627c4;hpb=e97bf80ad2ba7f01d4a2b51d243d6273ae2d65a1;p=cparser diff --git a/type_hash.c b/type_hash.c index d20759f..ad0732f 100644 --- a/type_hash.c +++ b/type_hash.c @@ -98,6 +98,7 @@ static unsigned hash_function_type(const function_type_t *type) result ^= hash_ptr(parameter->type); parameter = parameter->next; } + result += type->linkage; result += type->calling_convention; return result; @@ -208,6 +209,8 @@ static bool function_types_equal(const function_type_t *type1, return false; if (type1->kr_style_parameters != type2->kr_style_parameters) return false; + if (type1->linkage != type2->linkage) + return false; if (type1->calling_convention != type2->calling_convention) return false;