Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | Download | RSS feed

  1.  
  2. enum { BACK=300, FORWARD, REFRESH, HOME, NEWTAB, GOTOURL, SEARCHWEB, INPUT_CH, INPUT_BT };
  3. enum { _WIN, _DOS, _KOI, _UTF };
  4.  
  5. #define ID1         178
  6. #define ID2         177
  7.  
  8.                      
  9.  
  10. dword get_URL_part(int len) {
  11.         char temp1[sizeof(URL)];
  12.         strcpy(#temp1, #URL);
  13.         temp1[len] = 0x00;
  14.         return #temp1;
  15. }
  16.  
  17. inline byte chTag(dword text) {return strcmp(#tag,text);}
  18.  
  19.  
  20. void GetURLfromPageLinks(int id)
  21. {
  22.         int i, j = 0;
  23.         for (i = 0; i <= id - 401; i++)
  24.         {
  25.                 do
  26.                 {
  27.                         j++;
  28.                         if (j>=strlen(#page_links)) return;
  29.                 }
  30.                 while (page_links[j] <>'|');
  31.         }
  32.         page_links[j] = 0x00;
  33.         strcpy(#URL, #page_links+strrchr(#page_links, '|'));
  34. }