22 /* was move to next f1-sized tab stop; now just print a tab */
26 return fmtstrcpy(f, "\t");
56 iclose(int stack, int err)
63 while (--ifiledepth >= 0)
64 if (istack[ifiledepth].fd)
65 close(istack[ifiledepth].fd);
67 } else if (stack == 0) {
72 } else if (stack > 0) {
73 if (ifiledepth >= MAXIFD)
74 error("$<< nested too deeply");
75 istack[ifiledepth].fd = infile;
84 infile = istack[--ifiledepth].fd;
94 Binit(&stdout, 1, OWRITE);
107 if ((fd = open(file, 1)) >= 0)
109 else if ((fd = create(file, 1, 0666)) < 0)
110 error("cannot create");
112 Binit(&stdout, fd, OWRITE);
119 if (maxpos <= printcol)
130 dprint(char *fmt, ...)
141 n = vseprint(buf, buf+sizeof buf, fmt, arg) - buf;
143 //Bprint(&stdout, "[%s]", fmt);
144 Bwrite(&stdout, buf, n);
145 for(p=buf; *p; p+=w){
146 w = chartorune(&r, p);
158 Binit(&stdout, 1, OWRITE);
159 fmtinstall('t', tconv);