summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
c6fc407)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@5004
4a8a32a2-be11-0410-ad9d-
d568d2c75423
+2008-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
+
+ * src/SDCCsymt.c (compareType): fixed bug 1309013
+
2008-02-09 Borut Razem <borut.razem AT siol.net>
* src/SDCCval.c, src/SDCCval.h:
2008-02-09 Borut Razem <borut.razem AT siol.net>
* src/SDCCval.c, src/SDCCval.h:
return -1;
if (IS_FUNC (dest->next) && IS_VOID(src->next))
return -1;
return -1;
if (IS_FUNC (dest->next) && IS_VOID(src->next))
return -1;
- return compareType (dest->next, src->next);
+ if (IS_VOID (src->next) && IS_VOID (dest->next))
+ return 1;
+ if ((IS_VOID (src->next) && !IS_VOID (dest->next)) ||
+ (!IS_VOID (src->next) && IS_VOID (dest->next)) )
+ return -1;
+ if (compareType (dest->next, src->next) == 1)
+ return 1;
+ else
+ return 0;
}
if (DCL_TYPE (src) == DCL_TYPE (dest))
}
if (DCL_TYPE (src) == DCL_TYPE (dest))
{
//checkFunction(src,dest);
}
{
//checkFunction(src,dest);
}
- return compareType (dest->next, src->next);
+ if (IS_VOID (src->next) && IS_VOID (dest->next))
+ return 1;
+ if ((IS_VOID (src->next) && !IS_VOID (dest->next)) ||
+ (!IS_VOID (src->next) && IS_VOID (dest->next)) )
+ return -1;
+ if (compareType (dest->next, src->next) == 1)
+ return 1;
+ else
+ return 0;
}
if (IS_PTR (dest) && IS_GENPTR (src) && IS_VOID(src->next))
{
}
if (IS_PTR (dest) && IS_GENPTR (src) && IS_VOID(src->next))
{