Lines Matching defs:have
91 static void showanswer(struct unittype * have, struct unittype * want);
652 showanswer(struct unittype * have, struct unittype * want)
657 if (compareunits(have, want)) {
663 showunit(have);
672 else if (have->offset != want->offset) {
675 if (have->quantity) {
678 (have->factor + have->offset-want->offset)/want->factor);
685 have->factor / want->factor,
686 (have->offset-want->offset)/want->factor,
687 want->factor / have->factor,
688 (want->offset - have->offset)/have->factor);
692 ans = have->factor / want->factor;
751 struct unittype have, want;
818 initializeunit(&have);
819 addunit(&have, havestr, 0, 1);
820 completereduce(&have);
824 showanswer(&have, &want);
845 initializeunit(&have);
847 promptstr = "You have: ";
856 } while (addunit(&have, havestr, 0, 1) ||
857 completereduce(&have));
878 showanswer(&have, &want);