]> git.saurik.com Git - bison.git/blob - src/vcg_defaults.h
(derives_compute): Do not subtract NTOKENS from
[bison.git] / src / vcg_defaults.h
1 /* VCG description handler for Bison.
2
3 Copyright (C) 2001, 2002 Free Software Foundation, Inc.
4
5 This file is part of Bison, the GNU Compiler Compiler.
6
7 Bison is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2, or (at your option)
10 any later version.
11
12 Bison is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with Bison; see the file COPYING. If not, write to
19 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20 Boston, MA 02111-1307, USA. */
21
22 #ifndef VCG_DEFAULTS_H_
23 # define VCG_DEFAULTS_H_
24
25 /* Graph defaults. */
26 # define G_TITLE NULL
27 # define G_LABEL NULL
28 # define G_INFOS1 NULL
29 # define G_INFOS2 NULL
30 # define G_INFOS3 NULL
31
32 # define G_COLOR white
33 # define G_TEXTCOLOR black
34 # define G_BORDERCOLOR G_TEXTCOLOR
35
36 # define G_WIDTH 100
37 # define G_HEIGHT 100
38 # define G_BORDERWIDTH 2
39
40 # define G_X 0
41 # define G_Y 0
42
43 # define G_FOLDING 0
44
45 # define G_SHRINK 1
46 # define G_EXPAND 1
47
48 # define G_TEXTMODE centered
49 # define G_SHAPE box
50
51 # define G_VERTICAL_ORDER 0 /* Unspecified for subgraphs. */
52 # define G_HORIZONTAL_ORDER 0 /* Unspecified for subgraphs. */
53
54 # define G_XMAX 90 /* Not output */
55 # define G_YMAX 90 /* Not output */
56
57 # define G_XBASE 5
58 # define G_YBASE 5
59
60 # define G_XSPACE 20
61 # define G_YSPACE 70
62 # define G_XLSPACE G_XSPACE / 2 /* Not output */
63
64 # define G_XRASTER 1
65 # define G_YRASTER 1
66 # define G_XLRASTER 1
67
68 # define G_HIDDEN -1 /* No default value. */
69
70 # define G_CLASSNAME NULL /* No class name association */
71 # define G_INFONAME NULL
72 # define G_COLORENTRY NULL
73
74 # define G_LAYOUTALGORITHM normal
75 # define G_LAYOUT_DOWNFACTOR 1
76 # define G_LAYOUT_UPFACTOR 1
77 # define G_LAYOUT_NEARFACTOR 1
78 # define G_LAYOUT_SPLINEFACTOR 70
79
80 # define G_LATE_EDGE_LABELS no
81 # define G_DISPLAY_EDGE_LABELS no
82 # define G_DIRTY_EDGE_LABELS no
83 # define G_FINETUNING yes
84 # define G_IGNORE_SINGLES no
85 # define G_LONG_STRAIGHT_PHASE no
86 # define G_PRIORITY_PHASE no
87 # define G_MANHATTAN_EDGES no
88 # define G_SMANHATTAN_EDGES no
89 # define G_NEAR_EDGES yes
90
91 # define G_ORIENTATION top_to_bottom
92 # define G_NODE_ALIGNMENT center
93 # define G_PORT_SHARING yes
94 # define G_ARROW_MODE fixed
95 # define G_TREEFACTOR 0.5
96 # define G_SPREADLEVEL 1
97 # define G_CROSSING_WEIGHT bary
98 # define G_CROSSING_PHASE2 yes
99 # define G_CROSSING_OPTIMIZATION yes
100 # define G_VIEW normal_view
101
102 # define G_EDGES yes
103 # define G_NODES yes
104 # define G_SPLINES no
105
106 # define G_BMAX 100
107 # define G_CMIN 0
108 /* computes the max value of an int ... */
109 # define G_CMAX ((unsigned) 1 << (sizeof(int) * 8 - 1)) - 1
110 # define G_PMIN 0
111 # define G_PMAX 100
112 # define G_RMIN 0
113 # define G_RMAX 100
114 # define G_SMAX 100
115
116 # define G_NODE_LIST NULL
117 # define G_EDGE_LIST NULL
118
119 /* Nodes defaults. */
120 # define N_TITLE NULL
121 # define N_LABEL NULL
122
123 # define N_LOCX -1 /* Default unspcified */
124 # define N_LOCY -1 /* Default unspcified */
125
126 # define N_VERTICAL_ORDER -1 /* Default unspcified */
127 # define N_HORIZONTAL_ORDER -1 /* Default unspcified */
128
129 # define N_WIDTH -1 /* We assume that we can't define it now. */
130 # define N_HEIGHT -1 /* also. */
131
132 # define N_SHRINK 1
133 # define N_EXPAND 1
134
135 # define N_FOLDING -1 /* no explicit default value. */
136
137 # define N_SHAPE box
138 # define N_TEXTMODE centered
139 # define N_BORDERWIDTH 2
140
141 # define N_COLOR white
142 # define N_TEXTCOLOR black
143 # define N_BORDERCOLOR N_TEXTCOLOR
144
145 # define N_INFOS1 NULL
146 # define N_INFOS2 NULL
147 # define N_INFOS3 NULL
148
149 # define N_NEXT NULL
150
151 /* Edge defaults. */
152 # define E_EDGE_TYPE normal_edge
153
154 # define E_SOURCENAME NULL /* Mandatory. */
155 # define E_TARGETNAME NULL /* Mandatory. */
156 # define E_LABEL NULL
157
158 # define E_LINESTYLE continuous
159 # define E_THICKNESS 2
160
161 # define E_CLASS 1
162
163 # define E_COLOR black
164 # define E_TEXTCOLOR E_COLOR
165 # define E_ARROWCOLOR E_COLOR
166 # define E_BACKARROWCOLOR E_COLOR
167
168 # define E_ARROWSIZE 10
169 # define E_BACKARROWSIZE 0
170
171 # define E_ARROWSTYLE solid
172 # define E_BACKARROWSTYLE none
173
174 # define E_PRIORITY 1
175
176 # define E_ANCHOR -1
177
178 # define E_HORIZONTAL_ORDER -1
179
180 # define E_NEXT NULL
181
182 #endif /* not VCG_DEFAULTS_H_ */