Home
last modified time | relevance | path

Searched refs:printf (Results 1 – 25 of 173) sorted by relevance

1234567

/plan9/sys/src/cmd/graph/
H A Diplot.h1 #define arc(_x,_y,_X,_Y,_u,_v,_r) printf("a %d %d %d %d %d %d %d\n",_x,_y,_X,_Y,_u,_v,_r)
2 #define box(_x,_y,_X,_Y) printf("bo %d %d %d %d\n", _x,_y,_X,_Y)
3 #define bspline(_num,_ff) {printf("bs {\n"); putnum(_num,_ff); printf("}\n");}
4 #define call(_sname,_x) printf("ca %s %d\n", _sname,_x)
5 #define cfill(_s) printf("cf %s\n", _s)
6 #define circle(_x,_y,_r) printf("ci %d %d %d\n", _x,_y,_r)
7 #define closepl() printf("cl\n")
8 #define color(_s) printf("co %s\n", _s)
9 #define cspline(_num,_ff) {printf("cs {\n"); putnum(_num,_ff); printf("}\n");}
10 #define pdefine(_sname, _str) printf("de %s {\n%s\n",_sname, _str)
[all …]
/plan9/sys/src/cmd/eqn/
H A Ddiacrit.c13 printf(".nr 10 %gm\n", max(REL(eht[p1]-ebase[p1]-1,ps), 0)); /* vert shift if high */ in diacrit()
15 printf(".nr 10 \\n(10+%gm\n", Dvshift); in diacrit()
17 printf(".nr 10 0\n"); in diacrit()
19 printf(".if \\n(ct>1 .nr 10 \\n(10+%gm\n", Dvshift); in diacrit()
20 printf(".nr %d %gm\n", t, Dhshift); /* horiz shift if high */ in diacrit()
21 printf(".if \\n(ct>1 .nr %d %gm\n", t, Dh2shift); /* was .1 and .15 */ in diacrit()
24 printf(".ds %d %s\n", c, lookup(deftbl, "vec_def")->cval); in diacrit()
27 printf(".ds %d %s\n", c, lookup(deftbl, "dyad_def")->cval); in diacrit()
30 printf(".ds %d %s\n", c, lookup(deftbl, "hat_def")->cval); in diacrit()
33 printf(".ds %d %s\n", c, lookup(deftbl, "tilde_def")->cval); in diacrit()
[all …]
H A Dparen.c39 printf(".ds %d \\^", yyval); /* was \| */ in paren()
41 printf("\\v'%gm'", bv); in paren()
48 printf("\\(lf"); in paren()
54 printf("\\(lc"); in paren()
59 printf("\\b'\\(lt"); in paren()
60 for(j = 0; j < m; j += 2) printf("\\(bv"); in paren()
61 printf("\\(lk"); in paren()
62 for(j = 0; j < m; j += 2) printf("\\(bv"); in paren()
63 printf("\\(lb'"); in paren()
79 printf("\\v'%gm'", -bv); in paren()
[all …]
H A Dmain.c33 printf("...\teqn %s\n", version); in main()
99 printf(".lf 1 %s\n", curfile->fname); in getdata()
104 printf("%s", in); in getdata()
106 printf(".nr MK 0\n"); in getdata()
114 printf(".nr MK %d\n", markline); /* for -ms macros */ in getdata()
115 printf(".if %gm>\\n(.v .ne %gm\n", eqnht, eqnht); in getdata()
116 printf(".rn %d 10\n", eqnreg); in getdata()
118 printf("\\&\\*(10\n"); in getdata()
120 printf(".EN"); in getdata()
123 printf(".lf %d\n", curfile->lineno+1); in getdata()
[all …]
H A Dfromto.c16 printf(".nr %d \\n(%d\n", yyval, p1); in fromto()
19 printf(".if \\n(%d>\\n(%d .nr %d \\n(%d\n", p2, yyval, yyval, p2); in fromto()
25 printf(".if \\n(%d>\\n(%d .nr %d \\n(%d\n", p3, yyval, yyval, p3); in fromto()
28 printf(".ds %d ", yyval); /* bottom of middle box */ in fromto()
31 printf("\\v'%gm'\\h'\\n(%du-\\n(%du/2u'%s\\*(%d%s", in fromto()
33 printf("\\h'-\\n(%du-\\n(%du/2u'\\v'%gm'\\\n", in fromto()
36 printf("\\h'\\n(%du-\\n(%du/2u'\\*(%d\\h'\\n(%du-\\n(%du/2u'\\\n", in fromto()
40 printf("\\v'%gm'\\h'-\\n(%du-\\n(%du/2u'%s\\*(%d%s\\h'\\n(%du-\\n(%du/2u'\\v'%gm'\\\n", in fromto()
43 printf("\n"); in fromto()
H A Dpile.c35 printf(".\tS%d <- %d pile of:", yyval, type); in pile()
37 printf(" S%d", lp[i]); in pile()
38 printf("; h=%g b=%g\n", eht[yyval], ebase[yyval]); in pile()
41 printf(".nr %d \\n(%d\n", yyval, lp[p1]); in pile()
44 printf(".if \\n(%d>\\n(%d .nr %d \\n(%d\n", in pile()
47 printf(".ds %d \\v'%gm'\\h'%du*\\n(%du'\\\n", yyval, REL(ebase[yyval],ps), in pile()
54 printf("\\v'%gm'\\*(%d\\h'-\\n(%du'\\v'%gm'\\\n", in pile()
58 printf("\\v'%gm'\\h'-\\n(%du'\\*(%d\\v'%gm'\\\n", in pile()
63 printf("\\v'%gm'\\h'\\n(%du-\\n(%du/2u'\\*(%d", in pile()
65 printf("\\h'-\\n(%du-\\n(%du/2u'\\v'%gm'\\\n", in pile()
[all …]
H A Dsqrt.c22 printf(".as %d \\|\n", yyval); in sqrt()
25 printf(".af 10 01\n"); /* make it two digits when it prints */ in sqrt()
26 printf(".nr 10 %.3fu*\\n(.su/10\n", 9.2*eht[p2]); /* this nonsense */ in sqrt()
28 printf(".ds %d \\v'%gm'\\s(\\n(10", yyval, REL(ebase[p2],ps)); in sqrt()
30 printf("\\v'-.2m'\\(sr\\l'\\n(%du\\(rn'\\v'.2m'", p2); in sqrt()
32 printf("\\(sr\\l'\\n(%du\\(rn'", p2); in sqrt()
33 printf("\\s0\\v'%gm'\\h'-\\n(%du'\\^\\*(%d\n", REL(-ebase[p2],ps), p2, p2); in sqrt()
/plan9/sys/src/cmd/spin/
H A Dtl_main.c85 printf("total memory used: %9ld\n", All_Mem); in tl_stats()
86 printf("largest stack sze: %9d\n", Stack_mx); in tl_stats()
137 default : printf("spin -f: saw '-%c'\n", argv[1][1]); in tl_main()
144 nogood: printf("usage:\tspin [-v] [-n] -f formula\n"); in tl_main()
145 printf(" -v verbose translation\n"); in tl_main()
146 printf(" -n normalize tl formula and exit\n"); in tl_main()
202 printf("Unknown token: "); in dump()
212 case ALWAYS: printf("[]"); break; in tl_explain()
213 case EVENTUALLY: printf("<>"); break; in tl_explain()
214 case IMPLIES: printf("->"); break; in tl_explain()
[all …]
H A Dreprosrc.c25 printf(" "); in doindent()
34 printf("d_step {\n"); in repro_sub()
37 printf("atomic {\n"); in repro_sub()
40 printf(" {\n"); in repro_sub()
48 printf(" };\n"); in repro_sub()
60 if (v) printf("%s:\n", v->name); in repro_seq()
63 { printf("/* normal */ {\n"); in repro_seq()
66 printf("} unless {\n"); in repro_seq()
69 printf("}; /* end unless */\n"); in repro_seq()
73 case DO: doindent(); printf("do\n"); indent++; break; in repro_seq()
[all …]
H A Dmain.c121 printf("seed used: %d\n", SeedUsed); in alldone()
125 printf("spin: %d error(s) - aborting\n", in alldone()
128 printf("Exit-Status 0\n"); in alldone()
181 printf("use: spin [-option] ... [-option] file\n"); in usage()
182 printf("\tNote: file must always be the last argument\n"); in usage()
183 printf("\t-A apply slicing algorithm\n"); in usage()
184 printf("\t-a generate a verifier in pan.c\n"); in usage()
185 printf("\t-B no final state details in simulations\n"); in usage()
186 printf("\t-b don't execute printfs in simulation\n"); in usage()
187 printf("\t-C print channel access info (combine with -g etc.)\n"); in usage()
[all …]
H A Dguided.c38 { printf("(%s) ", oX->n->name); in whichproc()
125 printf("spin: cannot find trail file\n"); in match_trail()
130 printf("spin: warning, \"%s\" is newer than %s\n", in match_trail()
157 { printf("-------------\n"); in match_trail()
158 printf("depth-limit (-u%d steps) reached\n", cutoff); in match_trail()
169 { printf("%3d: proc %d, no matching stmnt %d\n", in match_trail()
186 printf("%3d: claim terminates\n", in match_trail()
189 printf("%3d: proc %d terminates\n", in match_trail()
195 printf("%3d: stop error, ", depth); in match_trail()
196 printf("proc %d (i=%d) trans %d, %c\n", in match_trail()
[all …]
H A Dsched.c49 printf("Starting %s with pid %d\n", in runnable()
140 printf("proc %d = %s\n", in announce()
153 printf(" 0: proc - (%s) ", w); in announce()
156 printf("creates proc %2d (%s)", in announce()
160 printf(" priority %d", run->priority); in announce()
161 printf("\n"); in announce()
178 { printf("spin: too many processes (%d max)\n", MAXP); in enable()
208 { printf("spin: saw %d parameters, expected %d\n", i, cnt); in check_param_count()
225 printf("spin: couldn't find claim %d (ignored)\n", n); in start_claim()
228 printf("\t%d = %s\n", p->tn, p->n->name); in start_claim()
[all …]
H A Dsym.c98 { printf("spin: different container %s\n", sp->name); in lookup()
99 printf(" old: %s\n", sp->owner?sp->owner->name:"--"); in lookup()
100 printf(" new: %s\n", owner?owner->name:"--"); in lookup()
206 printf("proctype %s, '%s %s' could be declared", in checkrun()
208 printf(" '%s %s'\n", buf2, parnm->name); in checkrun()
293 { printf("error: x[rs] claims from %s and %s\n", in setonexu()
324 { printf("spin: warning, %s:%d, xs tag not compatible with -m (message loss)\n", in setxus()
431 { printf("%s", buf); in puttype()
444 printf("\t"); in symvar()
445 if (sp->owner) printf("%s.", sp->owner->name); in symvar()
[all …]
H A Dflow.c121 printf("spin: %s:%d, redundant skip\n", in check_sequence()
160 { printf("error: (%s:%d) label %s placed incorrectly\n", in close_seq()
166 printf("=====> stmnt unless Label: stmnt\n"); in close_seq()
167 printf("sorry, cannot jump to the guard of an\n"); in close_seq()
168 printf("escape (it is not a unique state)\n"); in close_seq()
171 printf("=====> instead of "); in close_seq()
172 printf("\"Label: stmnt unless stmnt\"\n"); in close_seq()
173 printf("=====> always use "); in close_seq()
174 printf("\"Label: { stmnt unless stmnt }\"\n"); in close_seq()
177 printf("=====> instead of "); in close_seq()
[all …]
H A Drun.c65 printf("\n\teval_sub(%d %s: line %d) ", in eval_sub()
68 printf("\n"); in eval_sub()
77 printf("GOTO leads to %d\n", f->seqno); in eval_sub()
95 { printf("Select stmnt ("); in eval_sub()
96 whoruns(0); printf(")\n"); in eval_sub()
98 { printf("\tchoice 0: other process\n"); in eval_sub()
116 printf("\tchoice %d: ", j); in eval_sub()
119 printf("line %d, ", z->this->frst->n->ln); in eval_sub()
122 printf("unexecutable, "); in eval_sub()
128 printf("\n"); in eval_sub()
[all …]
H A Dvars.c123 { printf("findlab through getglobal on %s\n", s->name); in getglobal()
246 printf("\t\t%s", sp->name); in dumpglobals()
247 if (sp->nel > 1 || sp->isarray) printf("[%d]", j); in dumpglobals()
248 printf(" = "); in dumpglobals()
251 printf("\n"); in dumpglobals()
272 { printf("\t\t%s\n", Buf); in dumpglobals()
275 printf("MSC: ~G %s %s\n", sp->name, Buf); in dumpglobals()
276 printf("%3d:\tproc %3d (TRACK) line 1 \"var\" ", in dumpglobals()
278 printf("(state 0)\t[printf('MSC: globvar\\\\n')]\n"); in dumpglobals()
279 printf("\t\t%s", sp->name); in dumpglobals()
[all …]
H A Dpangen6.c130 printf(":%s:L:", s->context->name); in AST_var()
132 printf("G:"); in AST_var()
134 printf("%s", s->name); /* array indices ignored */ in AST_var()
137 { printf(":"); in AST_var()
421 printf("%s -- (par) -- ", p->n->name); in AST_para()
423 printf(" => <<"); in AST_para()
427 printf(">>\n"); in AST_para()
440 printf("<<"); in AST_haschan()
442 printf(">>\n"); in AST_haschan()
478 printf("%s:", s->name);
[all …]
/plan9/sys/src/cmd/awk/
H A Dmaketab.c121 printf("#include <stdio.h>\n"); in main()
122 printf("#include \"awk.h\"\n"); in main()
123 printf("#include \"y.tab.h\"\n\n"); in main()
131 printf("static char *printname[%d] = {\n", SIZE); in main()
143 printf("\t(char *) \"%s\",\t/* %d */\n", name, tok); in main()
146 printf("};\n\n"); in main()
150 printf("\nCell *(*proctab[%d])(Node **, int) = {\n", SIZE); in main()
153 printf("\tnullproc,\t/* %s */\n", names[i]); in main()
155 printf("\t%s,\t/* %s */\n", table[i], names[i]); in main()
156 printf("};\n\n"); in main()
[all …]
/plan9/sys/src/ape/cmd/diff/
H A Dgetopt1.c123 printf ("option %s", long_options[option_index].name);
125 printf (" with arg %s", optarg);
126 printf ("\n");
140 printf ("digits occur in two different argv-elements.\n");
142 printf ("option %c\n", c);
146 printf ("option a\n");
150 printf ("option b\n");
154 printf ("option c with value `%s'\n", optarg);
158 printf ("option d with value `%s'\n", optarg);
165 printf ("?? getopt returned character code 0%o ??\n", c);
[all …]
/plan9/sys/src/ape/cmd/patch/
H A Dgetopt1.c132 printf ("option %s", long_options[option_index].name);
134 printf (" with arg %s", optarg);
135 printf ("\n");
149 printf ("digits occur in two different argv-elements.\n");
151 printf ("option %c\n", c);
155 printf ("option a\n");
159 printf ("option b\n");
163 printf ("option c with value `%s'\n", optarg);
167 printf ("option d with value `%s'\n", optarg);
174 printf ("?? getopt returned character code 0%o ??\n", c);
[all …]
/plan9/sys/src/cmd/pic/
H A Dpltroff.c65 printf("... %g %g %g %g\n", xmin, ymin, xmax, ymax); in openpl()
66 printf("... %.3fi %.3fi %.3fi %.3fi\n", in openpl()
68 printf(".nr 00 \\n(.u\n"); in openpl()
69 printf(".nf\n"); in openpl()
70 printf(".PS %.3fi %.3fi %s", yconv(ymin), xconv(xmax), s); in openpl()
109 printf(".sp 1+%.3fi\n", yconv(ymin)); in closepl()
111 printf("%s\n", PEline); in closepl()
112 printf(".if \\n(00 .fi\n"); in closepl()
155 printf("\\h'%.3fi'", hpos - htrue); in hvflush()
159 printf("\\v'%.3fi'", vpos - vtrue); in hvflush()
[all …]
/plan9/sys/src/cmd/jpg/
H A Djpegdump.c95 printf ("%02x len=%d\n", kind, l); in eatmarker()
127 printf ("SOF%d:\t%s\n", kind - 0xc0, sofName[kind - 0xc0]); in get_sof()
128 printf ("\t%d wide, %d high, %d deep, %d components\n", in get_sof()
134 printf ("\tcomponent %d: %d hsample, %d vsample, quantization table %d\n", in get_sof()
142 printf ("COM len=%d '", l); in get_com()
145 printf ("'\n"); in get_com()
153 printf ("APP%d len=%d\n", kind - 0xe0, l); in get_app()
163 printf(" "); in get_app()
164 printf("%.*s", nbuf, buf); in get_app()
173 printf("%.*s", nbuf, buf); in get_app()
[all …]
/plan9/sys/src/cmd/gs/jpeg/
H A Dckconfig.c253 printf("Hmm, it seems 'char' is not eight bits wide on your machine.\n");
254 printf("I fear the JPEG software will not work at all.\n\n");
279 printf("Right shift isn't acting as I expect it to.\n");
280 printf("I fear the JPEG software will not work at all.\n\n");
298 printf("Failed to write jconfig.h\n");
387 printf("Configuration check for Independent JPEG Group's software done.\n");
388 printf("\nI have written the jconfig.h file for you.\n\n");
390 printf("You should use makefile.ansi as the starting point for your Makefile.\n");
392 printf("You should use makefile.unix as the starting point for your Makefile.\n");
396 printf("\nYou'll need to change jconfig.h to include the system include file\n");
[all …]
/plan9/sys/src/cmd/9nfs/
H A D9auth.c21 printf("usage: %s [-d] username\n", argv0); in usage()
53 printf("debug=%d, file=%s\n", debug, file); in main()
69 printf("read %d\n", n); in main()
71 printf("read %d: ", n); in main()
75 printf("challenge: %s\n", challenge); in main()
81 printf("write %d\n", n); in main()
83 printf("write %d: ", n); in main()
/plan9/sys/src/cmd/tcs/font/
H A Dmkfile46 printf "v.out -s 0x3000 0x303f > %s/jis3000.16\n", dest
47 printf "v.out -s 0x30a1 0x30fe > %s/katakana.16\n", dest
48 printf "v.out -s 0x3041 0x309e > %s/hiragana.16\n", dest
49 printf "v.out 0x3000 0x303f > %s/jis3000.24\n", dest
50 printf "v.out 0x30a1 0x30fe > %s/katakana.24\n", dest
51 printf "v.out 0x3041 0x309e > %s/hiragana.24\n", dest
53 printf "v.out -s 0x%x 0x%x > %s/jis%x.16\n", i, i+fontsize-1, dest, i
55 printf "v.out 0x%x 0x%x > %s/jis%x.24\n", i, i+fontsize-1, dest, i
66 printf "v.out -5 -s 0x%x 0x%x > %s/%x.16\n", i, i+fontsize-1, dest, i
82 printf "v.out %s 0x3000 0x303f > %s3000.%s\n", opt, dest, sz
[all …]

1234567