Lines Matching defs:wtmp
97 struct wseg *wtmp;
101 wheads[tmp] = wsegs[tmp] = wtmp = newseg();
103 wtmp->wx = mtmp->mx;
104 wtmp->wy = mtmp->my;
105 /* wtmp->wdispl = 0; */
106 wtmp->nseg = 0;
112 struct wseg *wtmp, *whd = NULL;
114 wtmp = newseg();
115 wtmp->wx = mtmp->mx;
116 wtmp->wy = mtmp->my;
117 wtmp->nseg = 0;
118 /* wtmp->wdispl = 0; */
119 (whd = wheads[tmp])->nseg = wtmp;
120 wheads[tmp] = wtmp;
145 struct wseg *wtmp;
147 wtmp = wsegs[tmp];
148 if (wtmp == wheads[tmp])
150 if (wtmp == 0 || wtmp->nseg == 0)
152 wsegs[tmp] = wtmp->nseg;
153 remseg(wtmp);
161 struct wseg *wtmp, *wtmp2;
165 for (wtmp = wsegs[tmp]; wtmp; wtmp = wtmp2) {
166 wtmp2 = wtmp->nseg;
167 remseg(wtmp);
176 struct wseg *wtmp;
179 for (wtmp = wsegs[tmp]; wtmp; wtmp = wtmp->nseg)
186 struct wseg *wtmp = wsegs[tmp];
187 if (!wtmp)
188 panic("wormsee: wtmp==0");
189 for (; wtmp->nseg; wtmp = wtmp->nseg)
190 if (!cansee(wtmp->wx, wtmp->wy) && wtmp->wdispl) {
191 newsym(wtmp->wx, wtmp->wy);
192 wtmp->wdispl = 0;
197 pwseg(struct wseg *wtmp)
199 if (!wtmp->wdispl) {
200 atl(wtmp->wx, wtmp->wy, '~');
201 wtmp->wdispl = 1;
209 struct wseg *wtmp, *wtmp2;
225 wtmp = wsegs[tmp];
226 if (wtmp->wx == x && wtmp->wy == y) {
227 wsegs[tmp] = wtmp->nseg;
228 remseg(wtmp);
246 if (wtmp->nseg->wx == x && wtmp->nseg->wy == y) {
248 wheads[tmp2] = wtmp;
249 wsegs[tmp] = wtmp->nseg->nseg;
250 remseg(wtmp->nseg);
251 wtmp->nseg = 0;
256 mtmp2->mx = wtmp->wx;
257 mtmp2->my = wtmp->wy;
263 remseg(wtmp);
269 wtmp2 = wtmp->nseg;
271 remseg(wtmp);
272 wtmp = wtmp2;
273 } while (wtmp->nseg);
278 remseg(struct wseg *wtmp)
280 if (wtmp->wdispl)
281 newsym(wtmp->wx, wtmp->wy);
282 free(wtmp);