Lines Matching defs:iop
221 struct ioword *iop = *ioact++;
224 if ((iop->flag & (IOTYPE | IOHERESTR)) == IOHERE &&
225 iop->heredoc) {
227 shf_puts(iop->heredoc, shf);
229 iop->flag & IONDELIM ? "<<" :
230 evalstr(iop->delim, 0));
247 pioact(struct shf *shf, int indent, struct ioword *iop)
249 int flag = iop->flag;
255 (type == IODUP && (iop->unit == !(flag & IORDUP))) ? iop->unit :
256 iop->unit + 1;
257 if (iop->unit != expected)
258 shf_fprintf(shf, "%d", iop->unit);
282 if (iop->delim)
283 wdvarput(shf, iop->delim, 0, WDS_TPUTS);
284 if (iop->flag & IOHERESTR)
286 } else if (iop->name)
287 fptreef(shf, indent, (iop->flag & IONAMEXP) ? "%s " : "%S ",
288 iop->name);
714 struct ioword **iop;
717 iop = iow;
718 while ((p = *iop++) != NULL) {
886 struct ioword **ioact, *iop;
892 while ((iop = *ioact++) != NULL) {
893 int type = iop->flag & IOTYPE;
895 #define DB(x) if (iop->flag & x) shf_puts("|" #x, shf);
916 shf_fprintf(shf, ",unit=%d", iop->unit);
917 if (iop->delim) {
919 dumpwdvar(shf, iop->delim);
922 if (iop->name) {
923 if (iop->flag & IONAMEXP) {
925 print_value_quoted(shf, iop->name);
928 dumpwdvar(shf, iop->name);
932 if (iop->heredoc) {
934 print_value_quoted(shf, iop->heredoc);