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