Date:2012-05-22 19:27:39 (11 years 10 months ago)
Author:Werner Almesberger
Commit:2ce2da5c30ab1efc4b14b6901f843f4d34a649a6
Message:b2/subst.c (resolve_jump): use pointer comparison instead of strcmp

Both come from "unique".
Files: b2/subst.c (2 diffs)

Change Details

b2/subst.c
286286{
287287    while (parent) {
288288        assert(parent->sub->type == st_match);
289        if (!strcmp(name, parent->sub->u.match.src))
289        if (name == parent->sub->u.match.src)
290290            return parent->sub;
291291        parent = parent->parent;
292292    }
...... 
371371        case st_ignore:
372372            break;
373373        case st_break:
374            /* fall through */
374375        case st_again:
375376            sub->u.jump = resolve_jump(sub->u.tmp, parent);
376377            break;

Archive Download the corresponding diff file

Branches:
master



interactive