Lines Matching refs:s_prev
73 b.s_prev = b.s_next = -1;
86 b.s_prev = b.s_next = -1;
127 b.s_prev = b.s_next = -1;
136 b.s_prev = b.s_next = -1;
145 bords[n].s_prev=n-1;
149 bords[bords[n].s_next].s_prev=n;
151 bords[n].s_prev=n-1;
157 bords[n].s_prev=s_last;
161 bords[n].s_prev=bords[c].s_prev;
162 bords[bords[n].s_prev].s_next=n;
165 bords[c].s_prev=n;
205 b.s_prev = b.s_next = -1;
214 b.s_prev = b.s_next = -1;
220 /* if ( bords[n].s_prev < 0 ) {
221 bords[n-1].s_prev=-1;
225 bords[n].s_prev=n-1;
226 } else if ( bords[bords[n].s_prev].pos <= spos ) {
227 bords[n-1].s_prev=bords[n].s_prev;
228 bords[bords[n-1].s_prev].s_next=n-1;
231 bords[n].s_prev=n-1;
233 int c=bords[bords[n].s_prev].s_prev;
234 while ( c >= 0 && bords[c].pos > spos ) c=bords[c].s_prev;
237 bords[s_first].s_prev=n-1;
241 bords[bords[n-1].s_next].s_prev=n-1;
243 bords[n-1].s_prev=c;
279 b.s_prev = s_last;
297 b.s_prev = n - 1;
318 bords[no].s_prev = -1;
330 bords[no].s_prev = s_last;
334 bords[no].s_prev = bords[c].s_prev;
335 if ( bords[no].s_prev >= 0 ) {
336 bords[bords[no].s_prev].s_next = no;
341 bords[c].s_prev = no;
349 bords[no].s_prev = bords[c].s_prev;
350 if ( bords[no].s_prev >= 0 ) {
351 bords[bords[no].s_prev].s_next = no;
356 bords[c].s_prev = no;
361 c = bords[c].s_prev;
366 bords[s_first].s_prev =no; // s_first != -1
371 bords[bords[no].s_next].s_prev = no;
375 bords[no].s_prev = c;
386 bords[no].s_prev = s_last;
390 bords[no].s_prev = bords[c].s_prev;
391 if ( bords[no].s_prev >= 0 ) {
392 bords[bords[no].s_prev].s_next = no;
397 bords[c].s_prev = no;