Searched refs:xp (Results 1 - 25 of 53) sorted by relevance

123

/ast/src/cmd/nmake/
H A Dconvert.c71 expandops(register char* xp, register char* ed, int del) argument
149 *xp++ = ' ';
154 *xp++ = '`';
156 *xp++ = DEL;
157 *xp++ = ' ';
158 xp = strcopy(xp, val);
339 dp = xp;
340 *xp++ = ' ';
345 *xp
694 expandvar(register char* xp, register char* v) argument
803 expand(register char* xp, register char* a) argument
[all...]
H A Dexpand.c326 * expand one instance of v not in w into xp
331 uniq(Sfio_t* xp, char* v, char* w, int sep) argument
362 sfputc(xp, ' ');
365 sfputr(xp, s, -1);
382 sfputc(xp, ' ');
385 sfputr(xp, s, -1);
395 * if c!=0 then c marked prereqs listed in xp
396 * otherwise m marked prereqs listed in xp
397 * xp==0 removes marks
401 mark(Sfio_t* xp, Rule_ argument
441 closure(Sfio_t* xp, char* v, char* w) argument
489 cross(Sfio_t* xp, char* v, char* w) argument
552 intersect(Sfio_t* xp, char* v, char* w, int sep) argument
646 hasprereq(Sfio_t* xp, char* v, char* w) argument
686 linebreak(Sfio_t* xp, register char* s, char* pfx) argument
720 listtab(Sfio_t* xp, Hash_table_t* tab, char* pat, int flags) argument
777 list(Sfio_t* xp, register char* s, char* pat, int flags) argument
948 sort(Sfio_t* xp, register char* s, int flags) argument
995 relative(Sfio_t* xp, register char* s, register char* t) argument
1094 native(Sfio_t* xp, const char* s) argument
1138 order_descend(Sfio_t* xp, Hash_table_t* tab, Rule_t* r, unsigned long mark, unsigned int flags) argument
1211 order_all(Sfio_t* xp, Sfio_t* tmp, Sfio_t* vec, Hash_table_t* tab, Rule_t* d, char* makefiles, char* skip, unsigned int flags) argument
1236 order_scan(Sfio_t* xp, Sfio_t* tmp, Sfio_t* vec, Hash_table_t* tab, Rule_t* d, Rule_t* r, char* makefiles, char* skip, unsigned int flags) argument
1292 order_find(Sfio_t* xp, Sfio_t* tmp, Sfio_t* vec, Hash_table_t* tab, char* dir, char* files, char* makefiles, char* skip, unsigned int flags) argument
1385 order_recurse(Sfio_t* xp, char* directories, char* makefiles, char* skip, char* targets, unsigned int flags) argument
1687 pathop(Sfio_t* xp, register char* s, char* op, int sep) argument
2200 edit(Sfio_t* xp, register char* s, char* dir, char* bas, char* suf) argument
2277 substitute(Sfio_t* xp, regex_t* re, register char* s) argument
2293 mimetype(Sfio_t* xp, char* file) argument
2331 token(Sfio_t* xp, char* s, register char* p, int sep) argument
2896 parentage(Sfio_t* xp, register Rule_t* r, char* sep) argument
2915 attribute(Sfio_t* xp, char* s, register char* att, int sep) argument
3035 generate(Sfio_t* xp, char* name, char* pat, int sep) argument
3191 shquote(register Sfio_t* xp, char* s) argument
3335 expandall(register Sfio_t* xp, register unsigned long all) argument
3371 expandops(Sfio_t* xp, char* v, char* ed, int del, int exp) argument
4470 expandvars(register Sfio_t* xp, register char* s, char* ed, int del, int nvars) argument
4700 expand(register Sfio_t* xp, register char* a) argument
[all...]
/ast/src/cmd/dsslib/ip_t/
H A Dptopen.c118 register Ptprefix_t* xp; local
124 if (!(xp = (Ptprefix_t*)dtsearch(tab->dict, &key)))
125 xp = (Ptprefix_t*)dtnext(tab->dict, &key);
129 if (xp)
131 if (key.min >= xp->min && key.max <= xp->max)
132 return xp;
133 if (key.max >= (xp->min ? (xp->min - 1) : 0))
135 if (key.min > xp
159 register Ptprefix_t* xp; local
[all...]
H A Dptvopen.c137 register Ptvprefix_t* xp; local
150 if (!(xp = (Ptvprefix_t*)dtsearch(tab->dict, &key)))
151 xp = (Ptvprefix_t*)dtnext(tab->dict, &key);
155 if (xp)
157 if (fvcmp(tab->size, key.min, xp->min) >= 0 && fvcmp(tab->size, key.max, xp->max) <= 0)
158 return xp;
159 if (fvcmp(tab->size, xp->min, tab->r[2]) >= 0)
160 fvsub(tab->size, tab->r[3], xp->min, tab->r[2]);
165 if (fvcmp(tab->size, key.min, xp
192 register Ptvprefix_t* xp; local
[all...]
/ast/src/lib/libpz/
H A Dpzfixed.c48 register Fixed_t* xp; local
66 else if (!(s = sfreserve(io, 8 * elementsof(xp->rep), 1)) && !(s = sfreserve(io, SF_UNBOUND, 1)))
93 if (!n && (xp = newof(0, Fixed_t, 1, 0)))
100 cp = xp->hit + s[i];
103 if (m < elementsof(xp->rep))
107 xp->rep[m]++;
115 if ((siz <= 0 || !(siz % i)) && xp->rep[i] > xp->rep[n])
123 g = (((g * 100) / i) * 100) / xp->rep[i];
125 (*trace)(pz, pz->disc, -2, "pzfixed: %5d %8d %8ld %8ld%s", i, xp
[all...]
H A Dpzconvert.c220 Chain_t* xp; local
246 xp = vmnewof(pz->vm, 0, Chain_t, 1, 0);
247 xp->next = cp;
248 xp->convert = stk[m];
249 return xp;
350 register Pzconvert_t* xp; local
375 for (xp = state->conversions; ; xp++)
376 if (!xp->from)
382 else if (streq(opt_info.arg, xp
[all...]
/ast/src/lib/libpp/
H A Dppsearch.c115 register struct ppfile* xp; local
152 !(fp->flags & INC_MEMBER(INC_STANDARD)) && (xp = fp->bound[INC_STANDARD]) ? xp->name : NiL,
297 xp = ppsetfile(s);
298 xp->flags |= INC_MEMBER(dp->index);
299 xp->bound[dp->index] = (struct ppfile*)ap;
300 if (pp.test & 0x0020) error(1, "VDB#%d %s %s index=%d data=<%lu,%lu>", __LINE__, dp->name, xp->name, index, ap->offset, ap->size);
358 mp = xp = 0;
366 xp = fp->bound[index];
374 if (!xp || !stre
602 struct ppfile* xp; local
[all...]
H A Dppfsm.h221 #define GET(p,c,tp,xp) \
225 FGET(p, c, tp, xp); \
228 #define FGET(p,c,tp,xp) \
231 if (op > xp + PPTOKSIZ) \
235 op = xp + PPTOKSIZ; \
H A Dpplex.c55 #define CACHEOUTX() do{tp=op=pp.outp;xp=pp.oute;if(sp)sp=op;}while(0)
69 #define PPCHECKOUT() do{if(op>xp){{PPWRITE(PPBUFSIZ);if(pp.outbuf==pp.outb){pp.outbuf+=PPBUFSIZ;xp=pp.oute+=PPBUFSIZ;}else{pp.outbuf-=PPBUFSIZ;memcpy(pp.outbuf,xp,op-xp);xp=pp.oute-=PPBUFSIZ;op-=2*PPBUFSIZ;}}}}while(0)
70 #define PPCHECKOUTSP() do{if(op>xp){if(sp)op=sp;else{PPWRITE(PPBUFSIZ);if(pp.outbuf==pp.outb){pp.outbuf+=PPBUFSIZ;xp=pp.oute+=PPBUFSIZ;}else{pp.outbuf-=PPBUFSIZ;memcpy(pp.outbuf,xp,op-xp);x
155 #define xp macro
195 char* xp; local
[all...]
/ast/src/lib/librecsort/
H A Drskey.c103 unsigned char* xp = dp; local
104 unsigned char* ep = xp + len; /* end pointer */
119 while (xp < ep && blank(trans[*xp])) xp++;
125 if (xp < ep)
126 switch (trans[*xp])
132 xp++;
140 while (xp < ep && trans[*xp]
281 unsigned char* xp = dp; local
347 unsigned char* xp = dp; local
412 unsigned char* xp = cp; local
445 unsigned char* xp = cp; local
625 unsigned char* xp = dat + datlen; local
[all...]
/ast/src/lib/libast/uwin/
H A Dexp__E.c118 double z,p,q,xp,xh,w; local
127 xp= x*p ;
129 w = xh-(q-xp) ;
131 c += x*((xh*w-(q-(p+xp)))/(one-w)+c);
/ast/src/cmd/mailx/
H A Dfio.c118 struct match* xp; local
170 for (xp = state.bodymatch->match; xp; xp = xp->next)
171 if (count >= xp->length && cp[0] == xp->beg && cp[xp->length/2] == xp->mid && cp[xp
253 mhgetcontext(register struct mhcontext* xp, const char* name, int next) argument
319 mhputcontext(register struct mhcontext* xp, const char* name) argument
[all...]
H A Dvars.c650 register struct match* xp; local
666 if (!(xp = newof(0, struct match, 1, n)))
668 memcpy(xp->string, s, n);
669 xp->length = n;
670 mp->beg[xp->beg = s[0]] = 1;
671 mp->mid[xp->mid = s[n/2]] = 1;
672 mp->end[xp->end = s[n-1]] = 1;
674 mp->last = mp->last->next = xp;
676 mp->match = mp->last = xp;
778 register struct name* xp; local
[all...]
/ast/src/lib/libcmd/
H A Drev.c64 register wchar_t *wp, *xp; local
83 xp = wp;
85 *xp++ = mbchar(cp);
87 while (xp > wp)
88 cp += mbconv(cp, *--xp);
/ast/src/cmd/msgcc/
H A Dmsggen.c133 translation(Xl_t* xp, register char* s) argument
155 for (px = xp; px; px = px->next)
171 px->next = xp;
172 xp = px;
176 return xp;
227 Xl_t* xp = 0; local
366 xp = translation(xp, mc->translation);
409 xp = translation(xp,
[all...]
/ast/src/lib/libcs/
H A Dmsguser.c36 * if xp!=0 then it replaces the first MSG_ARG_file or MSG_ARG_string args
41 msgvcall(int fd, unsigned long channel, unsigned long call, Msg_return_t* ret, void** xp, va_list ap) argument
73 oxp = xp;
87 ip = xp ? (Msg_file_t*)(*xp) : va_arg(ap, Msg_file_t*);
163 ip = (xp && *xp) ? (Msg_file_t*)(*xp++) : va_arg(ap, Msg_file_t*);
202 ip = (xp && *xp)
393 msgvreturn(int fd, unsigned long call, void** xp, va_list ap) argument
[all...]
/ast/src/cmd/sortlib/sync/
H A Dss.c924 register Ssexpr_t* xp; local
939 if (!(xp = compile(ss, 1)))
948 else if (!(xp = vmnewof(ss->vm, 0, Ssexpr_t, 1, 0)))
956 xp->op = SS_OP_not;
957 if (!(xp->left.expr = compile(ss, 13)))
968 xp->left.field = dp;
971 xp->op = SS_OP_field;
1014 xp->op = SS_OP_value;
1038 xp->op = SS_OP_value;
1059 xp
1099 register Ssexpr_t* xp; local
1224 finalize(Ss_t* ss, register Ssexpr_t* xp, int type) argument
1335 register Ssexpr_t* xp; local
1842 listexpr(Ss_t* ss, Sfio_t* io, Ssexpr_t* xp) argument
2409 sseval(Ss_t* ss, register Ssexpr_t* xp, const char* buf, size_t size) argument
[all...]
/ast/src/cmd/codexlib/zip/
H A Dhuff.c77 ulg *xp; /* pointer into x */ local
122 p = c + 1; xp = x + 2;
124 *xp++ = (j += *p++);
163 xp = c + k;
166 if((f <<= 1) <= *++xp)
168 f -= *xp; /* else deduct codes from patterns */
/ast/src/cmd/ksh93/sh/
H A Dnvtree.c491 char **xp=0; local
509 if(ap && !array_assoc(ap) && (xp=(char**)(ap+1)) && *xp)
510 ip = nv_namptr(*xp,0)->nvname;
582 char *fmtq,*ep,*xp; local
647 xp = 0;
650 xp = ep+nv_size(np);
651 while(--xp>ep && *xp==' ');
652 if(xp>e
727 Namfun_t *xp; local
965 walk_tree(register Namval_t *np, Namval_t *xp, int flags) argument
[all...]
/ast/src/cmd/std/
H A Dps.c1040 register Ps_t* xp; local
1054 xp = pp;
1057 xp->ps->pss |= PSS_PARENT;
1058 } while ((xp = (Ps_t*)dtmatch(state.bypid, &xp->ps->ppid)) && !xp->ps->pss);
1064 xp = pp;
1067 xp->seen = 1;
1068 if (xp->ps->pss & (PSS_ANCESTOR|PSS_EXPLICIT|PSS_MATCHED))
1070 xp
[all...]
/ast/src/lib/libast/regex/
H A Dregclass.c192 Ctype_t* xp; local
203 xp = zp = 0;
212 else if (!xp && cp->next && cp->next != lc)
213 xp = cp;
222 if (!(cp = xp))
/ast/src/cmd/coshell/
H A Dschedule.c85 Coshell_t* xp; local
199 cp = mp = sp = xp = 0;
220 * xp worst open
240 if (!ap->home && (!xp || ap->temp < PCT(xp->temp, H_TEMP) || (ap->mode & SHELL_DENIED) || matched && xm && PCT(ap->temp, H_TEMP) < xp->temp && ap->rank > xp->rank))
242 xp = ap;
292 message((-4, "open=%d override=%d sp=%s mp=%s xp=%s dp=%s dt=%s", nopen, noverride, sp ? sp->name : "*", mp ? mp->name : "*", xp
[all...]
/ast/src/lib/libast/astsa/
H A Doptlib.h77 Sfio_t* xp; /* translation string stream */ member in struct:Optstate_s
/ast/src/lib/libast/misc/
H A Doptlib.h83 Sfio_t* xp; /* translation string stream */ member in struct:Optstate_s
/ast/src/lib/libjcl/
H A Dpath.c332 Suf_t* xp; local
350 if (!(xp = newof(0, Suf_t, 1, n)))
356 strcpy(xp->name, s);
357 xp->length = n;
358 dtinsert(state.suf, xp);
618 Suf_t* xp; local
621 return (state.suf && (s = strrchr(path, '.')) && (xp = (Suf_t*)dtmatch(state.suf, s))) ? xp->length : 0;

Completed in 67 milliseconds

123