Searched refs:ep (Results 1 - 25 of 65) sorted by relevance

123

/ast/src/cmd/ksh93/sh/
H A Denv.c88 char **env_get(Env_t* ep) argument
91 register int n=ep->extra;
92 if(ep->flags&ENV_VALID)
93 return(ep->env+n);
94 if(ep->count > ep->max)
96 if(ep->flags&ENV_MALLOCED)
97 free((void*)ep->env);
98 if(!(ep->env = (char**)malloc(sizeof(char*)*(ep
120 env_add(Env_t *ep, const char *str, int flags) argument
166 env_delete(Env_t *ep, const char *str) argument
192 Env_t *ep; local
230 env_close(Env_t *ep) argument
[all...]
H A Dstreval.c62 #define roundptr(ep,cp,type) (((unsigned char*)(ep))+round(cp-((unsigned char*)(ep)),pow2size(sizeof(type))))
155 Sfdouble_t arith_exec(Arith_t *ep) argument
158 register unsigned char *cp = ep->code;
167 Shell_t *shp = ep->shp;
169 node.emode = ep->emode;
170 node.expr = ep->expr;
171 node.elen = ep->elen;
178 arith_error(e_recursive,ep
903 register Arith_t *ep; local
956 Arith_t *ep; local
995 matherr(struct exception *ep) argument
[all...]
/ast/src/cmd/ksh93/edit/
H A Dedit.c151 # define ttyparm (ep->e_ttyparm)
152 # define nttyparm (ep->e_nttyparm)
163 register Edit_t *ep = (Edit_t*)(shgd->ed_context); local
165 ep->e_savefd = -1;
177 register Edit_t *ep = (Edit_t*)(shgd->ed_context); local
178 if(fd == ep->e_savefd)
179 *tty = ep->e_savetty;
189 if(ep->e_raw==0)
191 ep->e_savetty = *tty;
192 ep
205 register Edit_t *ep = (Edit_t*)(shgd->ed_context); local
234 register Edit_t *ep = (Edit_t*)(shgd->ed_context); local
271 register Edit_t *ep = (Edit_t*)(shgd->ed_context); local
395 register Edit_t *ep = (Edit_t*)(shgd->ed_context); local
443 register Edit_t *ep = (Edit_t*)(shgd->ed_context); local
539 ed_flush(Edit_t *ep) argument
562 ed_crlf(register Edit_t *ep) argument
589 ed_setup(register Edit_t *ep, int fd, int reedit) argument
788 ed_putstring(register Edit_t *ep, const char *str) argument
795 ed_nputchar(register Edit_t *ep, int n, int c) argument
812 register Edit_t *ep = (Edit_t*)context; local
934 putstack(Edit_t *ep,char string[], register int nbyte, int type) argument
1032 ed_getchar(register Edit_t *ep,int mode) argument
1107 ed_ungetchar(Edit_t *ep,register int c) argument
1118 ed_putchar(register Edit_t *ep,register int c) argument
1159 ed_curpos(Edit_t *ep,genchar *phys, int off, int cur, Edpos_t curpos) argument
1204 ed_setcursor(register Edit_t *ep,genchar *physical,register int old,register int new,int first) argument
1307 ed_virt_to_phys(Edit_t *ep,genchar *virt,genchar *phys,int cur,int voff,int poff) argument
1500 register Edit_t *ep = (Edit_t*)(shgd->ed_context); local
1522 register Edit_t *ep = (Edit_t*)(shgd->ed_context); local
1564 keytrap(Edit_t *ep,char *inbuff,register int insize, int bufsize, int mode) argument
1657 ed_histgen(Edit_t *ep,const char *pattern) argument
1764 ed_histlist(Edit_t *ep,int n) argument
[all...]
H A Demacs.c124 #define editb (*ep->ed)
146 #define location ep->_location
185 register Emacs_t *ep = ed->e_emacs; local
192 if(!ep)
194 ep = ed->e_emacs = newof(0,Emacs_t,1,0);
195 ep->ed = ed;
196 ep->prevdirection = 1;
200 ep->screen = Screen;
201 ep->lastdraw = FINAL;
209 ed_setup(ep
739 show_info(Emacs_t *ep,const char *str) argument
764 putstring(Emacs_t* ep,register char *sp) argument
772 escape(register Emacs_t* ep,register genchar *out,int count) argument
1143 xcommands(register Emacs_t *ep,int count) argument
1232 search(Emacs_t* ep,genchar *out,int direction) argument
1344 draw(register Emacs_t *ep,Draw_t option) argument
1550 setcursor(register Emacs_t *ep,register int newp,int c) argument
[all...]
H A Dcompletion.c207 int ed_expand(Edit_t *ep, char outbuff[],int *cur,int *eol,int mode, int count) argument
216 if(ep->e_nlist)
220 if(count> ep->e_nlist)
223 av[0] = ep->e_clist[count-1];
228 stakset(ep->e_stkptr,ep->e_stkoff);
229 ep->e_nlist = 0;
308 if(!var && !strchr(ap->argval,'/') && (((cp==outbuff&&ep->sh->nextprompt==1) || (strchr(";&|(",size)) && (cp==outbuff+1||size=='('||cp[-2]!='>') && *begin!='~' )))
313 if(ep->e_nlist)
322 com = sh_argbuild(ep
512 ed_macro(Edit_t *ep, register int i) argument
552 ed_fulledit(Edit_t *ep) argument
[all...]
/ast/src/cmd/cs/vcs_src/
H A Dvcs_marker.c81 register rdirent_t* ep; local
83 for (ep=dir; ep ; ep = ep->next)
85 if (strcmp(ep->tag->version, s) == 0)
86 return (ep->tag);
95 register rdirent_t* ep; local
100 for (ep = dir; ep; e
131 register rdirent_t* ep; local
[all...]
H A Dvcs_search.c214 rdirent_t* ep; local
228 for (sp = NULL, ep = NULL, p = list; p; p = p->next)
244 ep = sp = p;
246 ep = p;
292 for (p = sp, mtime = 0L; p != ep->next; p = p->next)
456 register rdirent_t* ep; local
458 for(ep =list; ep; ep =ep
472 register rdirent_t* ep; local
[all...]
/ast/src/lib/libast/comp/
H A Dmemccpy.c43 register const char* ep = s2 + n;
45 while (s2 < ep)
H A Dmemchr.c41 register const char* ep = sp + n;
43 while (sp < ep)
H A Dregexp.h79 _re_read(register regexp_t* re, const char* instring, char* ep, const char* endbuf, int seof) argument
121 if (c = _re_comp(re, _re_putc(0), ep, (char*)endbuf - ep))
/ast/src/cmd/mailx/
H A Dedit.c153 FILE* ep; local
164 if (!(ep = fileopen(state.tmp.edit, "EMw")))
171 headout(ep, hp, editheaders|GNL);
173 if (filecopy(NiL, fp, state.tmp.edit, ep, NiL, size, NiL, NiL, 0))
177 fileclose(ep);
178 ep = 0;
198 if (!(ep = fileopen(state.tmp.edit, "Ea+")))
200 if (editheaders && headset(&pp, NiL, ep, hp, NiL, editheaders|GTO|GMETOO)) {
203 if (!(ep = fileopen(state.tmp.edit, "EMa+")))
205 filecopy(NiL, pp.fp, state.tmp.edit, ep, Ni
[all...]
/ast/src/cmd/ksh93/bltins/
H A Denum.c100 struct Enum *ep; local
104 ep = (struct Enum*)np->nvfun;
107 sfprintf(out,"\b%s\b%c",ep->values[0],0);
109 sfprintf(out,"\b%s\b",ep->values[0]);
113 if(ep->iflag)
116 else while(v=ep->values[n++])
125 struct Enum *ep, *pp=(struct Enum*)fp; local
126 ep = newof(0,struct Enum,1,pp->nelem*sizeof(char*));
127 memcpy((void*)ep,(void*)pp,sizeof(struct Enum)+pp->nelem*sizeof(char*));
128 return(&ep
133 struct Enum *ep = (struct Enum*)fp; local
169 struct Enum *ep = (struct Enum*)fp; local
194 struct Enum *ep; local
[all...]
/ast/src/lib/libast/misc/
H A Dmagic.c478 register Entry_t* ep; local
498 for (ep = mp->magic; ep; ep = ep->next)
501 if (ep->nest == '{')
516 switch (ep->cont)
534 if (ep->type == ' ')
540 mp->ret[++call] = ep;
541 ep
1667 register Entry_t* ep; local
2443 register Entry_t* ep = mp->magic; local
[all...]
/ast/src/cmd/dsslib/ip_t/
H A Direexec.h49 IREINT* ep; local
67 ep = rp;
69 ep = lp + re->hi;
70 if ((rp - ep) < must)
71 ep = rp - must;
72 for (cp = lp; cp < ep; cp++)
80 ep += j + 1;
/ast/src/lib/libcmd/
H A Dfmt.c140 register char* ep; local
147 for (ep = buf; *ep == ' '; ep++);
148 prefix = ep - buf;
154 if ((*ep == 0 || *buf == '.') && !isoption(fp, 'o'))
156 if (*ep)
170 cp = ep;
171 while (*ep == ' ')
172 ep
239 char* ep; local
[all...]
H A Drev.c63 register char *ep, *bp, *cp; local
73 ep = bp + (n=sfvalue(in)) - 1;
84 while (cp < ep)
103 ep = bp + (n=sfvalue(in)) -1;
104 while(ep > bp)
106 c = *--ep;
107 *ep = *bp;
H A Dcut.c373 register unsigned char *ep; local
384 ep = cp + --c;
386 *ep = cut->eob;
388 while (cp <= ep)
415 while ((c = mb2wc(w, cp, ep - cp)) <= 0)
418 if ((ep - cp) < mbmax())
426 *ep = lastchar;
427 if ((c = mb2wc(w, cp, ep - cp)) > 0)
436 for (i = 0; i <= (ep - cp); i++)
441 ep
[all...]
H A Dtee.c74 register const char* ep; local
82 ep = bp + n;
83 while (bp < ep)
85 if ((r = write(fd, bp, ep - bp)) <= 0)
/ast/src/cmd/3d/
H A Drmdir3d.c32 register struct DIRdirent* ep; local
42 if (!(ep = (struct DIRdirent*)READDIR(dp)))
54 if (D_FILENO(ep) != ino)
58 strcpy(endpath, ep->d_name);
64 t = ep->d_name;
71 strcpy(endpath, ep->d_name);
H A Dpathnext.c33 register char* ep = sp + strlen(sp); local
51 ep = sp + (shift = strlen(sp));
72 if (cp < ep)
92 if (cp < ep)
94 for (tmp = ep; tmp > cp; tmp--)
105 sp[vpathlen] = cp < ep ? '/' : 0;
108 strcpy(sp = ep + shift, extra);
/ast/src/lib/libast/sfio/
H A Dsfcvt.c117 reg char *ep, *b, *endsp, *t; local
198 ep = (format & SFFMT_UPPER) ? ux : lx;
211 { *sp++ = ep[(m >> x) & 0xf];
256 sfucvt(v,sp,n,ep,CVT_LDBL_INT,unsigned CVT_LDBL_INT);
274 if((ep = (sp+n)) > (endsp = buf+(size-2)))
275 ep = endsp;
276 if(sp > ep)
277 sp = ep;
288 while(sp < ep)
292 do { *sp++ = '0'; } while(sp < ep);
[all...]
H A Dsfvprintf.c106 char *sp, *ssp, *endsp, *ep, *endep; local
230 endep = ep = NIL(char*);
1105 for(ep = buf+SLACK, endep = ep + n; ; )
1106 { while(ep < endep)
1107 *ep++ = *sp++;
1111 *ep++ = thousand;
1112 endep = ep+3;
1115 endsp = ep;
1181 ep
[all...]
/ast/src/lib/libast/tm/
H A Dtmxfmt.c101 register char* ep; local
133 ep = buf + len;
149 if (cp < ep)
237 if (cp < ep)
263 cp = number(cp, ep, (long)(1900 + tm->tm_year) / 100, 2, width, pad);
266 cp = number(cp, ep, (long)tm->tm_mday, 2, width, pad);
272 cp = number(cp, ep, (long)tm->tm_mday, -2, width, pad);
300 cp = number(cp, ep, (long)n, c, width, pad);
303 cp = number(cp, ep, (long)tm->tm_hour, 2, width, pad);
311 cp = number(cp, ep, (lon
[all...]
/ast/src/lib/libcs/
H A Dcspoll.c58 register fd_set* ep = &ex; local
69 FD_ZERO(ep);
93 FD_SET(pp->fd, ep);
103 ep = 0;
105 num = select(width + 1, rp, wp, ep, tp);
137 if (ep && FD_ISSET(pp->fd, ep))
/ast/src/cmd/builtin/
H A Dlook.c74 register char* ep = bp + len; local
87 if (bp >= ep)
233 char* ep = 0; local
268 if (streq(file, "-") && (ep = *argv))
271 if (streq(ep, "-"))
273 file = ep;
274 ep = 0;
302 if (look(fp, bp, ep, flags))

Completed in 50 milliseconds

123