More work for C++ mode:
[cparser] / type_hash.c
index d20759f..88de01c 100644 (file)
@@ -98,7 +98,7 @@ static unsigned hash_function_type(const function_type_t *type)
                result   ^= hash_ptr(parameter->type);
                parameter = parameter->next;
        }
-       result += type->calling_convention;
+       result ^= hash_ptr(type->linkage);
 
        return result;
 }
@@ -208,7 +208,7 @@ 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->calling_convention != type2->calling_convention)
+       if (type1->linkage != type2->linkage)
                return false;
 
        function_parameter_t *param1 = type1->parameters;