Lines Matching refs:out

381 static void outtype(Namval_t *np, Namfun_t *fp, Sfio_t* out, const char *prefix)
391 outtype(np,fp,out,prefix);
406 sfprintf(out,"%s %s ",type,cp);
413 void nv_attribute(register Namval_t *np,Sfio_t *out,char *prefix,int noname)
434 sfprintf(out,"%s -C ",prefix);
436 sfputr(out,prefix,' ');
460 sfputr(out,cp,' ');
465 sfputr(out,prefix,' ');
499 sfwrite(out,"-C ",3);
513 sfprintf(out,"-M %s ",cp);
520 sfprintf(out,"%.2s ",tp->sh_name);
523 sfprintf(out,"[%s] ",ip);
528 sfputr(out,tp->sh_name+2,' ');
530 sfprintf(out,"%d ",nv_size(np));
543 sfputr(out,cp,' ');
544 sfprintf(out,"%d ",nv_size(np));
552 sfprintf(out,"%s",nv_name(np));
553 nv_arrfixed(np,out,0,(char*)0);
554 sfputc(out,';');
558 outtype(np,fp,out,prefix);
561 sfputr(out,nv_name(np),'\n');
567 Sfio_t *out;
576 void nv_outnode(Namval_t *np, Sfio_t* out, int indent, int special)
588 sfputc(out,'(');
591 sfputc(out,'\n');
611 sfnputc(out,'\t',Indent = ++indent);
617 sfprintf(out,"[%s]",sh_fmtq(fmtq));
618 sfputc(out,'=');
622 nv_outnode(mp, out, indent+(indent>=0),0);
624 sfnputc(out,'\t',indent);
625 sfputc(out,')');
626 sfputc(out,indent>=0?'\n':' ');
660 sfwrite(out,fmtq,ep-fmtq);
661 sfputc(out,'\\');
673 sfputr(out,fmtq,c);
681 sfnputc(out,'\t',indent);
713 if(!wp->out)
737 nq = nv_putsub(np,NIL(char*),ARRAY_SCAN|(wp->out?ARRAY_NOCHILD:0));
739 if(!wp->out)
751 sfputc(wp->out,'(');
753 sfputc(wp->out,'\n');
760 sfnputc(wp->out,'\t',wp->indent);
764 nv_attribute(np,wp->out,"typeset",'=');
765 nv_outname(wp->out,name,-1);
767 sfputc(wp->out,(isarray==2?(wp->indent>=0?'\n':';'):'='));
774 nv_outnode(np, wp->out, wp->indent, special);
781 sfnputc(wp->out,'\t',wp->indent);
782 sfwrite(wp->out,")\n",2);
785 sfwrite(wp->out,");",2);
795 register Sfio_t *outfile = wp->out;
945 static Sfio_t *out;
1038 else if(!(outfile=out))
1039 outfile = out = sfnew((Sfio_t*)0,(char*)0,-1,-1,SF_WRITE|SF_STRING);
1044 walk.out = outfile;
1055 sfputc(out,0);
1056 sfseek(out,off,SEEK_SET);
1057 return((char*)out->_data+off);