Searched defs:kp (Results 1 - 14 of 14) sorted by relevance

/ast/src/lib/librecsort/
H A Drskeydump.c31 dump(register Rskey_t* kp, Sfio_t* sp, register Rskeyfield_t* fp, const char* type) argument
33 dump(kp, sp, fp, type)
34 register Rskey_t* kp;
47 sfprintf(sp, "\t keep = %s\n", fp->keep == kp->state->all ? "all" : fp->keep == kp->state->print ? "print" : fp->keep == kp->state->dict ? "dict" : fp->keep ? "UNKNOWN" : "all");
48 sfprintf(sp, "\t trans = %s\n", fp->trans == kp->state->ident ? "ident" : fp->trans == kp->state->fold ? "fold" : fp->trans ? "UNKNOWN" : "ident");
61 rskeydump(register Rskey_t* kp, register Sfio_t* sp) argument
63 rskeydump(kp, s
[all...]
H A Drskeymeth.c44 rskeymeth(register Rskey_t* kp, const char* name) argument
46 rskeymeth(kp, name)
47 register Rskey_t* kp;
67 rskeylist(register Rskey_t* kp, Sfio_t* fp, int usage) argument
69 rskeylist(kp, fp, usage)
70 register Rskey_t* kp;
H A Drskeyopen.c78 register Rskey_t* kp; local
84 if (!(kp = vmnewof(Vmheap, 0, Rskey_t, 1, disc ? 0 : sizeof(Rsdisc_t))))
86 kp->id = lib;
87 kp->disc = disc ? disc : (Rsdisc_t*)(kp + 1);
88 kp->disc->version = keydisc->version;
89 kp->disc->keylen = -1;
90 kp->disc->data = REC_D_TYPE('\n');
91 kp->keydisc = keydisc;
92 kp
117 rskeyclose(Rskey_t* kp) argument
[all...]
H A Drslib.c32 rslib(Rs_t* rs, Rskey_t* kp, const char* lib, int flags) argument
34 rslib(rs, kp, lib, flags)
36 Rskey_t* kp;
54 if (!(flags & RS_IGNORE) && kp->keydisc->errorf)
55 (*kp->keydisc->errorf)(kp, kp->keydisc, 2, "%s: library not found", path);
60 if (!(flags & RS_IGNORE) && kp->keydisc->errorf)
61 (*kp->keydisc->errorf)(kp, k
[all...]
H A Drskey.c59 * len. Put the result in kp.
90 key_n_code(Rskey_t* kp, Rskeyfield_t* f, unsigned char* dp, size_t len, unsigned char* cp, unsigned char* zp) argument
92 key_n_code(kp, f, dp, len, cp, zp)
93 Rskey_t* kp;
245 if (kp->keydisc->errorf)
246 (*kp->keydisc->errorf)(kp, kp->keydisc, 1, "%-.*s: numeric field overflow", len, dp);
268 key_p_code(Rskey_t* kp, Rskeyfield_t* f, unsigned char* dp, size_t len, unsigned char* cp, unsigned char* zp) argument
270 key_p_code(kp,
334 key_z_code(Rskey_t* kp, Rskeyfield_t* f, unsigned char* dp, size_t len, unsigned char* cp, unsigned char* zp) argument
401 key_j_code(Rskey_t* kp, Rskeyfield_t* f, unsigned char* dp, size_t len, unsigned char* cp, unsigned char* zp) argument
434 key_t_code(Rskey_t* kp, Rskeyfield_t* f, unsigned char* dp, size_t len, unsigned char* cp, unsigned char* zp) argument
554 key_m_code(Rskey_t* kp, Rskeyfield_t* f, unsigned char* dp, size_t len, unsigned char* cp, unsigned char* zp) argument
619 Rskey_t* kp = rs ? rs->key : (Rskey_t*)((char*)disc - sizeof(Rskey_t)); local
723 conflict(Rskey_t* kp, int c) argument
739 checkfield(Rskey_t* kp, Rskeyfield_t* fp, const char* key, int c) argument
771 addcoder(Rskey_t* kp, Rskeyfield_t* fp, Rskeycode_f np, int c, int b) argument
795 addtable(Rskey_t* kp, int c, unsigned char** op, unsigned char* np) argument
816 addopt(Rskey_t* kp, register Rskeyfield_t* fp, register char* s, int end) argument
967 rskeyopt(Rskey_t* kp, const char* key, int all) argument
1002 rskey(Rskey_t* kp, const char* key, int obsolete) argument
1122 transform(Rskey_t* kp, register Rskeyfield_t* fp) argument
1173 rskeyinit(register Rskey_t* kp) argument
[all...]
/ast/src/lib/libpp/
H A Dppcall.c58 struct ppinstk* kp; local
356 kp = 0;
358 for (kp = pp.in; kp && kp != old_in; kp = kp->prev);
359 if (!kp)
396 for (kp = pp.in; kp
[all...]
H A Dppop.c367 register struct ppkeyword* kp; local
492 if (kp = va_arg(ap, struct ppkeyword*))
493 for (; s = kp->name; kp++)
513 key->lex = kp->value;
822 for (kp = predicates; s = kp->name; kp++)
965 for (kp = readonlys; s = kp
[all...]
/ast/src/cmd/dsslib/merge/
H A Dmerge.c77 Key_t* kp; local
83 for (k = 0, kp = state->keys; k < state->nkeys; k++, kp = kp->next)
84 if (cxisstring(kp->variable->type) || cxisbuffer(kp->variable->type))
89 return (r < 0) ? -kp->sense : kp->sense;
91 return -kp->sense;
93 return kp
110 register Key_t* kp; local
[all...]
/ast/src/lib/libast/uwin/
H A Dcrypt.c690 register C_block *kp; local
724 kp = &KS[0];
725 ks_inc = sizeof(*kp);
730 kp = &KS[KS_SIZE-1];
731 ks_inc = -((int) sizeof(*kp));
754 B.b32.i0 = k ^ q0 ^ kp->b32.i0; \
755 B.b32.i1 = k ^ q1 ^ kp->b32.i1; \
756 kp = (C_block *)((char *)kp+ks_inc); \
770 kp
[all...]
/ast/src/cmd/mailx/
H A Dcmd1.c743 register const struct mark* kp; local
766 if (!(kp = (struct mark*)strsearch(marks, elementsof(marks), sizeof(*marks), strcasecmp, mark, NiL))) {
771 set |= kp->clear;
772 clr |= kp->set;
775 set |= kp->set;
776 clr |= kp->clear;
791 for (kp = marks; kp < &marks[elementsof(marks)]; kp++)
792 if (kp
[all...]
/ast/src/cmd/std/
H A Ddf.c396 register Key_t* kp; local
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
667 Key_t* kp; local
[all...]
H A Dps.c565 register Key_t* kp; local
574 if (!(kp = (Key_t*)dtmatch(state.keys, fp->t_str)))
581 if (!(kp = newof(0, Key_t, 1, strlen(fp->t_str) + 1)))
583 kp->name = strcpy((char*)(kp + 1), fp->t_str);
584 kp->macro = getenv(fp->t_str + 1);
585 kp->index = KEY_environ;
586 kp->disable = 1;
587 dtinsert(state.keys, kp);
589 if (!kp
828 register Key_t* kp; local
1124 register Key_t* kp; local
1321 register Key_t* kp; local
1465 Key_t* kp; local
[all...]
H A Dls.c470 register Key_t* kp; local
492 if (!(kp = (Key_t*)hashget(state.keys, fp->t_str)))
499 if (!(kp = newof(0, Key_t, 1, 0)))
501 kp->name = hashput(state.keys, 0, kp);
502 kp->macro = getenv(fp->t_str + 1);
503 kp->index = KEY_environ;
504 kp->disable = 1;
506 if (kp->macro && !kp
1319 Key_t* kp; local
[all...]
/ast/src/cmd/sort/
H A Dmain.c407 showlib(Sort_t* sp, Rskey_t* kp, const char* name, const char* style) argument
416 if (!rslib(sp->rec, kp, args, RS_IGNORE) && !style)
425 showplugins(Sort_t* sp, Rskey_t* kp, const char* style) argument
439 if (*kp->input)
440 while (name = *kp->input++)
441 showlib(sp, kp, name, style);
445 showlib(sp, kp, dle->name, style);

Completed in 34 milliseconds