Lines Matching defs:kp
396 register Key_t* kp;
401 if (!(kp = (Key_t*)dtmatch(state.keys, fp->t_str)))
408 if (!(kp = newof(0, Key_t, 1, strlen(fp->t_str) + 1)))
410 kp->name = strcpy((char*)(kp + 1), fp->t_str);
411 kp->macro = getenv(fp->t_str + 1);
412 kp->index = KEY_environ;
413 kp->disable = 1;
414 dtinsert(state.keys, kp);
416 if (kp->macro && !kp->disable)
418 kp->disable = 1;
419 sfkeyprintf(state.mac, handle, kp->macro, key, NiL);
422 kp->disable = 0;
428 s = kp->heading;
431 if (!kp->width)
432 kp->width = keys[KEY_blocks].width;
433 if ((fp->width = kp->width) < 0)
440 if (fp->width > 0 && fp->width < strlen(kp->heading))
442 if (fp->width < kp->abbrev)
444 fp->width = kp->abbrev;
448 if (t = newof(0, char, kp->abbrev, 1))
449 s = kp->heading = (char*)memcpy(t, kp->heading, kp->abbrev);
451 kp->width = fp->width;
453 kp->width = -kp->width;
459 if ((fp->flags & SFFMT_ALTER) && (fp->width = kp->width) < 0)
464 switch (kp->index)
476 if (!(s = kp->macro))
667 Key_t* kp;
724 if (!(kp = (Key_t*)dtmatch(state.keys, opt_info.arg)))
728 if (!(kp = newof(0, Key_t, 1, strlen(opt_info.arg) + 1)))
730 kp->name = strcpy((char*)(kp + 1), opt_info.arg);
731 dtinsert(state.keys, kp);
733 if (kp->macro = s)