/programs/cmm/browser/TWB.h |
---|
24,12 → 24,12 |
void DrawScroller(); |
}; |
TWebBrowser WB1; |
byte rez, b_text, i_text, u_text, s_text, pre_text, blq_text, li_text, |
link, ignor_text, li_tab, first_line_drawed, cur_encoding; |
TWebBrowser WB1; |
dword text_colors[300], |
text_color_index, |
link_color, |
/programs/cmm/browser/include/history.h |
---|
31,11 → 31,11 |
history_current/=2; |
for (i=0; i<history_current; i++;) |
{ |
strcpy(#history_list[i].Item, #history_list[MAX_HISTORY_NUM-i].Item); |
strlcpy(#history_list[i].Item, #history_list[MAX_HISTORY_NUM-i].Item, sizeof(history_list[0].Item)); |
} |
} |
history_current++; |
strcpy(#history_list[history_current].Item, #URL); |
strlcpy(#history_list[history_current].Item, #URL, sizeof(history_list[0].Item)); |
history_num=history_current; |
} |
45,7 → 45,7 |
if (history_current<=1) return 0; |
history_current--; |
strcpy(#URL, #history_list[history_current].Item); |
strlcpy(#URL, #history_list[history_current].Item, sizeof(URL)); |
return 1; |
} |
54,6 → 54,6 |
{ |
if (history_current==history_num) return 0; |
history_current++; |
strcpy(#URL, #history_list[history_current].Item); |
strlcpy(#URL, #history_list[history_current].Item, sizeof(URL)); |
return 1; |
} |
/programs/cmm/browser/include/parce_tag.h |
---|
15,19 → 15,13 |
if (kavichki) |
{ |
i=strrchr(#tagparam, kavichki); |
if (i>sizeof(options)) |
strcpy(#options, #tagparam + sizeof(options)); |
else |
strcpy(#options, #tagparam + i); |
strlcpy(#options, #tagparam + i, sizeof(options)); |
} |
else |
{ |
WHILE((i > 0) && (tagparam[i] <>'=')) i--; //i=strrchr(#tagparam, '=')+1; |
i++; |
if (i>sizeof(options)) |
strcpy(#options, #tagparam + sizeof(options)); |
else |
strcpy(#options, #tagparam + i); |
strlcpy(#options, #tagparam + i, sizeof(options)); |
WHILE (options[0] == ' ') strcpy(#options, #options+1); |
} |
38,13 → 32,7 |
IF (tagparam[i] == '=') //äåðçêàÿ çàãëóøêà |
tagparam[i + 1] = 0x00; |
} |
if (i>sizeof(parametr)) |
strcpy(#parametr, #tagparam + sizeof(parametr)); |
else |
strcpy(#parametr, #tagparam + i + 1); |
strlcpy(#parametr, #tagparam + i + 1, sizeof(parametr)); |
tagparam[i] = 0x00; |
return 1; |
} |