• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/contrib/tcsh/

Lines Matching refs:val

13  *		int GetXkey(ch,val);
15 * XmapVal *val;
20 * Returns NULL in val.str and XK_STR for no match.
23 * void AddXkey(Xkey, val, ntype);
25 * XmapVal *val;
28 * Adds Xkey to the Xmap and associates the value in val with it.
104 XmapVal val; /* command code or pointer to string, if this
161 GetXkey(CStr *ch, XmapVal *val)
163 return (TraverseMap(Xmap, ch, val));
171 TraverseMap(XmapNode *ptr, CStr *ch, XmapVal *val)
180 val->cmd = F_SEND_EOF;
184 return (TraverseMap(ptr->next, ch, val));
187 *val = ptr->val;
197 return (TraverseMap(ptr->sibling, ch, val));
201 val->str.buf = NULL;
202 val->str.len = 0;
209 AddXkey(const CStr *Xkey, XmapVal *val, int ntype)
219 if (ntype == XK_CMD && val->cmd == F_XKEY) {
230 (void) TryNode(Xmap, &cs, val, ntype);
235 TryNode(XmapNode *ptr, CStr *str, XmapVal *val, int ntype)
265 xfree(ptr->val.str.buf);
266 ptr->val.str.len = 0;
278 ptr->val = *val;
282 ptr->val.str.len = val->str.len;
283 len = (val->str.len + 1) * sizeof(*ptr->val.str.buf);
284 ptr->val.str.buf = xmalloc(len);
285 (void) memcpy(ptr->val.str.buf, val->str.buf, len);
296 (void) TryNode(ptr->next, str, val, ntype);
397 xfree(ptr->val.str.buf);
418 ptr->val.str.buf = NULL;
419 ptr->val.str.len = 0;
488 printOne(buf->s, &ptr->val, ptr->type);
523 printOne(buf->s, &ptr->val, ptr->type);
538 * function specified by val
541 printOne(const Char *key, const XmapVal *val, int ntype)
547 if (val != NULL)
553 p = unparsestring(&val->str, ntype == XK_STR ? STRQQ : STRBB);
561 if (val->cmd == fp->func)
658 int cnt, val;
661 for (cnt = 0, val = 0; cnt < 3; cnt++) {
667 val = (val << 3) | (ch - '0');
669 if ((val & ~0xff) != 0) {
675 if (CTL_ESC(val) != val && adrof(STRwarnebcdic))
677 "Warning: Octal constant \\%3.3o is interpreted as EBCDIC value.\n", val/*)*/);
679 c = (Char) val;