Lines Matching refs:out

211 	register char	*out;  in ed_expand()  local
247 out = outbuff + *cur + (sh_isoption(SH_VI)!=0); in ed_expand()
248 if(out[-1]=='"' || out[-1]=='\'') in ed_expand()
260 char *last = out; in ed_expand()
261 c = *(unsigned char*)out; in ed_expand()
263 begin = out = find_begin(outbuff,last,0,&var); in ed_expand()
268 stakwrite(out,last-out); in ed_expand()
270 out = last; in ed_expand()
275 while(out < last) in ed_expand()
277 c = *(unsigned char*)out; in ed_expand()
284 dir = out+1; in ed_expand()
287 out++; in ed_expand()
292 if(var!='$' && mode=='\\' && out[-1]!='*') in ed_expand()
340 if(mode=='\\' && out[-1]=='/' && narg>1) in ed_expand()
359 size = *eol - (out-begin); in ed_expand()
393 if(*out) in ed_expand()
394 left=stakcopy(out); in ed_expand()
396 out = strcopy(begin,path_basename(cp= *com++)); in ed_expand()
405 out = strcopy(begin,cp); in ed_expand()
409 out = strcopy(begin,fmtx(*com)); in ed_expand()
413 out = strcopy(begin,*com++); in ed_expand()
416 saveout= ++out; in ed_expand()
420 out = overlaid(begin,path_basename(*com++),nocase); in ed_expand()
422 out = overlaid(begin,*com++,nocase); in ed_expand()
424 mode = (out==saveout); in ed_expand()
425 if(out[-1]==0) in ed_expand()
426 out--; in ed_expand()
427 if(mode && out[-1]!='/') in ed_expand()
436 out = strcopy(begin,cp); in ed_expand()
440 out = strcopy(begin,cp); in ed_expand()
442 *out = '}'; in ed_expand()
444 *out = ' '; in ed_expand()
445 *++out = 0; in ed_expand()
449 out = strcopy(begin,cp); in ed_expand()
450 if(out[-1] =='"' || out[-1]=='\'') in ed_expand()
451 *--out = 0; in ed_expand()
460 *out++ = ' '; in ed_expand()
461 out = strcopy(out,fmtx(*com++)); in ed_expand()
470 *out = '}'; in ed_expand()
472 *out = ' '; in ed_expand()
473 out++; in ed_expand()
475 else if(out[-1] =='"' || out[-1]=='\'') in ed_expand()
476 out--; in ed_expand()
477 *out = 0; in ed_expand()
479 *cur = (out-outbuff); in ed_expand()
482 out = strcopy(out,left); in ed_expand()
483 *eol = (out-outbuff); in ed_expand()
497 for(out=outbuff; *out;n++) in ed_expand()
498 mbchar(out); in ed_expand()
514 register char *out; in ed_macro() local
524 if (isalnum(i)&&(np=nv_search(ep->e_macro,ep->sh->alias_tree,HASH_SCOPE))&&(out=nv_getval(np))) in ed_macro()
529 if( strlen(out) > LOOKAHEAD ) in ed_macro()
531 c = out[LOOKAHEAD]; in ed_macro()
532 out[LOOKAHEAD] = 0; in ed_macro()
534 i = ed_internal(out,buff); in ed_macro()
536 out[LOOKAHEAD] = c; in ed_macro()
538 strncpy((char*)buff,out,LOOKAHEAD); in ed_macro()