Changeset 420 for trunk/Jgraph/show.c
 Timestamp:
 02/27/08 07:13:31 (12 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

trunk/Jgraph/show.c
r418 r420 10 10 #include "jgraph.h" 11 11 12 static spaces(nsp) 13 int nsp; 12 static void spaces(int nsp) 14 13 { 15 14 while(nsp > 0) putchar(' '); … … 44 43 } 45 44 46 static show_mltiline(s) 47 char *s; 45 static void show_mltiline(char *s) 48 46 { 49 47 int i; … … 58 56 } 59 57 60 show_string(s) 61 char *s; 58 void show_string(char *s) 62 59 { 63 60 int i; … … 75 72 76 73 77 show_label(l, nsp, g) 78 Label l; 79 int nsp; 80 Graph g; 74 void show_label(Label l, int nsp, Graph g) 81 75 { 82 76 spaces(nsp); … … 96 90 printf("lcolor %f %f %f\n", l>gray[0], l>gray[1], l>gray[2]); 97 91 } 98 return; 99 } 100 101 show_lmark(l, nsp, g) 102 Label l; 103 int nsp; 104 Graph g; 92 } 93 94 void show_lmark(Label l, int nsp, Graph g) 105 95 { 106 96 spaces(nsp); show_string(l>label); … … 111 101 spaces(nsp); printf("font %s ", l>font); 112 102 printf("fontsize %f\n", l>fontsize); 113 return; 114 } 115 116 show_curve(c, nsp, g) 117 Curve c; 118 int nsp; 119 Graph g; 103 } 104 105 void show_curve(Curve c, int nsp, Graph g) 120 106 { 121 107 Point p; … … 252 238 } 253 239 254 show_axis(a, nsp, g) 255 Axis a; 256 int nsp; 257 Graph g; 240 void show_axis(Axis a, int nsp, Graph g) 258 241 { 259 242 Axis other; … … 343 326 } 344 327 345 show_legend(l, nsp, g) 346 Legend l; 347 int nsp; 348 Graph g; 328 void show_legend(Legend l, int nsp, Graph g) 349 329 { 350 330 if (l>type == 'c') { … … 363 343 } 364 344 365 show_graph(g, nsp) 366 Graph g; 367 int nsp; 345 void show_graph(Graph g, int nsp) 368 346 { 369 347 … … 395 373 } 396 374 397 show_graphs(gs) 398 Graphs gs; 375 void show_graphs(Graphs gs) 399 376 { 400 377 Graphs the_g;
Note: See TracChangeset
for help on using the changeset viewer.