Diff for /Amaya/amaya/AHTURLTools.c between versions 1.59 and 1.60

version 1.59, 1999/03/02 09:45:04 version 1.60, 1999/03/09 14:38:26
Line 204  const char         *path; Line 204  const char         *path;
        i++;         i++;
      }       }
    nsuffix[i] = EOS;     nsuffix[i] = EOS;
    if ((!strcmp (nsuffix, "html")) ||     if (!strcmp (nsuffix, "html") ||
        (!strcmp (nsuffix, "htm")) ||         !strcmp (nsuffix, "htm") ||
        (!strcmp (nsuffix, "shtml")))         !strcmp (nsuffix, "shtml"))
      return (TRUE);       return (TRUE);
    else if (!strcmp (nsuffix, "gz"))     else if (!strcmp (nsuffix, "gz"))
      {       {
Line 220  const char         *path; Line 220  const char         *path;
            i++;             i++;
          }           }
        nsuffix[i] = EOS;         nsuffix[i] = EOS;
        if ((!strcmp (nsuffix, "html")) ||         if (!strcmp (nsuffix, "html") ||
            (!strcmp (nsuffix, "htm")) ||             !strcmp (nsuffix, "htm") ||
            (!strcmp (nsuffix, "shtml")))             !strcmp (nsuffix, "shtml"))
          return (TRUE);           return (TRUE);
        else         else
          return (FALSE);           return (FALSE);
Line 261  const char         *path; Line 261  const char         *path;
          return (TRUE);           return (TRUE);
        else         else
          return (FALSE);           return (FALSE);
        }
      else
        return (FALSE);
   }
   
   /*----------------------------------------------------------------------
     IsCSSName                                                         
     returns TRUE if path points to an XML resource.
     ----------------------------------------------------------------------*/
   #ifdef __STDC__
   boolean             IsCSSName (const char *path)
   #else  /* __STDC__ */
   boolean             IsCSSName (path)
   const char         *path;
   #endif /* __STDC__ */
   {
      char                temppath[MAX_LENGTH];
      char                suffix[MAX_LENGTH];
   
      if (!path)
         return (FALSE);
   
      strcpy (temppath, path);
      ExtractSuffix (temppath, suffix);
   
      if (!strcasecmp (suffix, "css"))
        return (TRUE);
      else if (!strcmp (suffix, "gz"))
        {
          /* take into account compressed files */
          ExtractSuffix (temppath, suffix);       
          if (!strcasecmp (suffix, "css"))
            return (TRUE);
          else
            return (FALSE);
      }       }
    else     else
      return (FALSE);       return (FALSE);

Removed from v.1.59  
changed lines
  Added in v.1.60


Webmaster