Lines Matching refs:out

372 static void outtype(Namval_t *np, Namfun_t *fp, Sfio_t* out, const char *prefix)
382 outtype(np,fp,out,prefix);
397 sfprintf(out,"%s %s ",type,cp);
404 void nv_attribute(register Namval_t *np,Sfio_t *out,char *prefix,int noname)
422 sfprintf(out,"%s -C ",prefix);
424 sfputr(out,prefix,' ');
448 sfputr(out,cp,' ');
453 sfputr(out,prefix,' ');
487 sfwrite(out,"-C ",3);
495 sfprintf(out,"%.2s ",tp->sh_name);
498 sfprintf(out,"[%s] ",ip);
503 sfputr(out,tp->sh_name+2,' ');
505 sfprintf(out,"%d ",nv_size(np));
518 sfputr(out,cp,' ');
519 sfprintf(out,"%d ",nv_size(np));
525 outtype(np,fp,out,prefix);
528 sfputr(out,nv_name(np),'\n');
534 Sfio_t *out;
543 void nv_outnode(Namval_t *np, Sfio_t* out, int indent, int special)
553 sfputc(out,'(');
556 sfputc(out,'\n');
576 sfnputc(out,'\t',++indent);
582 sfprintf(out,"[%s]",sh_fmtq(fmtq));
583 sfputc(out,'=');
587 nv_outnode(mp, out, indent+(indent>=0),0);
589 sfnputc(out,'\t',indent);
590 sfputc(out,')');
591 sfputc(out,indent>=0?'\n':' ');
621 sfwrite(out,fmtq,ep-fmtq);
622 sfputc(out,'\\');
634 sfputr(out,fmtq,c);
642 sfnputc(out,'\t',indent);
673 if(!wp->out)
697 nq = nv_putsub(np,NIL(char*),ARRAY_SCAN|(wp->out?ARRAY_NOCHILD:0));
699 if(!wp->out)
711 sfputc(wp->out,'(');
713 sfputc(wp->out,'\n');
720 sfnputc(wp->out,'\t',wp->indent);
724 nv_attribute(np,wp->out,"typeset",'=');
725 nv_outname(wp->out,name,-1);
729 sfputc(wp->out,(isarray==2?'\n':'='));
737 nv_outnode(np, wp->out, wp->indent, special);
744 sfnputc(wp->out,'\t',wp->indent);
745 sfwrite(wp->out,")\n",2);
748 sfwrite(wp->out,");",2);
758 register Sfio_t *outfile = wp->out;
899 static Sfio_t *out;
991 else if(!(outfile=out))
992 outfile = out = sfnew((Sfio_t*)0,(char*)0,-1,-1,SF_WRITE|SF_STRING);
995 walk.out = outfile;
1006 sfputc(out,0);
1007 return((char*)out->_data);