File: globals.ld

package info (click to toggle)
cuyo 1.8.6-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 3,796 kB
  • ctags: 1,507
  • sloc: cpp: 8,494; yacc: 419; sh: 388; lex: 237; makefile: 97; ansic: 2
file content (256 lines) | stat: -rw-r--r-- 5,206 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
#
#   Copyright <=2004 by Immanuel Halupczok
#
#   This program is free software; you can redistribute it and/or modify
#   it under the terms of the GNU General Public License as published by
#   the Free Software Foundation; either version 2 of the License, or
#   (at your option) any later version.
#
#   This program is distributed in the hope that it will be useful,
#   but WITHOUT ANY WARRANTY; without even the implied warranty of
#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#   GNU General Public License for more details.
#
#   You should have received a copy of the GNU General Public License
#   along with this program; if not, write to the Free Software
#   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#

# This file is the first one included from main.ld.
# It contains all the definitions which are useful for more than
# one level: the schemas and the defaults



<<

# The whole icon depends on the four neighbours
schema16={
  switch {
    0?0?0?0? -> A;
    0?1?0?0? -> B;
    0?1?0?1? -> C;
    0?0?0?1? -> D;
    0?0?1?0? -> E;
    0?1?1?0? -> F;
    0?1?1?1? -> G;
    0?0?1?1? -> H;
    1?0?1?0? -> I;
    1?1?1?0? -> J;
    1?1?1?1? -> K;
    1?0?1?1? -> L;
    1?0?0?0? -> M;
    1?1?0?0? -> N;
    1?1?0?1? -> O;
    1?0?0?1? -> P;
  };
  *
};

# Each quarter depends on its three neighbours - but it may only depend
# on the diagonal neighbour if at least one of the two other neighbours
# exist... Not yet defined.
#schema7={
#};

# Each quarter normally depends on its two neighbours.
# If both are present, the diagonal neighbor counts, too.
# This schema is useful for blobs that are surrounded by "walls":
# If a quarter has at least one missing neighbour, there is a wall.
# Otherwise there may or may not be a wall corner,
# which has some effect on the picture.
schema5={
  [qu=Q_TL] {switch {
    0?????0? -> C;
    1?????0? -> D;
    0?????1? -> A;
    1?????10 -> B;
    1?????11 -> E;
  };*};
  [qu=Q_TR] {switch {
    0?0????? -> C;
    0?1????? -> A;
    1?0????? -> B;
    101????? -> E;
    111????? -> D;
  };*};
  [qu=Q_BL] {switch {
    ????0?0? -> C;
    ????0?1? -> E;
    ????1?0? -> D;
    ????101? -> A;
    ????111? -> B;
  };*};
  [qu=Q_BR] {switch {
    ??0?0??? -> C;
    ??0?1??? -> B;
    ??1?0??? -> E;
    ??101??? -> D;
    ??111??? -> A;
  };*}
};



# Each quarter depends on its two neighbours
schema4={
  [qu=Q_TL] {switch {
    0?????0? -> A;
    0?????1? -> B;
    1?????0? -> C;
    1?????1? -> D;
  };*};
  [qu=Q_TR] {switch {
    0?1????? -> A;
    0?0????? -> B;
    1?1????? -> C;
    1?0????? -> D;
  };*};
  [qu=Q_BL] {switch {
    ????1?0? -> A;
    ????1?1? -> B;
    ????0?0? -> C;
    ????0?1? -> D;
  };*};
  [qu=Q_BR] {switch {
    ??1?1??? -> A;
    ??0?1??? -> B;
    ??1?0??? -> C;
    ??0?0??? -> D;
  };*}
};



# Each Quarter depends on its three neighbours.
schemaDiag16={
  [qu=Q_TL] {switch {
    0?????00 -> E;
    0?????10 -> F;
    1?????00 -> N;
    1?????10 -> G;
    0?????01 -> C;
    0?????11 -> L;
    1?????01 -> J;
    1?????11 -> K;
  };*};
  [qu=Q_TR] {switch {
    000????? -> C;
    100????? -> G;
    001????? -> E;
    101????? -> K;
    010????? -> L;
    110????? -> N;
    011????? -> F;
    111????? -> J;
  };*};
  [qu=Q_BL] {switch {
    ????000? -> N;
    ????100? -> J;
    ????001? -> L;
    ????101? -> F;
    ????010? -> E;
    ????110? -> C;
    ????011? -> K;
    ????111? -> G;
  };*};
  [qu=Q_BR] {switch {
    ??000??? -> L;
    ??100??? -> K;
    ??001??? -> C;
    ??101??? -> J;
    ??010??? -> N;
    ??110??? -> E;
    ??011??? -> G;
    ??111??? -> F;
  };*}
};


# Each Quarter only depends on its diagonal neighbour.
schemaDiag2={
  [qu=Q_TL] {switch {
    ???????0 -> A;
    ???????1 -> B;
  };*};
  [qu=Q_TR] {switch {
    ?0?????? -> A;
    ?1?????? -> B;
  };*};
  [qu=Q_BL] {switch {
    ?????0?? -> A;
    ?????1?? -> B;
  };*};
  [qu=Q_BR] {switch {
    ???0???? -> A;
    ???1???? -> B;
  };*}
};


# For hex mode. Each Quarter depends on its three neighbours.
schemaHex8={
  [qu=Q_TL_TL] {switch {
    0???00 -> A*;
    1???00 -> E*;
    0???10 -> C*;
    1???10 -> G*;
  }};
  [qu=Q_BL_TL] {switch {
    0???01 -> D*;
    1???01 -> H*;
    0???11 -> B*;
    1???11 -> F*;
  }};
  [qu=Q_TR_TR] {switch {
    001??? -> C*;
    101??? -> G*;
    011??? -> A*;
    111??? -> E*;
  }};
  [qu=Q_BR_TR] {switch {
    000??? -> D*;
    100??? -> H*;
    010??? -> B*;
    110??? -> F*;
  }};
  [qu=Q_BL_BL] {switch {
    ???100 -> A*;
    ???000 -> E*;
    ???110 -> C*;
    ???010 -> G*;
  }};
  [qu=Q_TL_BL] {switch {
    ???001 -> D*;
    ???101 -> H*;
    ???011 -> B*;
    ???111 -> F*;
  }};
  [qu=Q_BR_BR] {switch {
    ?011?? -> C*;
    ?010?? -> G*;
    ?111?? -> A*;
    ?110?? -> E*;
  }};
  [qu=Q_TR_BR] {switch {
    ?000?? -> D*;
    ?001?? -> H*;
    ?100?? -> B*;
    ?101?? -> F*;
  }}
};

# Default when there's one file with one icon
default1 = *;

# Default when there's one file with more than one icon (except for
# the grass)
default2 = {schema16};

# Same as default2, but for the grass
default2g = {pos=version;*};

# Default when there are multiple files
default3 = {file=version;schema16};

>>