Diff for /Amaya/amaya/AHTURLTools.c between versions 1.88 and 1.89

version 1.88, 2000/03/02 16:58:31 version 1.89, 2000/03/08 16:19:04
Line 886  CHAR_T*      target; Line 886  CHAR_T*      target;
 /*----------------------------------------------------------------------  /*----------------------------------------------------------------------
    ConvertFileURL     ConvertFileURL
    If the URL starts with file: prefix, it removes the protocol so that we     If the URL starts with file: prefix, it removes the protocol so that we
    can use it as a local filename     can use it as a local filename. It also changes the URL_SEP into
      DIR_SEPs if they are not the same character.
   ----------------------------------------------------------------------*/    ----------------------------------------------------------------------*/
 #ifdef __STDC__  #ifdef __STDC__
 void ConvertFileURL (CHAR_T* url)  void ConvertFileURL (CHAR_T* url)
Line 895  void ConvertFileURL (url) Line 896  void ConvertFileURL (url)
 CHAR_T* url  CHAR_T* url
 #endif /* __STDC__ */  #endif /* __STDC__ */
 {  {
     CHAR_T *src, *dest;
   
   if (!ustrncasecmp (url, TEXT("file:"), 5))    if (!ustrncasecmp (url, TEXT("file:"), 5))
      ustrcpy (url, url + 5);      {
         /* skip the file prefix */
         dest = url;
         src = url + 5;
         while (*src)
           {
   #ifdef _WINDOWS
             if (*dest == URL_SEP)
               /* make the transformation */
               *dest = DIR_SEP;
             else
   #endif /* _WINDOWS */
               *dest = *src;
             src++;
             dest++;
           }
         *src = WC_EOS;
       }
 }  }
   
 /*----------------------------------------------------------------------  /*----------------------------------------------------------------------

Removed from v.1.88  
changed lines
  Added in v.1.89


Webmaster