/[bison]/bison/src/vcg.c
ViewVC logotype

Diff of /bison/src/vcg.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5.2.1 by marc, Thu Aug 16 20:01:14 2001 UTC revision 1.5.2.2 by marc, Sun Aug 26 23:48:50 2001 UTC
# Line 49  new_graph (graph_t *g) Line 49  new_graph (graph_t *g)
49    g->textmode = G_TEXTMODE;    g->textmode = G_TEXTMODE;
50    g->shape = G_SHAPE;    g->shape = G_SHAPE;
51    
52      g->vertical_order = G_VERTICAL_ORDER;
53      g->horizontal_order = G_HORIZONTAL_ORDER;
54    
55    g->xmax = G_XMAX; /* Not output. */    g->xmax = G_XMAX; /* Not output. */
56    g->ymax = G_YMAX; /* Not output. */    g->ymax = G_YMAX; /* Not output. */
57    
# Line 667  output_graph (graph_t *graph, struct obs Line 670  output_graph (graph_t *graph, struct obs
670    
671    if (graph->shape != G_SHAPE)    if (graph->shape != G_SHAPE)
672      obstack_fgrow1 (os, "\tshape:\t%s\n", get_shape_str (graph->shape));      obstack_fgrow1 (os, "\tshape:\t%s\n", get_shape_str (graph->shape));
673      
674      if (graph->vertical_order != G_VERTICAL_ORDER)
675        obstack_fgrow1 (os, "\tvertical_order:\t%d\n", graph->vertical_order);  
676      if (graph->horizontal_order != G_HORIZONTAL_ORDER)
677        obstack_fgrow1 (os, "\thorizontal_order:\t%d\n", graph->horizontal_order);  
678    
679    if (graph->xmax != G_XMAX)    if (graph->xmax != G_XMAX)
680      obstack_fgrow1 (os, "\txmax:\t%d\n", graph->xmax);      obstack_fgrow1 (os, "\txmax:\t%d\n", graph->xmax);
# Line 703  output_graph (graph_t *graph, struct obs Line 711  output_graph (graph_t *graph, struct obs
711          obstack_fgrow2 (os, "\tclassname %d :\t%s\n", ite->no, ite->name);          obstack_fgrow2 (os, "\tclassname %d :\t%s\n", ite->no, ite->name);
712      }      }
713    
714      if (graph->infoname != G_INFONAME)
715        {
716          struct infoname_s *ite;
717    
718          for (ite = graph->infoname; ite; ite = ite->next)
719            obstack_fgrow2 (os, "\tinfoname %d :\t%s\n", ite->integer, ite->string);
720        }
721    
722      if (graph->colorentry != G_COLORENTRY)
723        {
724          struct colorentry_s *ite;
725          char buff[64];
726          
727          for (ite = graph->colorentry; ite; ite = ite->next)
728            {      
729              sprintf (buff, "\tcolorentry %d :\t%d %d %d\n",
730                       ite->color_index,
731                       ite->red_cp,
732                       ite->green_cp,
733                       ite->blue_cp);
734              obstack_sgrow (os, buff);
735            }    
736        }
737    
738    if (graph->layoutalgorithm != G_LAYOUTALGORITHM)    if (graph->layoutalgorithm != G_LAYOUTALGORITHM)
739      obstack_fgrow1 (os, "\tlayoutalgorithm:\t%s\n",      obstack_fgrow1 (os, "\tlayoutalgorithm:\t%s\n",
740                      get_layoutalgorithm_str(graph->layoutalgorithm));                      get_layoutalgorithm_str(graph->layoutalgorithm));

Legend:
Removed from v.1.5.2.1  
changed lines
  Added in v.1.5.2.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26