Lines Matching defs:iop

183 static void lex_advance(Sfio_t *iop, const char *buff, register int size, void *context)
191 if(iop && !sfstacked(iop))
207 if(sffileno(iop)>=0)
208 lp->lexd.docend = sfsetbuf(iop,(Void_t*)iop,0);
1697 register struct ionod *iop;
1706 iop = newof(0,struct ionod,1,lp->lexd.docextra+n+ARGVAL);
1707 iop->iolst = lp->heredoc;
1717 iop->ioname = (char*)(iop+1);
1718 strcpy(iop->ioname,lp->arg->argval);
1719 iop->iofile = (IODOC|IORAW);
1721 iop->iofile |= IOSTRIP;
1722 lp->heredoc = iop;
1790 static int here_copy(Lex_t *lp,register struct ionod *iop)
1803 if(iop->iolst)
1804 here_copy(lp,iop->iolst);
1805 iop->iooffset = sfseek(sp,(off_t)0,SEEK_END);
1806 iop->iosize = 0;
1807 iop->iodelim=iop->ioname;
1809 if(stripflg=iop->iofile&IOSTRIP)
1811 while(*iop->iodelim=='\t')
1812 iop->iodelim++;
1814 if(iop->iofile&IOLSEEK)
1816 iop->iofile &= ~IOLSEEK;
1830 if(iop->iofile&IOQUOTE)
1866 iop->iosize += c;
1892 iop->iosize++;
1911 iop->iosize += n;
1935 if(c!=iop->iodelim[0])
1946 iop->iosize+=c;
1951 c = iop->iodelim[n]==0;
1965 if(iop->iodelim[n]==0 && (c==NL||c==RPAREN))
1970 iop->iosize += n;
1977 if(iop->iodelim[n++]!=c)
1987 if((n=sfwrite(sp,iop->iodelim,nsave))>0)
1988 iop->iosize += n;
2021 iop->iosize += n;
2040 free((void*)iop);
2042 iop->iofile |= IOQUOTE;
2448 static int alias_exceptf(Sfio_t *iop,int type,void *data, Sfdisc_t *handle)
2450 static int alias_exceptf(Sfio_t *iop,int type,Sfdisc_t *handle)
2464 register Sfdisc_t *dp = sfdisc(iop,SF_POPDISC);
2466 sfdisc(iop,dp);
2480 sfsetbuf(iop,ap->buf,1);
2492 register Sfio_t *iop, *base;
2512 iop = sfopen(NIL(Sfio_t*),(char*)string,"s");
2513 sfdisc(iop, &ap->disc);
2518 sfstack(base,iop);