Ticket #36397: patch-jgraph.c.diff

File patch-jgraph.c.diff, 2.3 KB (added by stevecheckoway (Stephen Checkoway), 12 years ago)
  • jgraph.c

    old new  
    66 */
    77
    88#include <stdio.h>
     9#include <string.h>
    910
    1011#ifdef VMS
    1112#include <redexp.VMS>
    1213#endif
    1314
    1415#include "jgraph.h"
     16#include "prio_list.h"
    1517
    1618int NMARKTYPES = 17;
    1719int NORMALMARKTYPES = 6;
    Label new_label() 
    4951}
    5052
    5153
    52 Curve new_curve(c, num)
    53 Curve c;
    54 int num;
     54Curve new_curve(Curve c, int num)
    5555{
    5656  Curve new_c;
    5757  int i;
    int num; 
    105105  return new_c;
    106106}
    107107
    108 Curve new_line(c, num)
    109 Curve c;
    110 int num;
     108Curve new_line(Curve c, int num)
    111109{
    112110  Curve new_c;
    113111  new_c = new_curve(c, num);
    int num; 
    117115}
    118116
    119117
    120 Curve get_curve(c, num)
    121 Curve c;
    122 int num;
     118Curve get_curve(Curve c, int num)
    123119{
    124120  Curve new_c;
    125121  for(new_c = last(c); new_c != nil(c) && new_c->num > num; new_c = prev(new_c));
    int num; 
    127123  return new_c;
    128124}
    129125
    130 Axis new_axis(is_x)
    131 int is_x;
     126static Axis new_axis(int is_x)
    132127{
    133128  int i;
    134129  Axis a;
    int is_x; 
    185180  return a;
    186181}
    187182
    188 Legend new_legend()
     183static Legend new_legend()
    189184{
    190185  Legend l;
    191186  l = (Legend) malloc (sizeof(struct legend));
    Legend new_legend() 
    202197  return l;
    203198}
    204199
    205 Label new_title()
     200static Label new_title()
    206201{
    207202  Label t;
    208203
    Label new_title() 
    216211  return t;
    217212}
    218213
    219 String new_string(s, num)
    220 String s;
    221 int num;
     214String new_string(String s, int num)
    222215{
    223216  String new_s;
    224217
    int num; 
    229222  return new_s;
    230223}
    231224
    232 String get_string(s, num)
    233 String s;
    234 int num;
     225String get_string(String s, int num)
    235226{
    236227  String new_s;
    237228  for(new_s = last(s); new_s != nil(s) && new_s->num > num; new_s = prev(new_s));
    Default new_default() 
    259250}
    260251*/
    261252 
    262 Graph new_graph(gs, num)
    263 Graph gs;
    264 int num;
     253Graph new_graph(Graph gs, int num)
    265254{
    266255  Graph g;
    267256
    int num; 
    286275  return g;
    287276}
    288277
    289 Graph get_graph(g, num)
    290 Graph g;
    291 int num;
     278Graph get_graph(Graph g, int num)
    292279{
    293280  Graph new_g;
    294281  for(new_g = last(g); new_g != nil(g) && new_g->num > num; new_g = prev(new_g));
    int num; 
    296283  return new_g;
    297284}
    298285
    299 new_graphs(gs)
    300 Graphs gs;
     286void new_graphs(Graphs gs)
    301287{
    302288  Graphs newg;
    303289
    Graphs gs; 
    315301  insert(newg, gs);
    316302}
    317303
    318 main(argc, argv)
    319 int argc;
    320 char **argv;
     304int main(int argc, char *argv[])
    321305{
    322306  Graphs gs;
    323307  int i;