71 |
if (len == 0) |
if (len == 0) |
72 |
return 0; |
return 0; |
73 |
offset = data->wanted_offset; |
offset = data->wanted_offset; |
74 |
for(i=0;i<len;i++) { |
for (i = 0; i < len; i++) { |
75 |
d = abs(offset - offsets[i]); |
d = abs(offset - offsets[i]); |
76 |
if (d < data->dmin) { |
if (d < data->dmin) { |
77 |
data->dmin = d; |
data->dmin = d; |
394 |
|
|
395 |
h = SCROLL_MHEIGHT; |
h = SCROLL_MHEIGHT; |
396 |
if (abs(dir) == 2) { |
if (abs(dir) == 2) { |
397 |
h = s->height - SCROLL_MHEIGHT; |
h = s->height - SCROLL_MHEIGHT; |
398 |
dir /= 2; |
dir /= 2; |
399 |
} |
} |
400 |
if (h < SCROLL_MHEIGHT) |
if (h < SCROLL_MHEIGHT) |
401 |
h = s->height; |
h = s->height; |
834 |
int c, score; |
int c, score; |
835 |
|
|
836 |
score = 0; |
score = 0; |
837 |
for(;;) { |
for (;;) { |
838 |
c = *p; |
c = *p; |
839 |
if (c == '\0') |
if (c == '\0') |
840 |
break; |
break; |
841 |
if (c < 32 && (c != '\r' && c != '\n' && c != '\t' && c != '\e')) |
if (c < 32 && (c != '\r' && c != '\n' && c != '\t' && c != '\e')) |
842 |
return 0; |
return 0; |
843 |
if (stristart(p, "<HTML", NULL)) |
if (stristart(p, "<HTML", NULL)) |
844 |
score = 100; |
score = 100; |