Lines Matching refs:ldesc
2313 struct latch_descr *ldesc; in end_problem_latch() local
2317 ldesc = find_latch(mask); in end_problem_latch()
2318 if (ldesc->end_message && (ldesc->flags & PRL_LATCHED)) { in end_problem_latch()
2320 answer = fix_problem(ctx, ldesc->end_message, &pctx); in end_problem_latch()
2322 ldesc->flags &= ~(PRL_VARIABLE); in end_problem_latch()
2328 struct latch_descr *ldesc; in set_latch_flags() local
2330 ldesc = find_latch(mask); in set_latch_flags()
2331 if (!ldesc) in set_latch_flags()
2333 ldesc->flags |= setflags; in set_latch_flags()
2334 ldesc->flags &= ~clearflags; in set_latch_flags()
2340 struct latch_descr *ldesc; in get_latch_flags() local
2342 ldesc = find_latch(mask); in get_latch_flags()
2343 if (!ldesc) in get_latch_flags()
2345 *value = ldesc->flags; in get_latch_flags()
2413 struct latch_descr *ldesc = 0; in fix_problem() local
2465 ldesc = find_latch(ptr->flags & PR_LATCH_MASK); in fix_problem()
2466 if (ldesc->question && !(ldesc->flags & PRL_LATCHED)) { in fix_problem()
2467 ans = fix_problem(ctx, ldesc->question, pctx); in fix_problem()
2469 ldesc->flags |= PRL_YES; in fix_problem()
2471 ldesc->flags |= PRL_NO; in fix_problem()
2472 ldesc->flags |= PRL_LATCHED; in fix_problem()
2474 if (ldesc->flags & PRL_SUPPRESS) in fix_problem()
2490 (ldesc->flags & (PRL_YES | PRL_NO))) in fix_problem()
2536 (ldesc->flags & (PRL_YES | PRL_NO))) { in fix_problem()
2538 if (ldesc->flags & PRL_YES) in fix_problem()