Rev 2739 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2739 | Rev 2810 | ||
---|---|---|---|
Line 28... | Line 28... | ||
28 | if (history_current>=MAX_HISTORY_NUM-1) |
28 | if (history_current>=MAX_HISTORY_NUM-1) |
29 | { |
29 | { |
30 | history_current/=2; |
30 | history_current/=2; |
31 | for (i=0; i |
31 | for (i=0; i |
32 | { |
32 | { |
33 | copystr(#history_list[MAX_HISTORY_NUM-i].Item, #history_list[i].Item); |
33 | strcpy(#history_list[i].Item, #history_list[MAX_HISTORY_NUM-i].Item); |
34 | } |
34 | } |
35 | } |
35 | } |
36 | history_current++; |
36 | history_current++; |
37 | copystr(#URL,#history_list[history_current].Item); |
37 | strcpy(#history_list[history_current].Item, #URL); |
38 | history_num=history_current; |
38 | history_num=history_current; |
39 | } |
39 | } |
Line 40... | Line 40... | ||
40 | 40 | ||
41 | 41 | ||
42 | byte UrlsHistory::GoBack() |
42 | byte UrlsHistory::GoBack() |
Line 43... | Line 43... | ||
43 | { |
43 | { |
44 | if (history_current<=1) return 0; |
44 | if (history_current<=1) return 0; |
45 | 45 | ||
46 | history_current--; |
46 | history_current--; |
Line 47... | Line 47... | ||
47 | copystr(#history_list[history_current].Item,#URL); |
47 | strcpy(#URL, #history_list[history_current].Item); |
48 | return 1; |
48 | return 1; |
49 | } |
49 | } |
50 | 50 | ||
51 | 51 | ||
52 | byte UrlsHistory::GoForward() |
52 | byte UrlsHistory::GoForward() |
53 | { |
53 | { |
54 | if (history_current==history_num) return 0; |
54 | if (history_current==history_num) return 0; |