Lines Matching refs:out

200 	register char	*out;  in ed_expand()  local
236 out = outbuff + *cur + (sh_isoption(SH_VI)!=0); in ed_expand()
244 char *last = out; in ed_expand()
245 c = *(unsigned char*)out; in ed_expand()
247 begin = out = find_begin(outbuff,last,0,&var); in ed_expand()
252 stakwrite(out,last-out); in ed_expand()
254 out = last; in ed_expand()
259 while(out < last) in ed_expand()
261 c = *(unsigned char*)out; in ed_expand()
268 dir = out+1; in ed_expand()
271 out++; in ed_expand()
276 if(var!='$' && mode=='\\' && out[-1]!='*') in ed_expand()
341 size = *eol - (out-begin); in ed_expand()
375 if(*out) in ed_expand()
376 left=stakcopy(out); in ed_expand()
378 out = strcopy(begin,path_basename(cp= *com++)); in ed_expand()
387 out = strcopy(begin,cp); in ed_expand()
391 out = strcopy(begin,fmtx(*com)); in ed_expand()
395 out = strcopy(begin,*com++); in ed_expand()
398 saveout= ++out; in ed_expand()
402 out = overlaid(begin,path_basename(*com++),nocase); in ed_expand()
404 out = overlaid(begin,*com++,nocase); in ed_expand()
406 mode = (out==saveout); in ed_expand()
407 if(out[-1]==0) in ed_expand()
408 out--; in ed_expand()
409 if(mode && out[-1]!='/') in ed_expand()
418 out = strcopy(begin,cp); in ed_expand()
422 out = strcopy(begin,cp); in ed_expand()
424 *out = '}'; in ed_expand()
426 *out = ' '; in ed_expand()
427 *++out = 0; in ed_expand()
431 out = strcopy(begin,cp); in ed_expand()
432 if(out[-1] =='"' || out[-1]=='\'') in ed_expand()
433 *--out = 0; in ed_expand()
442 *out++ = ' '; in ed_expand()
443 out = strcopy(out,fmtx(*com++)); in ed_expand()
452 *out = '}'; in ed_expand()
454 *out = ' '; in ed_expand()
455 out++; in ed_expand()
457 else if(out[-1] =='"' || out[-1]=='\'') in ed_expand()
458 out--; in ed_expand()
459 *out = 0; in ed_expand()
461 *cur = (out-outbuff); in ed_expand()
464 out = strcopy(out,left); in ed_expand()
465 *eol = (out-outbuff); in ed_expand()
479 for(out=outbuff; *out;n++) in ed_expand()
480 mbchar(out); in ed_expand()
496 register char *out; in ed_macro() local
506 if (isalnum(i)&&(np=nv_search(ep->e_macro,sh.alias_tree,HASH_SCOPE))&&(out=nv_getval(np))) in ed_macro()
511 if( strlen(out) > LOOKAHEAD ) in ed_macro()
513 c = out[LOOKAHEAD]; in ed_macro()
514 out[LOOKAHEAD] = 0; in ed_macro()
516 i = ed_internal(out,buff); in ed_macro()
518 out[LOOKAHEAD] = c; in ed_macro()
520 strncpy((char*)buff,out,LOOKAHEAD); in ed_macro()