Lines Matching refs:sp

82 		if (sp->num_exits + sp->num_airports < 2)
103 if (sp->update_secs != 0)
108 sp->update_secs = $3;
115 if (sp->newplane_time != 0)
120 sp->newplane_time = $3;
127 if (sp->height != 0)
132 sp->height = $3;
139 if (sp->height != 0)
144 sp->width = $3;
176 if (sp->num_beacons % REALLOC == 0) {
177 if (sp->beacon == NULL)
178 sp->beacon = malloc((sp->num_beacons + REALLOC)
181 sp->beacon = realloc(sp->beacon,
182 (sp->num_beacons + REALLOC) *
184 if (sp->beacon == NULL)
187 sp->beacon[sp->num_beacons].x = $2;
188 sp->beacon[sp->num_beacons].y = $3;
190 sp->num_beacons++;
206 if (sp->num_exits % REALLOC == 0) {
207 if (sp->exit == NULL)
208 sp->exit = malloc((sp->num_exits + REALLOC) *
211 sp->exit = realloc(sp->exit, (sp->num_exits +
213 if (sp->exit == NULL)
217 sp->exit[sp->num_exits].x = $2;
218 sp->exit[sp->num_exits].y = $3;
219 sp->exit[sp->num_exits].dir = dir;
222 sp->num_exits++;
238 if (sp->num_airports % REALLOC == 0) {
239 if (sp->airport == NULL)
240 sp->airport = malloc((sp->num_airports +
243 sp->airport = realloc(sp->airport,
244 (sp->num_airports + REALLOC) *
246 if (sp->airport == NULL)
250 sp->airport[sp->num_airports].x = $2;
251 sp->airport[sp->num_airports].y = $3;
252 sp->airport[sp->num_airports].dir = dir;
254 sp->num_airports++;
268 if (sp->num_lines % REALLOC == 0) {
269 if (sp->line == NULL)
270 sp->line = malloc((sp->num_lines + REALLOC) *
273 sp->line = realloc(sp->line, (sp->num_lines +
275 if (sp->line == NULL)
278 sp->line[sp->num_lines].p1.x = $3;
279 sp->line[sp->num_lines].p1.y = $4;
280 sp->line[sp->num_lines].p2.x = $7;
281 sp->line[sp->num_lines].p2.y = $8;
283 sp->num_lines++;
291 if (!(x == 0) && !(x == sp->width - 1) &&
292 !(y == 0) && !(y == sp->height - 1))
299 if (x < 1 || x >= sp->width - 1) in check_point()
301 if (y < 1 || y >= sp->height - 1) in check_point()
308 if (x < 0 || x >= sp->width) in check_linepoint()
310 if (y < 0 || y >= sp->height) in check_linepoint()
343 if (x == sp->width - 1) in check_edir()
347 if (y == sp->height - 1) in check_edir()
375 if (sp->width == 0) { in checkdefs()
379 if (sp->height == 0) { in checkdefs()
383 if (sp->update_secs == 0) { in checkdefs()
387 if (sp->newplane_time == 0) { in checkdefs()