comparison dmd/func.c @ 717:a26b0c5d5942

Merged DMD 1.036. Improved comments a little in the runtime source code.
author Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
date Wed, 22 Oct 2008 17:06:17 +0200
parents 06576ece1a1b
children bc982f1ad106
comparison
equal deleted inserted replaced
716:b654bb98d31d 717:a26b0c5d5942
1580 if (f != m->lastf) // skip duplicates 1580 if (f != m->lastf) // skip duplicates
1581 { 1581 {
1582 m->anyf = f; 1582 m->anyf = f;
1583 TypeFunction *tf = (TypeFunction *)f->type; 1583 TypeFunction *tf = (TypeFunction *)f->type;
1584 match = (MATCH) tf->callMatch(arguments); 1584 match = (MATCH) tf->callMatch(arguments);
1585 //printf("match = %d\n", match); 1585 //printf("1match = %d\n", match);
1586 if (match != MATCHnomatch) 1586 if (match != MATCHnomatch)
1587 { 1587 {
1588 if (match > m->last) 1588 if (match > m->last)
1589 goto LfIsBetter; 1589 goto LfIsBetter;
1590 1590
1656 TypeFunction *tf; 1656 TypeFunction *tf;
1657 1657
1658 m->anyf = f; 1658 m->anyf = f;
1659 tf = (TypeFunction *)f->type; 1659 tf = (TypeFunction *)f->type;
1660 match = (MATCH) tf->callMatch(arguments); 1660 match = (MATCH) tf->callMatch(arguments);
1661 //printf("match = %d\n", match); 1661 //printf("2match = %d\n", match);
1662 if (match != MATCHnomatch) 1662 if (match != MATCHnomatch)
1663 { 1663 {
1664 if (match > m->last) 1664 if (match > m->last)
1665 goto LfIsBetter; 1665 goto LfIsBetter;
1666 1666