Diff for /Amaya/amaya/AHTURLTools.c between versions 1.85 and 1.86

version 1.85, 2000/02/22 16:01:23 version 1.86, 2000/02/25 17:05:40
Line 1081  const STRING       url2; Line 1081  const STRING       url2;
    ThotBool          result;     ThotBool          result;
   
    basename_ptr1 = AmayaParseUrl (url1, TEXT(""), AMAYA_PARSE_ACCESS | AMAYA_PARSE_HOST | AMAYA_PARSE_PUNCTUATION);     basename_ptr1 = AmayaParseUrl (url1, TEXT(""), AMAYA_PARSE_ACCESS | AMAYA_PARSE_HOST | AMAYA_PARSE_PUNCTUATION);
    basename_ptr2 = AmayaParseUrl (url2, _EMPTYSTR_, AMAYA_PARSE_ACCESS | AMAYA_PARSE_HOST | AMAYA_PARSE_PUNCTUATION);     basename_ptr2 = AmayaParseUrl (url2, TEXT(""), AMAYA_PARSE_ACCESS | AMAYA_PARSE_HOST | AMAYA_PARSE_PUNCTUATION);
   
    if (ustrcmp (basename_ptr1, basename_ptr2))     if (ustrcmp (basename_ptr1, basename_ptr2))
       result = FALSE;        result = FALSE;
Line 1180  const STRING    path; Line 1180  const STRING    path;
   chars.    chars.
   ----------------------------------------------------------------------*/    ----------------------------------------------------------------------*/
 #ifdef __STDC__  #ifdef __STDC__
 void ChopURL (char *outputURL, const char *inputURL)  void ChopURL (CHAR_T* outputURL, const CHAR_T* inputURL)
 #else  #else
 void ChopURL (outputURL, inputURL)  void ChopURL (outputURL, inputURL)
 char       *outputURL;  CHAR_T*       outputURL;
 const char *inputURL;  const CHAR_T* inputURL;
 #endif  #endif
   
 {  {
   int len;    int len;
   
   len = strlen (inputURL);    len = ustrlen (inputURL);
   if (len <= MAX_PRINT_URL_LENGTH)     if (len <= MAX_PRINT_URL_LENGTH) 
     strcpy (outputURL, inputURL);      ustrcpy (outputURL, inputURL);
   else    else
     /* make a truncated urlName on the status window */      /* make a truncated urlName on the status window */
     {      {
       strncpy (outputURL, inputURL, MAX_PRINT_URL_LENGTH / 2);        ustrncpy (outputURL, inputURL, MAX_PRINT_URL_LENGTH / 2);
       outputURL [MAX_PRINT_URL_LENGTH / 2] = EOS;        outputURL [MAX_PRINT_URL_LENGTH / 2] = WC_EOS;
       strcat (outputURL, "...");        ustrcat (outputURL, TEXT("..."));
       strcat (outputURL, &(inputURL[len - MAX_PRINT_URL_LENGTH / 2 ]));        ustrcat (outputURL, &(inputURL[len - MAX_PRINT_URL_LENGTH / 2 ]));
     }      }
 }  }
   

Removed from v.1.85  
changed lines
  Added in v.1.86


Webmaster