Lines Matching defs:lookup
11 /* int mac_expand(result, pattern, flags, filter, lookup, context)
16 /* const char *lookup(const char *key, int mode, void *context)
89 /* Expand attributes in lookup results. This should never be
107 /* .IP lookup
108 /* The attribute lookup routine. Arguments are: the attribute name,
114 /* Caller context that is passed on to the attribute lookup routine.
201 MAC_EXP_LOOKUP_FN lookup; /* lookup routine */
400 static int mac_exp_parse_relational(MAC_EXP_CONTEXT *mc, const char **lookup,
471 mc->flags, mc->filter, mc->lookup, mc->context);
474 mc->flags, mc->filter, mc->lookup, mc->context);
485 * Here, we fake up a non-empty or empty parameter value lookup result,
490 *lookup = 0;
494 *lookup = MAC_EXP_BVAL_TRUE;
497 *lookup = MAC_EXP_BVAL_FALSE;
547 const char *lookup;
577 if (mac_exp_parse_relational(mc, &lookup, &cp) != 0)
624 * Look up the named parameter. Todo: allow the lookup function
627 lookup = mc->lookup(start, lookup_mode, mc->context);
649 if ((lookup != 0 && *lookup != 0) || (mc->flags & MAC_EXP_FLAG_SCAN))
667 if (lookup == 0 || *lookup == 0 || (mc->flags & MAC_EXP_FLAG_SCAN))
675 if (lookup == 0) {
677 } else if (*lookup == 0 || (mc->flags & MAC_EXP_FLAG_SCAN)) {
680 vstring_strcpy(buf, lookup);
685 vstring_strcat(mc->result, lookup);
715 MAC_EXP_LOOKUP_FN lookup, void *context)
726 mc.lookup = lookup;
749 static const char *lookup(const char *name, int unused_mode, void *context)
834 (char *) 0, lookup, (void *) table);