Lines Matching defs:outfile

669 printbanner(char *filename, FILE *outfile)
682 setcurrentfont(DEFAULT_FONT_BOLD_ITALIC, outfile);
685 (void) fprintf(outfile, "%d %.2f %s\n", start_x, current.row, MOVETO);
686 proc(banner, outfile);
690 (void) fprintf(outfile, "%d %.2f %s\n", start_x, current.row, MOVETO);
693 proc(buffer, outfile);
698 (void) fprintf(outfile, "%d %.2f %s\n", start_x, current.row,
701 proc(buffer, outfile);
712 (void) fprintf(outfile, "%d %.2f %s\n", start_x,
724 proc(buffer, outfile);
734 (void) fprintf(outfile, "%d %.2f %s\n", start_x, current.row, MOVETO);
735 proc(banner, outfile);
738 restore_format_state(&format_state, outfile);
743 setcurrentfont(char *newfont, FILE *outfile)
748 (void) fprintf(outfile, "%s\n", current.font);
781 restore_format_state(struct format_state *fs, FILE *outfile)
787 setcurrentfont(fs->font, outfile);
800 FILE *outfile;
807 if ((outfile = fopen(p, "w+")) == NULL) {
817 outfile = stdout;
819 setcurrentfont(DEFAULT_FONT, outfile);
829 eof = printpage(infile, outfile);
833 endpage(outfile);
835 flushpage(outfile);
838 if (fflush(outfile) == EOF) {
844 reversepages(outfile);
846 copypage(outfile, 0L, current.offset);
847 (void) fclose(outfile);
852 process_elide(FILE *outfile)
856 restorestate(outfile);
864 setcurrentfont(DEFAULT_FONT_BOLD_ITALIC, outfile);
865 proc("______unchanged_portion_omitted_", outfile);
866 restore_format_state(&format_state, outfile);
867 savestate(outfile);
871 savestate(outfile);
882 printpage(FILE *infile, FILE *outfile)
891 current.lineno += startpage(outfile);
893 current.lineno += printbanner(bannerfile, outfile);
895 savestate(outfile);
900 process_elide(outfile);
921 setcurrentfont(DEFAULT_FONT_ITALIC, outfile);
927 setcurrentfont(DEFAULT_FONT_BOLD, outfile);
936 outfile);
939 outfile);
943 savestate(outfile);
944 setcurrentfont(DEFAULT_FONT, outfile);
957 proc(bufin, outfile);
960 process_elide(outfile);
962 endpage(outfile);
970 startpage(FILE *outfile)
979 setuppage(outfile);
981 setcurrentfont((char *)NULL, outfile);
982 (void) fprintf(outfile, "%s ", SET_WIDTHS);
983 (void) fprintf(outfile, "%d %f %d %d %s\n",
989 setcurrentfont(DEFAULT_FONT_BOLD, outfile);
994 (void) fprintf(outfile, "%d %.2f %s\n", start_x, current.row,
996 proc(headerstring, outfile);
999 (void) fprintf(outfile, "%d %.2f %s (%s)%s\n",
1004 restore_format_state(&format_state, outfile);
1021 setuppage(FILE *outfile)
1026 (void) fprintf(outfile, "%%%%Page: ? %d\n", current.page_count + 1);
1027 setcurrentfont((char *)NULL, outfile);
1031 (void) fprintf(outfile, "%f %s %s\n", RULE_WIDTH, SETLINEWIDTH,
1036 (void) fprintf(outfile, "%d %d %s ", begin, place, MOVETO);
1037 (void) fprintf(outfile, "%d %d %s\n", end, place, LINETO);
1042 (void) fprintf(outfile, "%d %d %s ", place, begin, MOVETO);
1043 (void) fprintf(outfile, "%d %d %s\n", place, end, LINETO);
1045 (void) fprintf(outfile, "%s\n", STROKE);
1052 endpage(FILE *outfile)
1054 (void) fprintf(outfile, "%s\n", END_PAGE);
1059 flushpage(outfile);
1067 flushpage(FILE *outfile)
1069 (void) fprintf(outfile, "%d %s\n", ncopies, FLUSH_PAGE);
1071 current.offset = ftell(outfile);
1087 reversepages(FILE *outfile)
1095 copypage(outfile, page_map[i], page_map[i+1]);
1103 copypage(FILE *outfile, long off_beg, long off_end)
1107 if (fseek(outfile, off_beg, 0) == -1L) {
1116 bytecount = fread(bufout, 1, bytecount, outfile);
1145 proc(char *in, FILE *outfile)
1184 (void) fprintf(outfile, "%d %.2f %d %.2f %s\n",
1200 (void) fprintf(outfile, "%d %.2f %s\n",
1204 (void) fprintf(outfile, "%.2f %s\n",
1207 setcurrentfont(DEFAULT_FONT, outfile);
1211 (void) fprintf(outfile, "%d %s (%s)%s %d %s ",
1214 setcurrentfont(altfont, outfile);
1262 (void) fprintf(outfile, "%s)%s\n",
1285 (void) fprintf(outfile, "%s)%s\n",
1288 (void) fprintf(outfile, "%s\n", bufout);
1289 endpage(outfile);
1290 (void) startpage(outfile);
1292 (void) fprintf(outfile, "%d %.2f %s\n",
1295 (void) fprintf(outfile, "%d %s\n", numberwidth +
1305 (void) fprintf(outfile, "%s)%s\n",
1310 (void) fprintf(outfile, "%d %.2f %s\n",
1313 (void) fprintf(outfile, "%d %s\n", numberwidth +
1382 (void) fprintf(outfile, "%s)%s\n", bufout,
1385 (void) fprintf(outfile, "%s\n", bufout);
1401 (void) fprintf(outfile, "%s\n", bufout);