Handle method parameters that use incomplete types.

Compare the method's type pointers rather than the type strings as the pointer
won't change with the struct is completed.
This commit is contained in:
Bill Currie 2010-11-18 10:44:25 +09:00
parent e28ee0378f
commit 9a3f4d5a01

View file

@ -216,8 +216,7 @@ method_compare (method_t *m1, method_t *m2)
{
if (m1->instance != m2->instance)
return 0;
return strcmp (m1->name, m2->name) == 0
&& strcmp (m1->types, m2->types) == 0;
return strcmp (m1->name, m2->name) == 0 && m1->type == m2->type;
}
keywordarg_t *