| /plan9/sys/src/cmd/spin/ |
| H A D | pangen1.c | 54 fprintf(th, " \"%s\",\n", p->n->name); in reverse_names() 61 fprintf(th, " %d, /* %s */\n", p->b, p->n->name); in reverse_types() 81 fprintf(th, "#define WS %d /* word size in bytes */\n", (int) sizeof(void *)); in genheader() 82 fprintf(th, "#define SYNC %d\n", u_sync); in genheader() 83 fprintf(th, "#define ASYNC %d\n\n", u_async); in genheader() 84 fprintf(th, "#ifndef NCORE\n"); in genheader() 85 fprintf(th, " #ifdef DUAL_CORE\n"); in genheader() 86 fprintf(th, " #define NCORE 2\n"); in genheader() 87 fprintf(th, " #elif QUAD_CORE\n"); in genheader() 88 fprintf(th, " #define NCORE 4\n"); in genheader() [all …]
|
| H A D | pangen2.c | 22 #define blurb(fd, e) { fprintf(fd, "\n"); if (!merger) fprintf(fd, "\t\t/* %s:%d */\n", \ 24 #define tr_map(m, e) { if (!merger) fprintf(tt, "\t\ttr_2_src(%d, \"%s\", %d);\n", \ 120 fprintf(tc, " Addproc(%d);\n", q->tn); in reverse_procs() 127 fprintf(tc, " Addproc(%d);\n", q->tn); in forward_procs() 134 fprintf(th, "#define _T5 %d\n", uniq++); in tm_predef_np() 135 fprintf(th, "#define _T2 %d\n", uniq++); in tm_predef_np() 138 { fprintf(th, "#define T_ID unsigned char\n"); in tm_predef_np() 140 { fprintf(th, "#define T_ID unsigned short\n"); in tm_predef_np() 142 { fprintf(th, "#define T_ID unsigned int\n"); in tm_predef_np() 145 fprintf(tm, "\tcase _T5:\t/* np_ */\n"); in tm_predef_np() [all …]
|
| H A D | ps_msc.c | 141 fprintf(pfd, "gsave\n"); in putlegend() 142 fprintf(pfd, "/Courier-Bold findfont 8 scalefont "); in putlegend() 143 fprintf(pfd, "ISOEncode setfont\n"); in putlegend() 144 fprintf(pfd, "0.000 0.000 0.000 setrgbcolor AdjustColor\n"); in putlegend() 145 fprintf(pfd, "%d %d [\n", MW/2, LH+oMH+ 5*HH); in putlegend() 146 fprintf(pfd, " (%s -- %s -- MSC -- %d)\n] 10 -0.5 0.5 0 ", in putlegend() 148 fprintf(pfd, "false DrawText\ngrestore\n"); in putlegend() 156 fprintf(pfd, "%%%%Page: %d %d\n", pspno, pspno); in startpage() 164 fprintf(pfd, "save\n"); in startpage() 165 fprintf(pfd, "10 %d moveto\n", LH+oMH+5); in startpage() [all …]
|
| H A D | pangen4.c | 30 { fprintf(tb, "0"); in undostmnt() 53 fprintf(tb, "delproc(0, now._nr_pr-1)"); in undostmnt() 60 fprintf(tb, "if (_m == 2) "); in undostmnt() 83 fprintf(tb, "XX = trpt->bup.oval"); in undostmnt() 85 { fprintf(tb, "s[%d]", jj); in undostmnt() 88 fprintf(tb, ";\n\t\t"); in undostmnt() 90 { fprintf(tb, "XX = 1;\n\t\t"); in undostmnt() 99 fprintf(tb, "unrecv"); in undostmnt() 101 fprintf(tb, "%d, ", i); in undostmnt() 106 fprintf(tb, ", %d);\n\t\t", (i==0)?1:0); in undostmnt() [all …]
|
| H A D | dstep.c | 65 fprintf(fd, "S_%.3d_0: /* break-dest */\n", in Mopup() 77 fprintf(fd, "\t\t/* no goto's to S_%.3d_0 */\n", in Mopup() 166 if (inh++ > 0) fprintf(fd, " || "); in CollectGuards() 168 fprintf(fd, "(boq == -1 /* else */)"); in CollectGuards() 170 fprintf(fd, "(1 /* else */)"); in CollectGuards() 173 if (inh++ > 0) fprintf(fd, " || "); in CollectGuards() 174 fprintf(fd, "("); TestOnly=1; in CollectGuards() 176 fprintf(fd, ")"); TestOnly=0; in CollectGuards() 179 if (inh++ > 0) fprintf(fd, " || "); in CollectGuards() 180 fprintf(fd, "("); TestOnly=1; in CollectGuards() [all …]
|
| H A D | main.c | 162 { fprintf(stdout, "spin: too many -D args, aborting\n"); in preprocess() 169 fprintf(stdout, "spin: preprocessing failed\n"); /* 4.1.2 was stderr */ in preprocess() 399 fprintf(fd, "#include \"%s\"\n", argv[1]); in main() 408 { fprintf(fd, "#include \"%s\"\n", *nvr_file); in main() 443 fprintf(stderr, "spin: error, no filename specified"); in main() 757 fprintf(fd, "'%c' = ", n); in explain() 758 fprintf(fd, "%d", n); in explain() 760 case '\b': fprintf(fd, "\\b"); break; in explain() 761 case '\t': fprintf(fd, "\\t"); break; in explain() 762 case '\f': fprintf(fd, "\\f"); break; in explain() [all …]
|
| H A D | pangen3.c | 39 { fprintf(th, "\n\t"); in putnr() 42 fprintf(th, "%3d, ", n); in putnr() 52 fprintf(th, "{ \"%s\", %d, %d },\n\t", in putfnm() 64 fprintf(th, "{ \"%s\", %d, %d }\n", in putfnm_flush() 126 fprintf(th, "uchar reached%d [] = {\n\t", m); in dumpskip() 141 fprintf(th, "};\n"); in dumpskip() 143 fprintf(th, "uchar *loopstate%d;\n", m); in dumpskip() 146 fprintf(th, "#define reached_event reached%d\n", m); in dumpskip() 157 fprintf(th, "short src_ln%d [] = {\n\t", m); in dumpsrc() 168 fprintf(th, "};\n"); in dumpsrc() [all …]
|
| /plan9/sys/src/cmd/gs/jpeg/ |
| H A D | ckconfig.c | 303 fprintf(outfile, "/* jconfig.h --- generated by ckconfig.c */\n"); 304 fprintf(outfile, "/* see jconfig.doc for explanations */\n\n"); 306 fprintf(outfile, "#define HAVE_PROTOTYPES\n"); 308 fprintf(outfile, "#undef HAVE_PROTOTYPES\n"); 311 fprintf(outfile, "#define HAVE_UNSIGNED_CHAR\n"); 313 fprintf(outfile, "#undef HAVE_UNSIGNED_CHAR\n"); 316 fprintf(outfile, "#define HAVE_UNSIGNED_SHORT\n"); 318 fprintf(outfile, "#undef HAVE_UNSIGNED_SHORT\n"); 321 fprintf(outfile, "/* #define void char */\n"); 323 fprintf(outfile, "#define void char\n"); [all …]
|
| H A D | jpegtran.c | 48 fprintf(stderr, "usage: %s [switches] ", progname); in usage() 50 fprintf(stderr, "inputfile outputfile\n"); in usage() 52 fprintf(stderr, "[inputfile]\n"); in usage() 55 fprintf(stderr, "Switches (names may be abbreviated):\n"); in usage() 56 fprintf(stderr, " -copy none Copy no extra markers from source file\n"); in usage() 57 fprintf(stderr, " -copy comments Copy only comment markers (default)\n"); in usage() 58 fprintf(stderr, " -copy all Copy all extra markers\n"); in usage() 60 fprintf(stderr, " -optimize Optimize Huffman table (smaller file, but slow compression)\n"); in usage() 63 fprintf(stderr, " -progressive Create progressive JPEG file\n"); in usage() 66 fprintf(stderr, "Switches for modifying the image:\n"); in usage() [all …]
|
| H A D | djpeg.c | 93 fprintf(stderr, "usage: %s [switches] ", progname); in usage() 95 fprintf(stderr, "inputfile outputfile\n"); in usage() 97 fprintf(stderr, "[inputfile]\n"); in usage() 100 fprintf(stderr, "Switches (names may be abbreviated):\n"); in usage() 101 fprintf(stderr, " -colors N Reduce image to no more than N colors\n"); in usage() 102 fprintf(stderr, " -fast Fast, low-quality processing\n"); in usage() 103 fprintf(stderr, " -grayscale Force grayscale output\n"); in usage() 105 fprintf(stderr, " -scale M/N Scale output image by fraction M/N, eg, 1/8\n"); in usage() 108 fprintf(stderr, " -bmp Select BMP output format (Windows style)%s\n", in usage() 112 fprintf(stderr, " -gif Select GIF output format%s\n", in usage() [all …]
|
| H A D | cjpeg.c | 144 fprintf(stderr, "usage: %s [switches] ", progname); in usage() 146 fprintf(stderr, "inputfile outputfile\n"); in usage() 148 fprintf(stderr, "[inputfile]\n"); in usage() 151 fprintf(stderr, "Switches (names may be abbreviated):\n"); in usage() 152 fprintf(stderr, " -quality N Compression quality (0..100; 5-95 is useful range)\n"); in usage() 153 fprintf(stderr, " -grayscale Create monochrome JPEG file\n"); in usage() 155 fprintf(stderr, " -optimize Optimize Huffman table (smaller file, but slow compression)\n"); in usage() 158 fprintf(stderr, " -progressive Create progressive JPEG file\n"); in usage() 161 fprintf(stderr, " -targa Input file is Targa format (usually not needed)\n"); in usage() 163 fprintf(stderr, "Switches for advanced users:\n"); in usage() [all …]
|
| H A D | wrjpgcom.c | 87 #define ERREXIT(msg) (fprintf(stderr, "%s\n", msg), exit(EXIT_FAILURE)) 206 fprintf(stderr, "Warning: garbage data found in JPEG file\n"); in next_marker() 354 fprintf(stderr, "wrjpgcom inserts a textual comment in a JPEG file.\n"); in usage() 355 fprintf(stderr, "You can add to or replace any existing comment(s).\n"); in usage() 357 fprintf(stderr, "Usage: %s [switches] ", progname); in usage() 359 fprintf(stderr, "inputfile outputfile\n"); in usage() 361 fprintf(stderr, "[inputfile]\n"); in usage() 364 fprintf(stderr, "Switches (names may be abbreviated):\n"); in usage() 365 fprintf(stderr, " -replace Delete any existing comments\n"); in usage() 366 fprintf(stderr, " -comment \"text\" Insert comment with given text\n"); in usage() [all …]
|
| /plan9/sys/src/cmd/aux/antiword/ |
| H A D | postscript.c | 224 fprintf(pOutFile, "%%%%BeginPageSetup\n"); in vAddPageSetup() 225 fprintf(pOutFile, "90 rotate\n"); in vAddPageSetup() 226 fprintf(pOutFile, "0.00 %.2f translate\n", in vAddPageSetup() 228 fprintf(pOutFile, "%%%%EndPageSetup\n"); in vAddPageSetup() 334 fprintf(pDiag->pOutFile, in vAddHeader() 394 fprintf(pDiag->pOutFile, in vAddFooter() 414 fprintf(pDiag->pOutFile, "showpage\n"); in vMove2NextPage() 416 fprintf(pDiag->pOutFile, "%%%%Page: %d %d\n", iPageCount, iPageCount); in vMove2NextPage() 450 fprintf(pDiag->pOutFile, "%.2f %.2f moveto\n", in vMoveTo() 508 fprintf(pOutFile, "%%!PS-Adobe-2.0\n"); in vProloguePS() [all …]
|
| H A D | main_u.c | 57 fprintf(stderr, "\tName: %s\n", szTask); in vUsage() 58 fprintf(stderr, "\tPurpose: "PURPOSESTRING"\n"); in vUsage() 59 fprintf(stderr, "\tAuthor: "AUTHORSTRING"\n"); in vUsage() 60 fprintf(stderr, "\tVersion: "VERSIONSTRING); in vUsage() 62 fprintf(stderr, VERSIONSTRING2); in vUsage() 64 fprintf(stderr, "\n"); in vUsage() 65 fprintf(stderr, "\tStatus: "STATUSSTRING"\n"); in vUsage() 66 fprintf(stderr, in vUsage() 68 fprintf(stderr, in vUsage() 71 fprintf(stderr, "\t\t-f formatted text output\n"); in vUsage() [all …]
|
| /plan9/sys/src/games/mp3enc/ |
| H A D | parse.c | 66 fprintf(fp, "mp3enc (from lame version %s (%s))\n\n", v, u); in lame_version_print() 69 fprintf(fp, "mp3enc (from lame version %s)\n%*s(%s)\n\n", in lame_version_print() 79 fprintf(fp, "Can I use LAME in my commercial program?\n\n" in print_license() 123 fprintf(fp, "usage: %s [options] <infile> [outfile]\n\n" in usage() 142 fprintf(fp, "usage: %s [options] <infile> [outfile]\n\n" in short_help() 177 fprintf(fp, "\n"); in wait_for() 178 fprintf(fp, "\n"); in wait_for() 186 fprintf(fp, "usage: %s [options] <infile> [outfile]\n\n" in long_help() 203 fprintf(fp, " Operational options:\n" in long_help() 227 fprintf(fp, " Verbosity:\n" in long_help() [all …]
|
| /plan9/sys/src/cmd/postscript/postprint/ |
| H A D | postprint.c | 213 fprintf(stdout, "%s", CONFORMING); in header() 214 fprintf(stdout, "%s %s\n", VERSION, PROGRAMVERSION); in header() 215 fprintf(stdout, "%s %s\n", DOCUMENTFONTS, ATEND); in header() 216 fprintf(stdout, "%s %s\n", PAGES, ATEND); in header() 217 fprintf(stdout, "%s", ENDCOMMENTS); in header() 225 fprintf(stdout, "%s", ENDPROLOG); in header() 226 fprintf(stdout, "%s", BEGINSETUP); in header() 227 fprintf(stdout, "mark\n"); in header() 254 fprintf(stdout, "/aspectratio %s def\n", optarg); in options() 259 fprintf(stdout, "/#copies %s store\n", optarg); in options() [all …]
|
| /plan9/sys/src/cmd/lp/ |
| H A D | lpdsend.c | 39 fprintf(stderr, "%s", str); in debug() 45 fprintf(stderr, "timeout occurred, check printer.\n"); in alarmhandler() 60 fprintf(stderr, "lpdsend: copyfile(%d,%d,%ld)\n", in copyfile() 64 fprintf(stderr, "lpdsend: copyfile read %d bytes from %d\n", in copyfile() 70 fprintf(stderr, "write to fd %d failed\n", out); in copyfile() 75 fprintf(stderr, "lpdsend: copyfile wrote %d bytes to %d\n", in copyfile() 80 fprintf(stderr, ": %5.2f%% sent\n", sent*100.0/tosend); in copyfile() 84 fprintf(stderr, "lpdsend: copyfile read %d bytes from %d\n", in copyfile() 102 fprintf(stderr, "no printer name\n"); in killjob() 106 fprintf(stderr, "no user name given\n"); in killjob() [all …]
|
| /plan9/sys/src/cmd/postscript/postbgi/ |
| H A D | postbgi.c | 311 fprintf(stdout, "%s", CONFORMING); in header() 312 fprintf(stdout, "%s %s\n", VERSION, PROGRAMVERSION); in header() 313 fprintf(stdout, "%s %s\n", DOCUMENTFONTS, ATEND); in header() 314 fprintf(stdout, "%s %s\n", PAGES, ATEND); in header() 315 fprintf(stdout, "%s", ENDCOMMENTS); in header() 320 fprintf(stdout, "%s", ENDPROLOG); in header() 321 fprintf(stdout, "%s", BEGINSETUP); in header() 322 fprintf(stdout, "mark\n"); in header() 343 fprintf(stdout, "/aspectratio %s def\n", optarg); in options() 348 fprintf(stdout, "/#copies %s def\n", optarg); in options() [all …]
|
| /plan9/sys/src/cmd/postscript/postdmd/ |
| H A D | postdmd.c | 227 fprintf(stdout, "%s", CONFORMING); in header() 228 fprintf(stdout, "%s %s\n", VERSION, PROGRAMVERSION); in header() 229 fprintf(stdout, "%s %s\n", DOCUMENTFONTS, ATEND); in header() 230 fprintf(stdout, "%s %s\n", PAGES, ATEND); in header() 231 fprintf(stdout, "%s", ENDCOMMENTS); in header() 236 fprintf(stdout, "%s", ENDPROLOG); in header() 237 fprintf(stdout, "%s", BEGINSETUP); in header() 238 fprintf(stdout, "mark\n"); in header() 261 fprintf(stdout, "/aspectratio %s def\n", optarg); in options() 270 fprintf(stdout, "/#copies %s store\n", optarg); in options() [all …]
|
| /plan9/sys/src/cmd/postscript/tcpostio/ |
| H A D | tcpostio.c | 35 fprintf(stderr, "read timeout occurred, check printer\n"); in rdtmout() 191 fprintf(stderr, "request status failed\n"); in readprinter() 202 if (debug&0x1) fprintf(stderr, "readprinter select returned %d\n", n); in readprinter() 206 fprintf(stderr, "printer appears to be offline.\nHP4m printers may be out of paper.\n"); in readprinter() 213 fprintf(stderr, "printer exception\n"); in readprinter() 215 fprintf(stderr, "'fatal error' write to pipe failed\n"); in readprinter() 222 fprintf(stderr, "pipe exception\n"); in readprinter() 228 if (debug&0x1) fprintf(stderr, "pipe wants to be read\n"); in readprinter() 230 fprintf(stderr, "read protocol pipe failed\n"); in readprinter() 234 if (debug&0x1) fprintf(stderr, "readprinter: proto=%c\n", proto); in readprinter() [all …]
|
| /plan9/sys/src/cmd/postscript/posttek/ |
| H A D | posttek.c | 239 fprintf(stdout, "%s", CONFORMING); in header() 240 fprintf(stdout, "%s %s\n", VERSION, PROGRAMVERSION); in header() 241 fprintf(stdout, "%s %s\n", DOCUMENTFONTS, ATEND); in header() 242 fprintf(stdout, "%s %s\n", PAGES, ATEND); in header() 243 fprintf(stdout, "%s", ENDCOMMENTS); in header() 248 fprintf(stdout, "%s", ENDPROLOG); in header() 249 fprintf(stdout, "%s", BEGINSETUP); in header() 250 fprintf(stdout, "mark\n"); in header() 273 fprintf(stdout, "/aspectratio %s def\n", optarg); in options() 278 fprintf(stdout, "/#copies %s store\n", optarg); in options() [all …]
|
| /plan9/sys/src/cmd/postscript/postdaisy/ |
| H A D | postdaisy.c | 232 fprintf(stdout, "%s", CONFORMING); in header() 233 fprintf(stdout, "%s %s\n", VERSION, PROGRAMVERSION); in header() 234 fprintf(stdout, "%s %s\n", DOCUMENTFONTS, ATEND); in header() 235 fprintf(stdout, "%s %s\n", PAGES, ATEND); in header() 236 fprintf(stdout, "%s", ENDCOMMENTS); in header() 244 fprintf(stdout, "%s", ENDPROLOG); in header() 245 fprintf(stdout, "%s", BEGINSETUP); in header() 246 fprintf(stdout, "mark\n"); in header() 273 fprintf(stdout, "/aspectratio %s def\n", optarg); in options() 278 fprintf(stdout, "/#copies %s store\n", optarg); in options() [all …]
|
| H A D | Opostdaisy.c | 230 fprintf(stdout, "%s", CONFORMING); in header() 231 fprintf(stdout, "%s %s\n", VERSION, PROGRAMVERSION); in header() 232 fprintf(stdout, "%s %s\n", DOCUMENTFONTS, ATEND); in header() 233 fprintf(stdout, "%s %s\n", PAGES, ATEND); in header() 234 fprintf(stdout, "%s", ENDCOMMENTS); in header() 242 fprintf(stdout, "%s", ENDPROLOG); in header() 243 fprintf(stdout, "%s", BEGINSETUP); in header() 244 fprintf(stdout, "mark\n"); in header() 271 fprintf(stdout, "/aspectratio %s def\n", optarg); in options() 276 fprintf(stdout, "/#copies %s store\n", optarg); in options() [all …]
|
| /plan9/sys/src/cmd/gs/src/ |
| H A D | gendev.c | 98 fprintf(stderr, "-d|m|a must precede non-switches.\n", arg); in main() 125 fprintf(stderr, "Unknown switch %s.\n", argv[i]); in main() 131 fprintf(stderr, "No output file name given, last argument is %s.\n", in main() 144 fprintf(stderr, "Can't open %s for output.\n", fname); in main() 148 fprintf(out, in main() 155 fprintf(out, "\n#%sifndef %s_%ld_INCLUDED\n", in main() 157 fprintf(out, "#%s define %s_%ld_INCLUDED\n", in main() 175 fprintf(out, "#%sendif /* -%s */\n", in main() 180 fprintf(out, "#%selse /* RES_SCAN */\n", indent_RES_SCAN); in main() 182 fprintf(out, "#%sifdef RES_SCAN\n", indent_RES_SCAN); in main() [all …]
|
| /plan9/sys/src/cmd/postscript/postmd/ |
| H A D | postmd.c | 301 fprintf(stdout, "%s", CONFORMING); in header() 302 fprintf(stdout, "%s %s\n", VERSION, PROGRAMVERSION); in header() 303 fprintf(stdout, "%s %s\n", DOCUMENTFONTS, ATEND); in header() 304 fprintf(stdout, "%s %s\n", PAGES, ATEND); in header() 305 fprintf(stdout, "%s", ENDCOMMENTS); in header() 310 fprintf(stdout, "%s", ENDPROLOG); in header() 311 fprintf(stdout, "%s", BEGINSETUP); in header() 312 fprintf(stdout, "mark\n"); in header() 335 fprintf(stdout, "/aspectratio %s def\n", optarg); in options() 344 fprintf(stdout, "/#copies %s store\n", optarg); in options() [all …]
|