Lines Matching refs:scan
229 off_t scan,pos,len; in bsdiff() local
281 scan=0;len=0; in bsdiff()
283 while(scan<newsize) { in bsdiff()
286 for(scsc=scan+=len;scan<newsize;scan++) { in bsdiff()
287 len=search(I,old,oldsize,newdata+scan,newsize-scan, in bsdiff()
290 for(;scsc<scan+len;scsc++) in bsdiff()
298 if((scan+lastoffset<oldsize) && in bsdiff()
299 (old[scan+lastoffset] == newdata[scan])) in bsdiff()
303 if((len!=oldscore) || (scan==newsize)) { in bsdiff()
305 for(i=0;(lastscan+i<scan)&&(lastpos+i<oldsize);) { in bsdiff()
312 if(scan<newsize) { in bsdiff()
314 for(i=1;(scan>=lastscan+i)&&(pos>=i);i++) { in bsdiff()
315 if(old[pos-i]==newdata[scan-i]) s++; in bsdiff()
320 if(lastscan+lenf>scan-lenb) { in bsdiff()
321 overlap=(lastscan+lenf)-(scan-lenb); in bsdiff()
326 if(newdata[scan-lenb+i]== in bsdiff()
337 for(i=0;i<(scan-lenb)-(lastscan+lenf);i++) in bsdiff()
341 eblen+=(scan-lenb)-(lastscan+lenf); in bsdiff()
348 offtout((scan-lenb)-(lastscan+lenf),buf); in bsdiff()
358 lastscan=scan-lenb; in bsdiff()
360 lastoffset=pos-scan; in bsdiff()