Searched refs:cur (Results 1 - 25 of 61) sorted by relevance

123

/ast/src/lib/libast/string/
H A Dfmtversion.c35 register char* cur; local
40 buf = cur = fmtbuf(n = 18);
41 end = cur + n;
43 sfsprintf(cur, end - cur, "%04lu-%02lu-%02lu", (v / 10000) % 10000, (v / 100) % 100, v % 100);
47 cur += sfsprintf(cur, end - cur, "%d.", n);
49 cur += sfsprintf(cur, en
[all...]
H A Dfmtbuf.c43 register char* cur; local
65 cur = nxt;
68 return cur;
/ast/src/lib/libtk/library/
H A Dfocus.tcl26 set cur $w
31 set parent $cur
32 set children [winfo children $cur]
40 set cur [lindex $children $i]
41 if {[winfo toplevel $cur] == $cur} {
52 set cur $parent
53 if {[winfo toplevel $cur] == $cur} {
58 set i [lsearch -exact $children $cur]
[all...]
/ast/src/lib/librecsort/
H A Drsdisc.c38 reg Rsdisc_t* cur; local
59 for (cur = rs->disc; cur; cur = cur->disc)
60 rs->events |= cur->events;
64 cur = rs->disc;
66 while (top = cur)
68 cur = cur
[all...]
H A Drswrite.c28 #define NOTIFY(rs,r,rsrv,endrsrv,cur,out,n) \
34 { out.data = cur; \
35 out.datalen = n = endrsrv - cur; \
44 RESERVE(rs,f,rsrv,endrsrv,cur,out.datalen); \
46 cur += out.datalen; \
54 #define RESERVE(rs,f,rsrv,endrsrv,cur,w) \
56 if((endrsrv-cur) < w) \
57 { if(rsrv && sfwrite(f,rsrv,cur-rsrv) != cur-rsrv) return -1; \
63 endrsrv = (cur
82 reg uchar *d, *cur, *endrsrv, *rsrv; local
[all...]
H A Drsmerge.c45 uchar* cur; /* reserved data current */ member in struct:_merge_s
61 #define MGRESERVE(mg,rsrv,endrsrv,cur,r,action) \
63 if((cur+r) > endrsrv) \
64 { if(rsrv && sfread(mg->f,rsrv,cur-rsrv) != cur-rsrv) { MGSETEOF(mg); action;} \
65 rsrv = endrsrv = cur = NIL(uchar*); \
71 endrsrv = (cur = rsrv) + rr; \
75 #define RSRESERVE(rs,rsrv,endrsrv,cur,w,action) \
78 if((endrsrv-cur) < w) \
79 { if(rsrv && sfwrite(rs->f,rsrv,cur
136 reg uchar *t, *cur, *rsrv, *endrsrv; local
568 reg uchar *d, *cur, *mgcur; local
[all...]
/ast/src/lib/libsum/
H A Dsum-ast4.c46 Ast4_sum_t cur; member in struct:Ast4_s
56 a->tot.sum0 ^= a->cur.sum0;
57 a->cur.sum0 = 0;
58 a->tot.sum1 ^= a->cur.sum1;
59 a->cur.sum1 = 0;
60 a->tot.sum2 ^= a->cur.sum2;
61 a->cur.sum2 = 0;
62 a->tot.sum3 ^= a->cur.sum3;
63 a->cur.sum3 = 0;
83 register Ast4_sum_t* a = &((Ast4_t*)p)->cur;
[all...]
/ast/src/lib/libdll/
H A Ddllcheck.c54 * cur!=0 gets actual version
58 dllcheck(void* dll, const char* path, unsigned long ver, unsigned long* cur) argument
63 if (ver || cur)
66 if (cur)
67 *cur = v;
H A Ddllplug.c36 dllplugin(const char* lib, const char* name, const char* ver, unsigned long rel, unsigned long* cur, int flags, char* path, size_t size) argument
57 if (!dllcheck(dll, dle->path, rel, cur))
111 if (!dllcheck(dll, name, rel, cur))
/ast/src/lib/libast/misc/
H A Dfs3d.c42 register int cur; local
68 cur = FS3D_ON;
70 cur = FS3D_LIMIT((int)strtol(v + sizeof(off) + 1, NiL, 0));
72 cur = FS3D_OFF;
73 if (cur != op)
95 return cur;
H A Dgetcwd.c165 struct stat* cur;
199 cur = &curst;
204 if ((env[n].name && (p = getenv(env[n].name)) || (p = env[n].path)) && *p == '/' && !stat(p, cur))
207 env[n].dev = cur->st_dev;
208 env[n].ino = cur->st_ino;
209 if (cur->st_ino == par->st_ino && cur->st_dev == par->st_dev)
228 tmp = cur;
229 cur = par;
246 if (par->st_dev == cur
[all...]
/ast/src/lib/libpp/
H A Dppinput.c89 register struct ppinstk* cur; local
91 PUSH(t, cur);
92 cur->line = error_info.line;
93 cur->file = error_info.file;
99 cur->flags |= IN_newline;
100 cur->fd = n;
101 cur->hide = ++pp.hide;
102 cur->symbol = 0;
106 cur->index = newof(0, struct ppindex, 1, 0);
107 if (pp.lastindex) pp.lastindex->next = cur
286 struct ppinstk* cur; local
[all...]
H A Dpplib.h570 register struct ppinstk* cur; \
571 PUSH(IN_COPY, cur); \
572 cur->line = error_info.line; \
574 cur->nextchr = p; \
575 cur->prev->symbol->flags &= ~SYM_DISABLED; \
582 register struct ppinstk* cur; \
583 PUSH(IN_EXPAND, cur); \
584 cur->line = error_info.line; \
586 cur->prev->symbol->flags &= ~SYM_DISABLED; \
587 cur
[all...]
/ast/src/lib/libast/preroot/
H A Dgetpreroot.c72 struct stat* cur; local
80 cur = &curst;
83 if (stat(PR_REAL, cur) || stat("/", par) || cur->st_dev == par->st_dev && cur->st_ino == par->st_ino) ERROR(ENOTDIR);
95 tmp = cur;
96 cur = par;
109 if (par->st_dev == cur->st_dev)
111 if (par->st_ino == cur->st_ino)
126 if (D_FILENO(entry) == cur
[all...]
/ast/src/cmd/dsslib/ip_t/
H A Dptopen.c161 Ptprefix_t cur; local
170 cur.min = xp->min;
171 cur.max = xp->max;
173 if (key.min > cur.min)
175 max = cur.max;
176 cur.max = key.min - 1;
177 if (!dtinsert(tab->dict, &cur))
181 cur.min = key.max + 1;
182 cur.max = max;
183 if (!dtinsert(tab->dict, &cur))
[all...]
H A Dptvopen.c194 Ptvprefix_t cur; local
204 cur.min = xp->min;
205 cur.max = xp->max;
207 if (fvcmp(tab->size, key.min, cur.min) > 0)
209 max = cur.max;
211 cur.max = tab->r[0];
212 if (!dtinsert(tab->dict, &cur))
217 cur.min = tab->r[2];
218 cur.max = max;
219 if (!dtinsert(tab->dict, &cur))
[all...]
/ast/src/lib/libast/comp/
H A Dregexp.c38 char* cur; member in struct:__anon253
47 if (data || (size = roundof(size, ALIGN_BOUND2)) > (env->buf + env->size - env->cur))
49 data = (void*)env->cur;
50 env->cur += size;
62 env->buf = env->cur = (char*)env + sizeof(Env_t);
H A Dregcmp.c38 char* cur; member in struct:__anon252
53 if (data || (size = roundof(size, ALIGN_BOUND2)) > (re->buf + re->size - re->cur))
55 data = (void*)re->cur;
56 re->cur += size;
172 re->cur = re->buf;
/ast/src/cmd/kshlib/dbm_t/
H A Ddbm_t.c59 Namval_t *cur; member in struct:dbm_array
142 ap->cur = &ap->node;
144 nv_setsize(ap->cur,data.dsize);
149 ap->cur = 0;
209 else if(ap->cur)
211 ap->pos = ap->cur = 0;
216 ap->cur = ap->pos = 0;
241 ap->cur = ap->pos;
243 return((void*)ap->cur);
258 ap->cur
[all...]
/ast/src/cmd/ksh93/edit/
H A Demacs.c126 #define cur editb.e_cur macro
241 cur = eol;
256 cur = eol;
288 cur--;
289 out[cur++] = c;
319 i = cur;
346 if(cur>0 && ep->ed->sh->nextprompt)
369 for(i= ++eol; i>cur; i--)
372 out[cur++] = c;
384 for(i=eol;i>=cur;
[all...]
/ast/src/cmd/ie/
H A Demacs.c114 #define cur editb.e_cur macro
243 mark = eol = cur = 0;
275 cur--;
276 out[cur++] = c;
302 i = cur;
331 for(i=eol;i>=cur;i--)
336 out[cur++] = c;
348 for(i=eol;i>=cur;i--)
352 out[cur++] = i;
380 genncpy(kstack,out+i,cur
[all...]
/ast/src/lib/libtk/library/demos/
H A Dsearch.tcl43 set cur 1.0
45 set cur [$w search -count length $string $cur end]
46 if {$cur == ""} {
49 $w tag add $tag $cur "$cur + $length char"
50 set cur [$w index "$cur + $length char"]
/ast/src/cmd/ksh93/sh/
H A Darray.c47 int cur; /* index of current element */ member in struct:index_array
58 Namval_t *cur; member in struct:assoc_array
73 int *cur; member in struct:fixed_array
110 fp->cur = fp->incr+fp->ndim;
136 ((struct index_array*)ap)->cur = ((struct index_array*)aq)->cur;
144 return (ap->header.fixed || ((ap->cur<aq->maxi) && aq->val[ap->cur].cp));
146 return ((ap->cur<aq->maxi) && aq->val[ap->cur]
[all...]
/ast/src/cmd/builtin/
H A Dpty.c436 char* cur; /* current line */ member in struct:Master_s
471 if (bp->cur < bp->end && bp->restore >= 0)
472 *bp->cur = bp->restore;
473 if (strneq(bp->cur, promptbuf, promptlen))
474 r = bp->cur;
477 if (bp->cur < bp->end && bp->restore >= 0)
478 *bp->cur = 0;
501 *bp->cur = 0;
506 *bp->cur = bp->restore;
507 r = bp->cur;
[all...]
/ast/src/cmd/dsslib/xml/
H A Dxml.c74 unsigned char* cur; /* input buffer position */ member in struct:File_s
215 if (f->cur >= f->end)
219 if ((n = f->cur - f->rec + f->prvlen) > f->prvsize)
238 f->cur = f->buf;
296 while (!xml_beg_tag[*f->cur++]);
297 if (*(f->cur - 1))
304 if (!(c = *f->cur++))
317 while (!xml_end_tag[*f->cur++]);
318 if (*(f->cur - 1))
338 f->rec = f->cur
[all...]

Completed in 47 milliseconds

123