[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
vcg fix
From: |
twlevo |
Subject: |
vcg fix |
Date: |
Fri, 28 Jan 2005 11:37:09 +0100 (CET) |
User-agent: |
SquirrelMail/1.4.3a |
about vcg viewmode fix from yesterday, bison-cvs:
if in vcg_defaults.h the `#define G_VIEW normal_view'
is changed into `#define G_VIEW cfish' for example,
then in *any* situation a `view: viewmode' line must
be in the output vcg graph, example `view: cfish'.
that is why another change in vcg.c is needed
void output_graph (graph *g, FILE *fout)
{
...
/* output `view: viewmode' line for fisheye view modes */
if (g->view != normal_view)
fprintf (fout, "\tview:\t%s\n", get_view_str (g->view));
...
}
then it is possible to change `#define G_VIEW normal_view'
in vcg_defaults.h to `#define G_VIEW cfish' for example.
or just try it,
recompile with this line changed in vcg_default.h
#define G_VIEW cfish
and in vcg output should line `view: cfish' appear after
above patch, and is missing from current bison vcg output.
812c812,813
< if (g->view != G_VIEW)
---
> /* output `view: viewmode' line for fisheye view modes */
> if (g->view != normal_view)
Thanks.