Changeset 420 for trunk/Jgraph/show.c


Ignore:
Timestamp:
02/27/08 07:13:31 (12 years ago)
Author:
Nicholas Riley
Message:

Jgraph: my changes - ANSIfication, few minor bug fixes; works on OS X 10.5 now

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Jgraph/show.c

    r418 r420  
    1010#include "jgraph.h"
    1111
    12 static spaces(nsp)
    13 int nsp;
     12static void spaces(int nsp)
    1413{
    1514  while(nsp-- > 0) putchar(' ');
     
    4443}
    4544
    46 static show_mltiline(s)
    47 char *s;
     45static void show_mltiline(char *s)
    4846{
    4947  int i;
     
    5856}
    5957
    60 show_string(s)
    61 char *s;
     58void show_string(char *s)
    6259{
    6360  int i;
     
    7572   
    7673   
    77 show_label(l, nsp, g)
    78 Label l;
    79 int nsp;
    80 Graph g;
     74void show_label(Label l, int nsp, Graph g)
    8175{
    8276  spaces(nsp);
     
    9690    printf("lcolor %f %f %f\n", l->gray[0], l->gray[1], l->gray[2]);
    9791  }
    98   return;
    99 }
    100 
    101 show_lmark(l, nsp, g)
    102 Label l;
    103 int nsp;
    104 Graph g;
     92}
     93
     94void show_lmark(Label l, int nsp, Graph g)
    10595{
    10696  spaces(nsp); show_string(l->label);
     
    111101  spaces(nsp); printf("font %s ", l->font);
    112102               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
     105void show_curve(Curve c, int nsp, Graph g)
    120106{
    121107  Point p;
     
    252238}
    253239
    254 show_axis(a, nsp, g)
    255 Axis a;
    256 int nsp;
    257 Graph g;
     240void show_axis(Axis a, int nsp, Graph g)
    258241{
    259242  Axis other;
     
    343326}
    344327
    345 show_legend(l, nsp, g)
    346 Legend l;
    347 int nsp;
    348 Graph g;
     328void show_legend(Legend l, int nsp, Graph g)
    349329{
    350330  if (l->type == 'c') {
     
    363343}
    364344
    365 show_graph(g, nsp)
    366 Graph g;
    367 int nsp;
     345void show_graph(Graph g, int nsp)
    368346{
    369347
     
    395373}
    396374
    397 show_graphs(gs)
    398 Graphs gs;
     375void show_graphs(Graphs gs)
    399376{
    400377  Graphs the_g;
Note: See TracChangeset for help on using the changeset viewer.